mirror of
https://github.com/irmen/prog8.git
synced 2024-11-28 10:51:14 +00:00
26 lines
421 B
Lua
26 lines
421 B
Lua
%import textio
|
|
%option no_sysinit
|
|
%zeropage basicsafe
|
|
|
|
|
|
main {
|
|
sub start() {
|
|
byte @shared ww = -99
|
|
ww++
|
|
|
|
if ww&1 ==0
|
|
txt.print("x ")
|
|
|
|
if ww&64 ==0
|
|
txt.print("a ")
|
|
|
|
if ww&128!=0
|
|
txt.print("neg ")
|
|
|
|
txt.print_ub(if ww & 64==0 111 else 222)
|
|
txt.spc()
|
|
txt.print_ub(if ww & 128!=0 111 else 222)
|
|
txt.spc()
|
|
}
|
|
}
|