Book Computer Organization Carl Hamacher 6th Edition 525 M
Book: Computer Organization - Carl Hamacher (6th Edition)
5.25 [M] Give the sequence of steps needed to fetch and execute the instruction
Load R3, (R5)+
on the processor of Figure 5.24. Assume 32-bit operands.
Solution
sequence steps to fetch and execute a single instructions
step 1:Fetch assembly instruction
step 2:Decode instructions and fetch operands
step 3:perform operations from arithmatic and logic unit
step 4:access the memory
step 5:write back the final value or result to the register
step 6:uppdate your computer telling it that the cahange has occured
given problem solution
note:
PC:program counter
1 Memory address <–[PC], Read memory, Wait for MFC , IR <–Memory data, PC <–[PC] + 4
2 Decode instruction
3 Memory address <–[PC], Read memory, Wait for MFC, Tempmem1<– Memory data,
PC<– [PC] + 4//increment program counter by 4 positions
4 Tempmem2 <–[Tempmem1] = [R3]
5 Memory address <–[Tempmem2], Read memory and wait for MFC, Tempmem<–Memory data
6 Tempmem1 <–[Tempmem1] + [R5]
7 Memory address<– [Tempmem2], Memory data <–[Tempmem1],Write to memory and wait for MFC
![Book: Computer Organization - Carl Hamacher (6th Edition) 5.25 [M] Give the sequence of steps needed to fetch and execute the instruction Load R3, (R5)+ on the Book: Computer Organization - Carl Hamacher (6th Edition) 5.25 [M] Give the sequence of steps needed to fetch and execute the instruction Load R3, (R5)+ on the](/WebImages/6/book-computer-organization-carl-hamacher-6th-edition-525-m-985569-1761506302-0.webp)