mirror of
https://github.com/irmen/prog8.git
synced 2024-12-23 09:32:43 +00:00
23 lines
317 B
Lua
23 lines
317 B
Lua
%import textio
|
|
%option no_sysinit
|
|
%zeropage basicsafe
|
|
|
|
main {
|
|
|
|
sub start() {
|
|
rsavex()
|
|
|
|
ubyte @shared ub
|
|
main.normalfoo.arg=99
|
|
void normalfoo(42)
|
|
somelabel:
|
|
ub++
|
|
txt.print_ub(ub)
|
|
}
|
|
|
|
sub normalfoo(ubyte arg) -> ubyte {
|
|
arg++
|
|
return 42
|
|
}
|
|
}
|