prog8/examples/test.p8

29 lines
612 B
Plaintext
Raw Normal View History

2019-08-17 23:39:48 +00:00
%zeropage basicsafe
2019-08-09 00:15:31 +00:00
2019-08-07 00:02:34 +00:00
main {
sub start() {
2019-08-24 22:24:00 +00:00
ubyte ub
2020-03-11 19:47:42 +00:00
for ub in 12 to 3 step -1 {
c64scr.print_ub(ub)
c64scr.print(",")
2019-08-24 22:24:00 +00:00
}
2020-03-11 19:47:42 +00:00
c64scr.print("\n")
for ub in 12 to 3 step -4 {
c64scr.print_ub(ub)
c64scr.print(",")
2019-08-24 22:24:00 +00:00
}
2020-03-11 19:47:42 +00:00
c64scr.print("\n")
for ub in 12 downto 3 {
c64scr.print_ub(ub)
c64scr.print(",")
}
c64scr.print("\n")
for ub in 12 downto 3 step -4 {
c64scr.print_ub(ub)
c64scr.print(",")
}
c64scr.print("\n")
2019-08-24 14:21:05 +00:00
}
}