0
0
Fork 0
mirror of https://git.sr.ht/~rabbits/uxn synced 2024-11-08 15:25:05 +00:00
uxn/examples/test.usm

48 lines
886 B
Text
Raw Normal View History

2021-02-13 21:21:05 +00:00
( comment )
2021-02-01 19:58:47 +00:00
:dev/w fff9 ( const write port )
2021-02-13 00:18:52 +00:00
2021-02-09 05:59:46 +00:00
|0100 @RESET
2021-02-09 18:06:55 +00:00
2021-02-14 18:22:42 +00:00
#01 ,dev/w STR ( set dev/write to screen )
( draw 1 pixel )
#00 #01 #0021 #0021 ,putpixel JSR
#04 ,dev/w STR ( set dev/write to screen )
#00 ,star_icn #0001 #0001 ,putsprite JSR
#00 ,star_icn #0031 #0021 ,putsprite JSR
#00 ,cursor_icn #0021 #0016 ,putsprite JSR
#00 ,star_icn #0055 #0042 ,putsprite JSR
#01 ,cursor_icn #0067 #0031 ,putsprite JSR
2021-02-12 18:26:58 +00:00
2021-02-09 05:59:46 +00:00
BRK
2021-02-05 02:25:49 +00:00
2021-02-14 18:22:42 +00:00
@putsprite
IOW2 ( y short )
IOW2 ( x short )
IOW2 ( sprite address )
IOW ( redraw byte )
RTS
@putpixel
IOW2 ( y short )
IOW2 ( x short )
IOW ( color byte )
IOW ( redraw byte )
RTS
|0200 @SPRITESHEET
@cursor_icn .80c0 .e0f0 .f8e0 .1000 .0000 .0000 .0000 .0000
@star_icn .1054 .28c6 .2854 .1000 .0000 .0000 .0000 .0000
BRK
2021-02-11 00:41:16 +00:00
|c000 @FRAME BRK
2021-02-05 19:57:37 +00:00
|d000 @ERROR BRK
2021-02-05 19:57:37 +00:00
|FFFA .RESET .FRAME .ERROR