Repeat a string: Difference between revisions

Line 141:
</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}}==
1,489

edits