Could any uxntal-savvy folks help me make sense of this?
.Control≤rkeyDEI(readkey)DUPLIT1EQU(isthekey′1′?),&1JCN(jump→1if
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 (1 year 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 • • •