Memory Problem 7 (10 points)
Address 100 Load to AC | mode | Address = 300
Suppose we are currently executing the instruction at address 200. XR is the index register and R1 is a processor register used for register addressing modes. For the given scenario (200 300), fill out the table with the effective address and content of AC.
300 400 301 190 302 250
R1 = 200
XR = 100
400 401 402
120 110 900
Addressing mode Direct address mode Indirect address mode Register indirect mode Relative address mode Indexed address mode
Effective address Content of AC
Problem 8 (8+5=13 points)
a) Assume we have a RISC instruction pipeline with 3 segments I, A, and E as presented in class. What kind of pipeline conflict/difficulty is present in the following code? Fix the code to solve the problem (as the compiler does) AND draw the space-time diagram of the instruction pipeline.
LOAD: R1 <- M[Adr1]
LOAD: R2 <- M[Adr2]
ADD: R3 <- R1 + R2