Category:68000 Assembly: Difference between revisions

Content added Content deleted
m (→‎Alignment: typo fix)
Line 190: Line 190:
;if we did MOVE.W (A0)+,(A1)+ now we'd crash. First we need to adjust the pointers.
;if we did MOVE.W (A0)+,(A1)+ now we'd crash. First we need to adjust the pointers.
MOVE.B (A0)+,D7 ;dummy read to D7. Now A0 is word aligned.
MOVE.B (A0)+,D7 ;dummy read to D7. Now A0 is word aligned.
MOVE.B (A1)+,D7 ;dummy read to D7. Now A0 is word aligned.
MOVE.B (A1)+,D7 ;dummy read to D7. Now A1 is word aligned.
MOVE.W (A0)+,(A1)+ ;copy $0345 to a new memory location</lang>
MOVE.W (A0)+,(A1)+ ;copy $0345 to a new memory location</lang>