Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
4
Task/Copy-a-string/68000-Assembly/copy-a-string-1.68000
Normal file
4
Task/Copy-a-string/68000-Assembly/copy-a-string-1.68000
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
myString: DC.B "HELLO WORLD",0
|
||||
EVEN
|
||||
|
||||
LEA myString,A3
|
||||
16
Task/Copy-a-string/68000-Assembly/copy-a-string-2.68000
Normal file
16
Task/Copy-a-string/68000-Assembly/copy-a-string-2.68000
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
StringRam equ $100000
|
||||
|
||||
myString: DC.B "HELLO WORLD",0
|
||||
EVEN
|
||||
|
||||
LEA myString,A3
|
||||
LEA StringRam,A4
|
||||
|
||||
CopyString:
|
||||
MOVE.B (A3)+,D0
|
||||
MOVE.B D0,(A4)+ ;we could have used "MOVE.B (A3)+,(A4)+" but this makes it easier to check for the terminator.
|
||||
BEQ Terminated
|
||||
BRA CopyString
|
||||
|
||||
Terminated: ;the null terminator is already stored along with the string itself, so we are done.
|
||||
;program ends here.
|
||||
Loading…
Add table
Add a link
Reference in a new issue