Machine-translated by Google. Questions are authored in English.
Top

Discussion

Identify an appropriate operation sequence with respect to execution of a machine level language instruction.

  • A.Load instruction address-get the instruction-execute the opcode-get effective address of operands
  • B.Load instruction address-get effective address of operands-get the instruction-execute the opcode
  • C.Load instruction address-get the instruction-get effective address of operands-execute the opcode
  • D.Load instruction address-get effective address of operands-execute the opcode-get the instruction

Answer: C

The correct sequence is load instruction address, get the instruction, get effective address of operands, execute the opcode.

The instruction cycle starts by placing the program counter's address on the bus, then fetches the instruction from memory. Once it is decoded, the CPU computes the effective addresses of its operands (fetching them if they are in memory), and only then executes the operation.

The other sequences are impossible: the CPU cannot work out operand addresses before it has fetched the instruction that names them, and it cannot execute before it has its operands.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.