prog8/examples/test.p8

18 lines
253 B
Plaintext
Raw Normal View History

2024-04-10 20:33:22 +00: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 20:04:03 +00:00
sub start() {
show_bug(-1, 4)
}
}