uxn/examples/core.usm

30 lines
320 B
Plaintext
Raw Normal View History

2021-02-04 18:23:04 -05:00
( define some variables in the zero-page )
2021-02-01 14:58:47 -05:00
2021-02-04 16:49:03 -05:00
;var1
;var2
2021-02-04 21:25:49 -05:00
@0100
:RESET ( --- )
2021-02-04 16:49:03 -05:00
2021-02-04 18:23:04 -05:00
,22 ,var1 STR ( store 0x22 in var1 )
,var1 LDR ( load var2, put value on stack )
2021-02-04 16:49:03 -05:00
2021-02-04 21:25:49 -05:00
BRK
2021-02-04 18:23:04 -05:00
@c000 ( much further.. )
:FRAME ( --- )
BRK
@d000 ( further still.. )
:ERROR ( --- )
BRK
@FFFA ( vectors, last 3 shorts )
.RESET
.FRAME
.ERROR