Due: Friday, November 8, 2024, 11:00 am (start of the class)

Email Ying your homework. The email subject should follow this format CS232 Fall2024 HW6 -- Your Name.

Addressing Modes

The contents of memory are as follows

Address Value
00 00
01 F0
02 12
03 0A
04 02
05 11
06 FD
07 FF
08 0B
09 05
0A 13
0B 42
0C 2A
0D 03
0F 02

The contents of the register set are as follows

Register Value
A 04
B AA
C 07
D 01
E ??

Memory addresses and the values in memory and registers are represented in two hexadecimal digits. Each of the following instructions loads some value into the register E.

For each instruction, specify what value is moved into the register E.

  1. Load Immediate 04
  2. Load Direct 04
  3. Load Indirect 04
  4. Load Indirect 03
  5. Load Indirect 0D
  6. Load Register Direct A
  7. Load Register Indirect A
  8. Load Register Indirect C
  9. Load Register Base-Indexed A, C # A is the base register and C is the index register
  10. Load Register Base-Scaled Indexed A, D, 4 # A is the base register and D is the index register

© 2024 Ying Li. Page last modified: .