prog8/examples/test.p8

30 lines
513 B
Plaintext
Raw Normal View History

%import textio
%zeropage basicsafe
main {
2023-08-01 20:49:55 +00:00
sub start() {
ubyte a = 2
ubyte var1 = 3
ubyte var2 = 10
if a==2 and a<=10 {
2023-08-06 23:49:00 +00:00
a++
}
if a==var1 and a<=var2 {
a++
}
txt.print_ub(a) ; 4
2023-08-04 21:36:51 +00:00
byte sa = 2
byte svar1 = 3
byte svar2 = 10
2023-08-04 21:36:51 +00:00
if sa==2 and sa<=10 {
2023-08-06 23:49:00 +00:00
sa++
}
if sa==svar1 and sa<=svar2 {
2023-08-06 23:49:00 +00:00
sa++
}
txt.print_b(sa) ; 4 code 28f
2023-08-01 20:49:55 +00:00
}
}