prog8/examples/test.p8

33 lines
402 B
Plaintext
Raw Normal View History

%import textio
%zeropage basicsafe
; (127 instructions in 15 chunks, 47 registers)
; 679 steps
2023-07-10 19:42:55 +02:00
main {
sub start() {
uword i
uword n
repeat 10 {
txt.chrout('.')
}
txt.nl()
n=10
for i in 0 to n step 3 {
txt.print_uw(i)
txt.nl()
}
txt.nl()
n=0
for i in 10 downto n step -3 {
txt.print_uw(i)
txt.nl()
}
}
}