mirror of
https://github.com/irmen/prog8.git
synced 2024-11-23 07:32:10 +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()
|
|
}
|
|
}
|