prog8/examples/test.p8
Irmen de Jong 09c6cb4d6b replace unwritten vars by consts. Improved const eval.
Fixed some slight bugs in library code
2023-12-28 05:17:15 +01:00

20 lines
370 B
Lua

%import textio
%zeropage basicsafe
main {
sub start() {
ubyte x = 10
ubyte y = 2
txt.print_ub(5<x and x<=20)
txt.nl()
txt.print_ub(5<x and x<=9)
txt.nl()
txt.print_ub(5<x<=9)
txt.nl()
txt.print_ub(5<(x-y)<=9<y)
txt.nl()
txt.print_ub(5<(x-y)<=9<(y+40))
txt.nl()
}
}