uxn/examples/struct.usm

30 lines
385 B
Plaintext

( 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