Provide the full MARIE RTN for these new MARIE operations. Include the fetch, decode, operand fetch (if necessary), execution and store result (if necessary) stages. X is a main memory address (the last 12 bits of the 16-bit instruction) and should be referenced as IR[11..0] in your RTN. LoadIndex X – this is a load where a datum is loaded into the AC, but the address of the datum is not X, instead it is computed by fetching the address at memory location X and adding that value to the address of the value currently stored in a special register called R1. Using the textbook’s notation, we are performing AC M[R1+M[X]] meaning that we get the item at location X, add it to R1, and use that sum as the address to fetch the datum. Assume the ALU can directly access values in the AC, MBR and R1.
Provide the full MARIE RTN for these new MARIE operations. Include the
fetch, decode, operand fetch (if necessary), execution and store result (if necessary) stages. X is a
main memory address (the last 12 bits of the 16-bit instruction) and should be referenced as
IR[11..0] in your RTN.
LoadIndex X – this is a load where a datum is loaded into the AC, but the address of the
datum is not X, instead it is computed by fetching the address at memory location X and
adding that value to the address of the value currently stored in a special register called R1.
Using the textbook’s notation, we are performing AC M[R1+M[X]] meaning that we
get the item at location X, add it to R1, and use that sum as the address to fetch the datum.
Assume the ALU can directly access values in the AC, MBR and R1.
Trending now
This is a popular solution!
Step by step
Solved in 2 steps