uxn/examples/struct.usm

30 lines
384 B
Plaintext
Raw Normal View History

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