2021-02-08 14:44:37 -05:00
|
|
|
( my default test file )
|
2021-02-01 14:58:47 -05:00
|
|
|
|
2021-02-10 14:06:36 -05:00
|
|
|
:dev/r fff8 ( std read port )
|
|
|
|
:dev/w fff9 ( std write port )
|
2021-02-04 21:25:49 -05:00
|
|
|
|
2021-02-09 00:59:46 -05:00
|
|
|
|0100 @RESET
|
2021-02-10 14:06:36 -05:00
|
|
|
|
|
|
|
,02 ,dev/r STR ( set dev/read mouse#02 )
|
|
|
|
,01 ,dev/w STR ( set dev/write screen#01 )
|
2021-02-09 13:06:55 -05:00
|
|
|
|
2021-02-10 14:06:36 -05:00
|
|
|
,00 ,01 ,0001 ,0000 ,putpixel JSR
|
|
|
|
,00 ,01 ,0000 ,0001 ,putpixel JSR
|
|
|
|
,00 ,01 ,0002 ,0001 ,putpixel JSR
|
|
|
|
,01 ,02 ,0001 ,0002 ,putpixel JSR
|
2021-02-09 13:06:55 -05:00
|
|
|
|
2021-02-09 00:59:46 -05:00
|
|
|
BRK
|
2021-02-04 21:25:49 -05:00
|
|
|
|
2021-02-10 14:06:36 -05:00
|
|
|
|c000 @FRAME
|
|
|
|
|
|
|
|
( get mouse button, or break )
|
|
|
|
,04 IOR
|
|
|
|
,01 NEQ
|
|
|
|
BRK?
|
|
|
|
|
|
|
|
( paint a white pixel )
|
|
|
|
,01 ,01
|
|
|
|
,getmouse JSR
|
|
|
|
,putpixel JSR
|
|
|
|
|
|
|
|
BRK
|
|
|
|
|
|
|
|
@getmouse
|
|
|
|
,02 IOR^ ( get mouse y )
|
|
|
|
,00 IOR^ ( get mouse x )
|
|
|
|
RTS
|
|
|
|
|
|
|
|
@putpixel
|
|
|
|
IOW^ ( y short )
|
|
|
|
IOW^ ( x short )
|
|
|
|
IOW ( color byte )
|
|
|
|
IOW ( redraw byte )
|
|
|
|
RTS
|
|
|
|
|
2021-02-05 14:57:37 -05:00
|
|
|
|d000 @ERROR BRK
|
|
|
|
|FFFA .RESET .FRAME .ERROR
|