uxn/examples/sprite.usm

43 lines
814 B
Plaintext
Raw Normal View History

2021-02-14 14:51:36 -05:00
( comment )
: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-14 20:00:17 -05:00
#00 ,star_icn #0041 #0041 ,putsprite JSR
2021-02-14 14:51:36 -05:00
#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
BRK
@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
2021-02-15 17:04:58 -05:00
@cursor_icn [ 80c0 e0f0 f8e0 1000 0000 0000 0000 0000 ]
@star_icn [ 1054 28c6 2854 1000 0000 0000 0000 0000 ]
2021-02-14 14:51:36 -05:00
BRK
|c000 @FRAME BRK
|d000 @ERROR BRK
|FFFA .RESET .FRAME .ERROR