uxn/examples/test.usm

22 lines
564 B
Plaintext
Raw Normal View History

2021-02-13 16:21:05 -05:00
( comment )
2021-02-01 14:58:47 -05:00
:dev/w fff9 ( const write port )
2021-02-12 19:18:52 -05:00
2021-02-09 00:59:46 -05:00
|0100 @RESET
2021-02-09 13:06:55 -05:00
#00 ,dev/w STR ( set dev/write to console )
,string ( add string pointer to stack )
@loop
DUP2 LDR IOW ( write pointer value to console )
#0001 ADD2 ( increment string pointer )
DUP2 LDR #00 NEQ ,loop ROT JMP? POP2 ( while *ptr!=0 goto loop )
2021-02-12 13:26:58 -05:00
2021-02-09 00:59:46 -05:00
BRK
2021-02-04 21:25:49 -05:00
@string " Hello World " ( add string to memory )
2021-02-10 19:41:16 -05:00
|c000 @FRAME BRK
2021-02-05 14:57:37 -05:00
|d000 @ERROR BRK
2021-02-05 14:57:37 -05:00
|FFFA .RESET .FRAME .ERROR