mirror of
https://github.com/irmen/prog8.git
synced 2024-12-24 16:29:21 +00:00
09c6cb4d6b
Fixed some slight bugs in library code
20 lines
370 B
Lua
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()
|
|
}
|
|
}
|