prog8/examples/test.p8

33 lines
492 B
Plaintext
Raw Normal View History

%import textio
%zeropage basicsafe
2022-08-28 14:43:15 +00:00
main {
2022-08-21 17:57:52 +00:00
2022-08-07 11:45:03 +00:00
sub start() {
uword[] words = [1111,2222,0,4444,3333]
txt.print_ub(all(words))
txt.nl()
txt.print_ub(any(words))
txt.nl()
sort(words)
uword ww
for ww in words {
txt.print_uw(ww)
txt.spc()
}
txt.nl()
reverse(words)
for ww in words {
txt.print_uw(ww)
txt.spc()
}
txt.nl()
2022-09-18 14:04:49 +00:00
}
}
2022-09-10 12:51:46 +00:00