mirror of
https://github.com/irmen/prog8.git
synced 2024-09-04 13:29:54 +00:00
22 lines
312 B
Lua
22 lines
312 B
Lua
%import textio
|
|
%zeropage basicsafe
|
|
%option no_sysinit
|
|
|
|
main {
|
|
sub start() {
|
|
ubyte @shared bb
|
|
|
|
when bb {
|
|
0,1,2 -> {
|
|
bb ++
|
|
}
|
|
3 -> {
|
|
bb--
|
|
}
|
|
else -> {
|
|
bb=0
|
|
}
|
|
}
|
|
}
|
|
}
|