machine-instruction

List the step needed to execute the machine instruction

List the step needed to execute the machine instruction

Load R2, LOC

 

The required steps are:

  1. Send the address of the instruction word from the register PC to the memory and issue a Read control command.
  2. Wait until the requested word has been retrieved from the memory, then load it into register IR, where it is interpreted (decoded) by the control circuitry to determine the operation to be performed.
  3. Increment the contents of the register PC to point to the next instruction in memory.
  4. Send the address value LOC from the instruction in register IR to the memory and issue a Read control command.
  5. Wait until the requested word has been retrieved from the memory, then load it into register R2.

 

List the step needed to execute the machine instruction

Add R3, R2, R1

 

The required steps are:

  1. Transfer the contents of the register PC to register MAR.
  2. Issue a Read command to memory, and then wait until it has transferred the requested word into register MDR.
  3. Transfer the instruction from MDR into IR and decode it.
  4. Transfer contents of R1 and R2 to the ALU.
  5. Perform the addition of two operands in the ALU and transfer the answer into R3.
  6. Transfer contents of PC to ALU.
  7. Add 1 to an operand in ALU and transfer incremented address to PC.

 

 

List the step needed to execute the machine instruction

STORE R4, LOC

 

The required steps are:

  1. Send the address of the instruction word from the register PC to the memory and issue a Read control command.
  2. Wait until the requested word has been retrieved from the memory, then load it into register IR, where it is interpreted (decoded) by the control circuitry to determine the operation to be performed.
  3. Increment the contents of the register PC to point to the next instruction in memory.
  4. Send the address value LOC from the instruction in register IR to the memory and issue a Read control command.
  5. Wait until the requested word has been retrieved from the memory, then store it in register R4.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top