0
0
Fork 0
mirror of https://git.sr.ht/~rabbits/uxn synced 2024-11-05 05:45:05 +00:00
uxn/examples/loop.usm
2021-02-08 11:44:37 -08:00

24 lines
282 B
Text

( loop )
|0100 @RESET
( increment value on stack )
,00
@loop1
,01 ADD DUP
,ff NEQ ,loop1 ROT JMP? POP^
( increment value in memory )
@loop2
#00 LDR ,01 ADD #00 STR
#00 LDR
,ff NEQ ,loop2 ROT JMP? POP^
BRK
|c000 @FRAME BRK
|d000 @ERROR BRK
|FFFA .RESET .FRAME .ERROR