uxn/examples/sprite.usm

35 lines
672 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-15 17:42:53 -05:00
#0110 ,cursor_icn #0020 #0038 ,drawsprite JSR
#0010 ,rounds_chr #0028 #0038 ,drawsprite JSR
#3210 ,cursor_icn #0020 #0040 ,drawsprite JSR
#0010 ,rounds_chr #0028 #0040 ,drawsprite JSR
2021-02-14 14:51:36 -05:00
BRK
2021-02-15 17:42:53 -05:00
@drawsprite
2021-02-14 14:51:36 -05:00
IOW2 ( y short )
IOW2 ( x short )
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
|FFFA .RESET .FRAME .ERROR