Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
22
Task/Copy-a-string/LC3-Assembly/copy-a-string.lc3
Normal file
22
Task/Copy-a-string/LC3-Assembly/copy-a-string.lc3
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
.ORIG 0x3000
|
||||
|
||||
LEA R1,SRC
|
||||
LEA R2,COPY
|
||||
|
||||
LOOP LDR R3,R1,0
|
||||
STR R3,R2,0
|
||||
BRZ DONE
|
||||
ADD R1,R1,1
|
||||
ADD R2,R2,1
|
||||
BRNZP LOOP
|
||||
|
||||
DONE LEA R0,COPY
|
||||
PUTS
|
||||
|
||||
HALT
|
||||
|
||||
SRC .STRINGZ "What, has this thing appeared again tonight?"
|
||||
|
||||
COPY .BLKW 128
|
||||
|
||||
.END
|
||||
Loading…
Add table
Add a link
Reference in a new issue