mirror of
https://github.com/irmen/prog8.git
synced 2025-01-14 01:29:55 +00:00
23 lines
267 B
Lua
23 lines
267 B
Lua
%import textio
|
|
%zeropage basicsafe
|
|
|
|
|
|
main {
|
|
|
|
ubyte key
|
|
|
|
sub func() -> ubyte {
|
|
return key=='a'
|
|
}
|
|
|
|
|
|
sub func2() -> bool {
|
|
return key==2
|
|
}
|
|
|
|
sub start() {
|
|
bool @shared z1=func()
|
|
bool @shared z2=func2()
|
|
}
|
|
}
|