0
0
Fork 0
mirror of https://git.sr.ht/~rabbits/uxn synced 2024-11-08 07:15:04 +00:00
uxn/examples/struct.usm
2021-02-23 13:49:36 -08:00

29 lines
384 B
Text

( blank )
:dev/r fff8 ( std read port )
:dev/w fff9 ( std write port )
&Rect2d { x 2 y 2 width 2 height 2 }
&ColorRGB { r 1 g 1 b 1 }
;rc1 Rect2d
;red ColorRGB
|0100 @RESET
( byte mode )
#ff =red.r
~red.r
( short mode )
#1234 =rc1.x
#abcd =rc1.height
~rc1.height
BRK
|c000 @FRAME BRK
|d000 @ERROR BRK
|FFF0 [ 0f32 0f32 0f32 ] ( palette )
|FFFA .RESET .FRAME .ERROR