prog8/examples/test.p8

23 lines
317 B
Plaintext
Raw Normal View History

%import textio
%option no_sysinit
2023-01-22 16:10:36 +00:00
%zeropage basicsafe
2022-11-29 19:09:10 +00:00
main {
sub start() {
2023-01-25 00:57:25 +00:00
rsavex()
ubyte @shared ub
main.normalfoo.arg=99
2023-01-26 00:41:44 +00:00
void normalfoo(42)
2023-01-22 16:10:36 +00:00
somelabel:
ub++
txt.print_ub(ub)
}
2023-01-22 16:10:36 +00:00
sub normalfoo(ubyte arg) -> ubyte {
arg++
return 42
}
}