Copy a string: Difference between revisions

Content added Content deleted
Line 57: Line 57:
CopyString:
CopyString:
MOVE.B (A3)+,D0
MOVE.B (A3)+,D0
MOVE.B D0,(A4)+ ;we could have skipped D0 but this makes it easier to check for the terminator.
MOVE.B D0,(A4)+ ;we could have used "MOVE.B (A3)+,(A4)+" but this makes it easier to check for the terminator.
BEQ Terminated
BEQ Terminated
BRA CopyString
BRA CopyString