prog8/compiler/examples/test.p8
2018-11-14 01:50:16 +01:00

28 lines
260 B
Lua

%import mathlib
%import c64lib
%import c64utils
~ main {
sub start() {
ubyte v1
ubyte v2
v1=foo()
v1 , v2 =c64.GETADR()
return
}
sub foo() -> ubyte {
return 1 ; @todo not ubyte but byte (if sub returns byte)
}
}