Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

For the assembly language program and memory map given below Assembly Memory Loc

ID: 2292582 • Letter: F

Question

For the assembly language program and memory map given below Assembly Memory Loc Machine Code LOADI R0, -2 0 LOADI R1,2 1 MOV R1, RO 2 ADD RO, RO 3 ADDI R1,-2 4 OUT R1 ADD R1, R1 6 ADD R1, RO 7 00101110 00110010 00010100 01000010 11011010 01011100 01010010 5 Trace the program execution for 4 Fetch/Decode/Execute cycles. Enter the register contents in the spaces provided. Assume all registers are initialized to zeros at the start of the execution. Further, assume that execution starts at memory location 0. R0: R1 PC IR: OUT: IN:

Explanation / Answer

4 fetch/decode/execution cycle means it executes the 4lines of program

R0 R1 PC IR IN OUT 0 0 4 4