2021-02-10 19:06:36 +00:00
|
|
|
( screen )
|
|
|
|
|
|
|
|
:dev/r fff8 ( std read port )
|
|
|
|
:dev/w fff9 ( std write port )
|
2021-02-15 01:00:17 +00:00
|
|
|
|
|
|
|
;width 2 ;height 2
|
2021-02-10 19:06:36 +00:00
|
|
|
|
|
|
|
|0100 @RESET
|
|
|
|
|
|
|
|
( set read/write to dev/screen )
|
2021-02-15 01:00:17 +00:00
|
|
|
#01 DUP =dev/r =dev/w
|
2021-02-10 19:06:36 +00:00
|
|
|
|
|
|
|
( load screen size )
|
2021-02-15 01:00:17 +00:00
|
|
|
#00 IOR2 =width
|
|
|
|
#02 IOR2 =height
|
2021-02-10 19:06:36 +00:00
|
|
|
|
|
|
|
( draw pixel at screen center )
|
2021-02-13 21:21:05 +00:00
|
|
|
#0101
|
2021-02-15 01:00:17 +00:00
|
|
|
~width #0002 DIV2
|
|
|
|
~height #0002 DIV2
|
2021-02-10 19:06:36 +00:00
|
|
|
,putpixel JSR
|
|
|
|
|
|
|
|
BRK
|
|
|
|
|
|
|
|
|c000 @FRAME BRK
|
|
|
|
|
|
|
|
@putpixel
|
2021-02-13 16:38:23 +00:00
|
|
|
IOW2 ( y short )
|
|
|
|
IOW2 ( x short )
|
2021-02-10 19:06:36 +00:00
|
|
|
IOW ( color byte )
|
|
|
|
IOW ( redraw byte )
|
|
|
|
RTS
|
|
|
|
|
|
|
|
|d000 @ERROR BRK
|
2021-02-19 19:48:40 +00:00
|
|
|
|FFF0 [ f2ac 35bb 2b53 ] ( palette )
|
2021-02-10 19:06:36 +00:00
|
|
|
|FFFA .RESET .FRAME .ERROR
|