Question: Problem 4 Assembly Languagel (10 points) (a) An LC-3 assembly language program contains the instruction ASCII LD RI, ASCII The symbol table entry for ASCII

 Problem 4 Assembly Languagel (10 points) (a) An LC-3 assembly languageprogram contains the instruction ASCII LD RI, ASCII The symbol table entryfor ASCII is x4F08.If this instruction is executed during the running of

Problem 4 Assembly Languagel (10 points) (a) An LC-3 assembly language program contains the instruction ASCII LD RI, ASCII The symbol table entry for ASCII is x4F08.If this instruction is executed during the running of the program, what will be contained in Rl immediately after the instruction is executed. [3 points] (b) Given the following assembly program, ORIG LD LD LD BRZ ADD ADD BR ST HALT x3000 RO, ZERO R1, MO R2, M1 DONE RO, RO, R1 R2, R2, #-1 LOOP RO, RESULT LOOP DONE RESULT .FILL x0000 ZERO MO M1 FILL x0000 FILL x0004 FILL x0803 END (i) What hexadecimal value will be contained in RESULT after the program runs to completion? (ii) What does the program do? [4 points] [3 points] Problem 4 Assembly Languagel (10 points) (a) An LC-3 assembly language program contains the instruction ASCII LD RI, ASCII The symbol table entry for ASCII is x4F08.If this instruction is executed during the running of the program, what will be contained in Rl immediately after the instruction is executed. [3 points] (b) Given the following assembly program, ORIG LD LD LD BRZ ADD ADD BR ST HALT x3000 RO, ZERO R1, MO R2, M1 DONE RO, RO, R1 R2, R2, #-1 LOOP RO, RESULT LOOP DONE RESULT .FILL x0000 ZERO MO M1 FILL x0000 FILL x0004 FILL x0803 END (i) What hexadecimal value will be contained in RESULT after the program runs to completion? (ii) What does the program do? [4 points] [3 points]

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!