mirror of
https://github.com/irmen/prog8.git
synced 2024-11-27 03:50:27 +00:00
19 lines
314 B
Lua
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
|
|
}
|
|
}
|