mirror of
https://github.com/irmen/prog8.git
synced 2024-09-07 19:54:26 +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()
|
|
}
|
|
}
|