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 11:00
The editing of digital photos us about the same level of difficulty as editing an analog photo
Answers: 2
question
Computers and Technology, 23.06.2019 00:40
Consider the following statements: struct nametype{string first; string last; }; struct coursetype{string name; int callnum; int credits; char grade; }; struct studenttype{nametype name; double gpa; coursetype course; }; studenttype student; studenttype classlist[100]; coursetype course; nametype name; mark the following statements as valid or invalid. if a statement is invalid, explain why.a.) student.course.callnum = "csc230"; b.) cin > > student.name; c.) classlist[0] = name; d.) classlist[1].gpa = 3.45; e.) name = classlist[15].name; f.) student.name = name; g.) cout < < classlist[10] < < endl; h.) for (int j = 0; j < 100; j++)classlist[j].name = name; i.) classlist.course.credits = 3; j.) course = studenttype.course;
Answers: 1
question
Computers and Technology, 23.06.2019 06:20
What is a point-in-time measurement of system performance?
Answers: 3
question
Computers and Technology, 23.06.2019 14:00
In which job role will you be creating e-papers, newsletters and preiodicals
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
Mathematics, 10.10.2021 05:30
question
Mathematics, 10.10.2021 05:40
question
Chemistry, 10.10.2021 05:40
question
Mathematics, 10.10.2021 05:40
Questions on the website: 13722359