2021-02-18 18:11:02 -05:00
|
|
|
( sprite )
|
2021-02-01 14:58:47 -05:00
|
|
|
|
2021-02-14 20:00:17 -05:00
|
|
|
:dev/r fff8 ( std read port )
|
|
|
|
:dev/w fff9 ( std write port )
|
2021-02-12 19:18:52 -05:00
|
|
|
|
2021-02-18 18:11:02 -05:00
|
|
|
;mousex 2 ;mousey 2 ;lastx 2 ;lasty 2 ;color 1
|
2021-02-09 13:06:55 -05:00
|
|
|
|
2021-02-18 18:11:02 -05:00
|
|
|
|0100 @RESET
|
2021-02-14 14:51:36 -05:00
|
|
|
|
2021-02-18 18:11:02 -05:00
|
|
|
#05 =dev/r ( set dev/read mouse )
|
|
|
|
#02 =dev/w ( set dev/write to sprite )
|
|
|
|
|
|
|
|
#00 ,rounds_chr #0004 #0004 ,drawsprite JSR
|
2021-02-14 13:22:42 -05:00
|
|
|
|
2021-02-14 14:51:36 -05:00
|
|
|
BRK
|
2021-02-14 13:22:42 -05:00
|
|
|
|
2021-02-18 18:11:02 -05:00
|
|
|
|c000 @FRAME
|
|
|
|
|
2021-02-18 21:16:39 -05:00
|
|
|
#02 =dev/w ( set dev/write to sprite )
|
2021-02-18 18:11:02 -05:00
|
|
|
|
|
|
|
( clear last cursor )
|
|
|
|
#10 ,clear_icn ~lastx ~lasty ,drawsprite JSR
|
|
|
|
|
|
|
|
( record mouse values )
|
|
|
|
#00 IOR2 =mousex #02 IOR2 =mousey
|
|
|
|
#04 IOR #11 ADD =color
|
|
|
|
|
|
|
|
~color ,cursor_icn ~mousex ~mousey ,drawsprite JSR
|
2021-02-18 21:16:39 -05:00
|
|
|
|
|
|
|
( check paint )
|
|
|
|
#04 IOR #00 EQU ,skip ROT JMP? POP2
|
|
|
|
#05 ,brush_large ~mousex #0004 SUB2 ~mousey #0004 SUB2 ,drawsprite JSR
|
|
|
|
@skip
|
|
|
|
|
2021-02-18 18:11:02 -05:00
|
|
|
~mousex =lastx ~mousey =lasty
|
|
|
|
|
|
|
|
BRK
|
|
|
|
|
|
|
|
@drawsprite
|
|
|
|
IOW2 ( y byte )
|
|
|
|
IOW2 ( x byte )
|
|
|
|
IOW2 ( sprite address )
|
|
|
|
IOW ( layer-color )
|
2021-02-14 23:23:00 -05:00
|
|
|
RTS
|
|
|
|
|
2021-02-18 18:11:02 -05:00
|
|
|
|0200 @SPRITESHEET
|
|
|
|
|
|
|
|
@rounds_chr [ 3844 92aa 9244 3800 0038 7c7c 7c38 0000 ]
|
|
|
|
@cursor_icn [ 80c0 e0f0 f8e0 1000 ]
|
|
|
|
@clear_icn [ 0000 0000 0000 0000 ]
|
2021-02-18 21:16:39 -05:00
|
|
|
@brush_large [ 387c fefe fe7c 3800 ]
|
|
|
|
@brush_small [ 0038 7c7c 7c38 0000 ]
|
2021-02-18 18:11:02 -05:00
|
|
|
|
|
|
|
BRK
|
|
|
|
|
2021-02-05 14:57:37 -05:00
|
|
|
|d000 @ERROR BRK
|
2021-02-13 19:37:03 -05:00
|
|
|
|
2021-02-19 14:48:40 -05:00
|
|
|
|FFF0 [ f2ac 35bb 2b53 ] ( palette )
|
2021-02-05 14:57:37 -05:00
|
|
|
|FFFA .RESET .FRAME .ERROR
|