Repeat a string: Difference between revisions
Content added Content deleted
Puppydrum64 (talk | contribs) |
|||
Line 141: | Line 141: | ||
</pre> |
</pre> |
||
=={{header|68000 Assembly}}== |
|||
Easiest way to do this is with a loop. |
|||
<lang 68000devpacMOVE.W #5-1,D1 |
|||
RepString: |
|||
LEA A3, MyString |
|||
MOVE.L A3,-(SP) ;PUSH A3 |
|||
JSR PrintString ;unimplemented hardware-dependent printing routine, assumed to not clobber D1 |
|||
MOVE.L (SP)+,A3 ;POP A3 |
|||
DBRA D1,RepString |
|||
RTS ;return to basic or whatever</lang> |
|||
=={{header|8th}}== |
=={{header|8th}}== |