In a processor that supports memory-mapped I/O, which instruction type can be used to access an I/O device register?

Options

  • A. Only special IN and OUT instructions
  • B. Ordinary memory load and store instructions
  • C. Only arithmetic instructions
  • D. More than one of the above
  • E. None of the above

Correct Answer (Detailed Explanation is Below)

B. Ordinary memory load and store instructions

Detailed Explanation

Correct Answer: Option B.

Explanation: Device registers occupy addresses in the same address space as memory, so ordinary load and store instructions can access them. Device registers may have side effects, so software must follow the hardware specifications when accessing them.