mirror of
https://github.com/irmen/prog8.git
synced 2024-07-23 00:29:09 +00:00
30 lines
513 B
Lua
30 lines
513 B
Lua
%import textio
|
|
%zeropage basicsafe
|
|
|
|
main {
|
|
sub start() {
|
|
ubyte a = 2
|
|
ubyte var1 = 3
|
|
ubyte var2 = 10
|
|
if a==2 and a<=10 {
|
|
a++
|
|
}
|
|
if a==var1 and a<=var2 {
|
|
a++
|
|
}
|
|
txt.print_ub(a) ; 4
|
|
|
|
byte sa = 2
|
|
byte svar1 = 3
|
|
byte svar2 = 10
|
|
|
|
if sa==2 and sa<=10 {
|
|
sa++
|
|
}
|
|
if sa==svar1 and sa<=svar2 {
|
|
sa++
|
|
}
|
|
txt.print_b(sa) ; 4 code 28f
|
|
}
|
|
}
|