prog8/examples/test.p8

18 lines
253 B
Plaintext
Raw Normal View History

2024-04-10 22:33:22 +02:00
%import textio
%zeropage basicsafe
main {
sub show_bug(byte a, byte b) {
if (a >= 0) == (b > 0) {
txt.print("bug!")
} else {
txt.print("no bug.")
}
txt.nl()
}
2024-04-10 22:04:03 +02:00
sub start() {
show_bug(-1, 4)
}
}