Could any uxntal-savvy folks help me make sense of this?
```
.Controller/key DEI ( read key )
DUP LIT "1 EQU ( is the key '1'? )
,&color-1 JCN ( jump to color-1 if that's the case )
```
If I press 1, the stack looks like this: `31 01 2F`. I assume 2F was pushed down there by `EQU`? Is that right? Why is it 2F and not 01 for example?
If I press another key (for ex A), the stack looks like this: `61 00 0D`. What is this 0D there?
(I'm using the uxnemu debugger to get these values)
This entry was edited (10 months ago)
Devine Lu Linvega
in reply to Gosha • • •Devine Lu Linvega
in reply to Devine Lu Linvega • • •Gosha
in reply to Devine Lu Linvega • • •compudanzas-day-03.tal — paste.sr.ht
paste.sr.htDevine Lu Linvega
in reply to Gosha • • •Devine Lu Linvega
in reply to Devine Lu Linvega • • •Have a look at this, the code will not pop the key before breaking(BRK), but will instead print it to the console: https://paste.sr.ht/~rabbits/d38dc642cbdb37ce7c4c854ed845e3b5ba6fb7b2
You can use the <print-byte> routine to pop one byte from the stack and print it in the console
day3-2.tal — paste.sr.ht
paste.sr.htGosha
in reply to Devine Lu Linvega • • •Devine Lu Linvega
in reply to Gosha • • •Gosha
in reply to Devine Lu Linvega • • •Gosha
in reply to Gosha • • •day03-drawing.tal — paste.sr.ht
paste.sr.htDevine Lu Linvega
in reply to Gosha • • •Gosha
in reply to Devine Lu Linvega • • •Devine Lu Linvega
in reply to Gosha • • •XXIIVV — bicycle
wiki.xxiivv.comDevine Lu Linvega
Unknown parent • • •Gosha
in reply to Devine Lu Linvega • • •