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
|
|
|
|
;var3
|
|
|
|
|
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 18:23:04 -05:00
|
|
|
@0100 ( store program reset after zero-page )
|
|
|
|
|
|
|
|
:RESET ( --- )
|
|
|
|
BRK
|
|
|
|
|
|
|
|
@c000 ( much further.. )
|
|
|
|
|
|
|
|
:FRAME ( --- )
|
|
|
|
BRK
|
|
|
|
|
|
|
|
@d000 ( further still.. )
|
|
|
|
|
|
|
|
:ERROR ( --- )
|
|
|
|
BRK
|
|
|
|
|
|
|
|
@FFFA ( vectors, last 3 shorts )
|
|
|
|
|
|
|
|
.RESET
|
|
|
|
.FRAME
|
|
|
|
.ERROR
|