prog8/examples/test.p8
2023-12-22 22:24:11 +01:00

19 lines
314 B
Lua

%import textio
%zeropage basicsafe
main {
sub start() {
uword function = &test
uword @shared derp = call(function)
txt.print_uw(derp)
txt.nl()
void call(function)
}
sub test() -> uword {
txt.print("test\n")
cx16.r0++
return 999
}
}