uxn/examples/sprite.usm

36 lines
689 B
Plaintext
Raw Normal View History

2021-02-16 15:19:48 -05:00
( sprite )
2021-02-14 14:51:36 -05:00
:dev/w fff9 ( const write port )
|0100 @RESET
2021-02-14 20:00:17 -05:00
#01 =dev/w ( set dev/write to screen )
2021-02-14 22:43:33 -05:00
#02 =dev/w ( set dev/write to sprite )
2021-02-14 14:51:36 -05:00
2021-02-18 18:11:02 -05:00
#0110 ,cursor_icn #20 #38 ,drawsprite JSR
#0010 ,rounds_chr #28 #38 ,drawsprite JSR
#3210 ,cursor_icn #20 #40 ,drawsprite JSR
#0010 ,rounds_chr #28 #40 ,drawsprite JSR
2021-02-14 14:51:36 -05:00
BRK
2021-02-15 17:42:53 -05:00
@drawsprite
2021-02-18 18:11:02 -05:00
IOW ( y byte )
IOW ( x byte )
2021-02-14 14:51:36 -05:00
IOW2 ( sprite address )
2021-02-15 17:42:53 -05:00
IOW2 ( redraw byte )
2021-02-14 14:51:36 -05:00
RTS
|0200 @SPRITESHEET
2021-02-15 17:42:53 -05:00
@cursor_icn [ 80c0 e0f0 f8e0 1000 ]
@rounds_chr [ 3844 92aa 9244 3800 0038 7c7c 7c38 0000 ]
2021-02-14 14:51:36 -05:00
BRK
|c000 @FRAME BRK
|d000 @ERROR BRK
2021-02-19 14:48:40 -05:00
|FFF0 [ f2ac 35bb 2b53 ] ( palette )
2021-02-14 14:51:36 -05:00
|FFFA .RESET .FRAME .ERROR