uxn/projects/tests/loop.usm

41 lines
579 B
Plaintext
Raw Normal View History

2021-03-11 15:19:59 -05:00
( hello world )
&Console { pad 8 char 1 byte 1 short 2 }
;a 1 ;b 1 ;c 1
|0100 @RESET
( type: padded muljmp )
2021-03-11 18:47:28 -05:00
@part1
$loop NOP
2021-03-11 15:19:59 -05:00
~a #01 ADD =a
2021-03-11 18:47:28 -05:00
~a #d0 LTH ^$loop MUL JMPS
2021-03-11 15:19:59 -05:00
( type: jmppop )
2021-03-11 18:47:28 -05:00
@part2
$loop
2021-03-11 15:19:59 -05:00
~b #01 ADD =b
2021-03-11 18:47:28 -05:00
,$loop ~b #d0 LTH JMP2? POP2
2021-03-11 15:19:59 -05:00
( type: padded jmppop )
2021-03-11 18:47:28 -05:00
@part3
$loop NOP
2021-03-11 15:19:59 -05:00
~c #01 ADD =c
2021-03-11 18:47:28 -05:00
~c #d0 LTH ^$loop SWP JMPS? POP
2021-03-11 15:19:59 -05:00
~a =dev/console.byte
~b =dev/console.byte
~c =dev/console.byte
BRK
|c000 @FRAME
|d000 @ERROR
|FF00 ;dev/console Console
|FFF0 .RESET .FRAME .ERROR ( vectors )
|FFF8 [ 13fd 1ef3 1bf2 ] ( palette )