uxn/examples/struct.usm

30 lines
385 B
Plaintext
Raw Normal View History

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