prog8/examples/test.p8

19 lines
314 B
Plaintext
Raw Normal View History

2023-12-09 20:48:22 +00:00
%import textio
2023-12-22 21:24:11 +00:00
%zeropage basicsafe
2023-12-09 20:48:22 +00:00
main {
sub start() {
2023-12-22 21:24:11 +00:00
uword function = &test
uword @shared derp = call(function)
txt.print_uw(derp)
txt.nl()
2023-12-22 21:24:11 +00:00
void call(function)
}
2023-12-22 21:24:11 +00:00
sub test() -> uword {
txt.print("test\n")
cx16.r0++
return 999
}
}