prog8/examples/test.p8

27 lines
446 B
Plaintext
Raw Normal View History

%import textio
2023-09-22 22:47:48 +00:00
%import floats
main {
2023-09-18 22:08:17 +00:00
sub start() {
2023-09-23 09:42:58 +00:00
ubyte from = 10
ubyte compare=9
if from==compare
goto equal
txt.print("from is not compare\n")
equal:
ubyte end = 15
ubyte xx
for xx in from to end {
txt.print_ub(xx)
txt.spc()
2023-09-23 09:20:34 +00:00
}
2023-09-23 09:42:58 +00:00
txt.nl()
ubyte ten=9
if from!=ten
txt.print("from is not 10\n")
}
}