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

 Problem 4 [Assembly Language (10 points) (a) An LC-3 assembly language

Problem 4 [Assembly Language (10 points) (a) An LC-3 assembly language program contains the instruction ASCII LD R1, 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 R1 immediately after the instruction is executed. [3 points] (b) Given the following assembly program, ORIG LD LD LD BRz ADD ADD BR ST HALT . FILL x0000 .FILL x0000 FILL x0004 .FILL x0803 . END x3000 R2, ZERO RO, MO R1, M1 DONE R2, R2, RO R1 , R1, #-1 LOOP R2, RESULT LOOP DONE RESULT ZERO MO M1 (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!