mirror of
https://github.com/irmen/prog8.git
synced 2026-03-13 20:16:46 +00:00
24 lines
426 B
Lua
24 lines
426 B
Lua
%import textio
|
|
%zeropage basicsafe
|
|
%option no_sysinit
|
|
|
|
main {
|
|
sub start() {
|
|
uword func1 = &function1
|
|
uword func2 = &function2
|
|
txt.print_uw(call(func1))
|
|
void call(func1)
|
|
txt.print_uw(call(func2))
|
|
void call(func2)
|
|
}
|
|
|
|
sub function1() {
|
|
txt.print("function1\n")
|
|
}
|
|
|
|
sub function2() -> uword {
|
|
txt.print("function1\n")
|
|
return 12345
|
|
}
|
|
}
|