mirror of
https://github.com/irmen/prog8.git
synced 2024-10-17 10:24:55 +00:00
22 lines
388 B
Lua
22 lines
388 B
Lua
%import c64utils
|
|
%import c64flt
|
|
%option enable_floats
|
|
%zeropage basicsafe
|
|
|
|
main {
|
|
|
|
struct Color {
|
|
uword red
|
|
uword green
|
|
uword blue
|
|
}
|
|
|
|
sub start() {
|
|
Color c = {1,2,3}
|
|
Color c2 = {3,4,5}
|
|
c=c2
|
|
c= {1,2,3} ; TODO fix compiler crash AssemblyError: struct literal value assignment should have been flattened
|
|
}
|
|
|
|
}
|