mirror of
https://github.com/irmen/prog8.git
synced 2024-08-20 05:29:02 +00:00
29 lines
390 B
Lua
29 lines
390 B
Lua
%import c64lib
|
|
%import c64utils
|
|
|
|
main {
|
|
|
|
sub start() {
|
|
derp.dop()
|
|
|
|
A=derp.dop.zzz
|
|
|
|
derp.dop.zzz=3
|
|
|
|
|
|
uword addr = &derp.dop.name ; @todo strange error "pointer-of operand must be the name of a heap variable"
|
|
c64scr.print(&derp.dop.name)
|
|
}
|
|
}
|
|
|
|
|
|
derp {
|
|
|
|
sub dop() {
|
|
ubyte zzz=33
|
|
str name="irmen"
|
|
|
|
A=54
|
|
}
|
|
}
|