subject

The following program compares two ASCII character strings of the same length. One string starts in memory location x5000, the other starts in memory location x6000. The characters are stored in a sequential series of memory addresses, and the last such address contains an ASCII NUL x00 (used as sentinel). If the strings are the same, the program terminates with the value +1 in R0, otherwise the program ends with the value -1 in RO a. Insert the missing instructions in the code below You do not need to submit the program, only the missing instructions, referring to their respective number .ORIG x4000 Insert instruction ai here LD LD LDR LDR BRz R1, STRING1 R2, STRING2 R3, R1, #0 R4 , R2, #0 EQUAL NEXTCHAR 10 12 Insert instruction a. ii) here 13 14 15 Insert instruction a. iii) here NOT ADD ADD BRz ADD 16 R3, R3 R3, R3, #1 R4, R4, R3 NEXTCHAR RO, RO, #-1 19 Insert instruction a. iv) here EQUAL STOP STRING1 STRING2 ADD R0, R0, #1 HALT FILL x5000 FILLx600 . END
b. Write a symbol table for the code above. Your symbol table should be similar in nature to that produced by the LC-3 assembler: for each label that appears in the code, your table should list the label and associate the label with an address in LC-3 memory. For an example, see P&P Section 7.3.3, pp. 186-187

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 17:30
Which tab should you open to find the option for adding a header?
Answers: 1
question
Computers and Technology, 23.06.2019 15:00
Barbara is interested in pursuing a career in the science and math pathway. which qualifications will her reach that goal? a.an advanced knowledge of physics and math b.an advanced knowledge of engineering and math c. an advanced knowledge of physics and robotics an d. advanced knowledge of machinery and math
Answers: 1
question
Computers and Technology, 23.06.2019 15:20
What does a bonus object do? a. subtracts lives b. keeps track of a player's health c. gives a player an advantage d. makes text appear
Answers: 1
question
Computers and Technology, 23.06.2019 18:00
What can a word user do with the customize ribbon dialog box? check all that apply. minimize the ribbon add a new tab to the ribbon remove a group from a tab add a group to a tab choose which styles appear choose which fonts appear choose tools to appear in a group
Answers: 1
You know the right answer?
The following program compares two ASCII character strings of the same length. One string starts in...
Questions
question
Business, 01.02.2021 20:20
question
Arts, 01.02.2021 20:20
question
Mathematics, 01.02.2021 20:20
question
Mathematics, 01.02.2021 20:20
question
Health, 01.02.2021 20:20