mirror of
https://git.sr.ht/~rabbits/uxn
synced 2024-11-09 15:55:05 +00:00
27 lines
393 B
Text
27 lines
393 B
Text
( draw a single pixel )
|
|
|
|
:dev/w fff9 ( keep write port in a const )
|
|
;x 2
|
|
;y 2
|
|
|
|
|0100 @RESET
|
|
|
|
( set dev/write to screen )
|
|
|
|
,01 ,dev/w STR
|
|
|
|
,0020 ,x STR^ ( set x-pos )
|
|
,0030 ,y STR^ ( set y-pos )
|
|
|
|
( IOW will now send to screen )
|
|
|
|
,y LDR^ IOW^ ( y-pos )
|
|
,x LDR^ IOW^ ( x-pos )
|
|
,02 IOW ( color )
|
|
,01 IOW ( redraw )
|
|
|
|
BRK
|
|
|
|
|c000 @FRAME BRK
|
|
|d000 @ERROR BRK
|
|
|FFFA .RESET .FRAME .ERROR
|