Terminal control/Cursor positioning: Difference between revisions
Content added Content deleted
(Added Whitespace entry, with assembly explanation) |
|||
Line 361: | Line 361: | ||
exit |
exit |
||
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 next the character and print it |
||
Line 367: | Line 367: | ||
jump 0 ;Loop back to print next character |
jump 0 ;Loop back to print next character |
||
1: |
|||
pop ret ;Pop counter and return</lang> |
pop ret ;Pop counter and return</lang> |
||