uxn/examples/core.usm

30 lines
320 B
Plaintext

( define some variables in the zero-page )
;var1
;var2
@0100
:RESET ( --- )
,22 ,var1 STR ( store 0x22 in var1 )
,var1 LDR ( load var2, put value on stack )
BRK
@c000 ( much further.. )
:FRAME ( --- )
BRK
@d000 ( further still.. )
:ERROR ( --- )
BRK
@FFFA ( vectors, last 3 shorts )
.RESET
.FRAME
.ERROR