Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 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