uxn/projects/tests/cond.usm

35 lines
376 B
Plaintext
Raw Normal View History

2021-03-15 18:27:43 -04:00
( tests/cond )
2021-03-15 21:08:41 -04:00
%RTN { RSW2 JMP2 }
%RTN? { CLN2 JMP2? }
2021-03-15 18:27:43 -04:00
|0100 @RESET
#00 #d0
2021-03-15 21:08:41 -04:00
2021-03-15 18:27:43 -04:00
$loop NOP
( incr ) SWP #01 ADD SWP
2021-03-15 21:08:41 -04:00
DUP2 LTH ^$loop SWP JMP?
2021-03-15 18:27:43 -04:00
POP =Console.byte
2021-03-15 21:08:41 -04:00
,routine JSR2
2021-03-15 18:27:43 -04:00
BRK
@routine
2021-03-15 21:08:41 -04:00
CLN2 JMP2
#aa
2021-03-15 18:27:43 -04:00
RTN
|c000 @FRAME
|d000 @ERROR
|FF00 ;Console { pad 8 char 1 byte 1 short 2 }
|FFF0 .RESET .FRAME .ERROR ( vectors )
|FFF8 [ 13fd 1ef3 1bf2 ] ( palette )