Terminal control/Cursor positioning: Difference between revisions

Content added Content deleted
Line 363: Line 363:
0:
0:
dup jumpz 1 ;Return if counter is zero
dup jumpz 1 ;Return if counter is zero
exch prtc ;Swap counter with next the character and print it
exch prtc ;Swap counter with the next character and print it
push 1 sub ;Subtract one from counter
push 1 sub ;Subtract one from counter
jump 0 ;Loop back to print next character
jump 0 ;Loop back to print next character