2021-02-08 14:44:37 -05:00
|
|
|
( loop )
|
2021-02-02 15:22:20 -05:00
|
|
|
|
2021-02-08 14:44:37 -05:00
|
|
|
|0100 @RESET
|
2021-02-02 15:22:20 -05:00
|
|
|
|
2021-02-08 14:44:37 -05:00
|
|
|
( 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
|