Skip to main content

Microcontrollers

Exercises 13.6 Practice Problems

2.

In indirect addressing, a 16-bit pointer register is used to address memory. How many bytes of memory space can be accessed in this scenario?
Answer.
Solution.
\(2^{16} = 65535 = 64\textrm{k}\)
For each of the following questions, use TableΒ 13.6.1 and Y = 0x0103 to determine the value stored in the destination register, as well as the value of pointer register Y, after each of the following subsequent operations. Assume that each of the following instructions are executed in order and will affect the value of Y in subsequent questions.
Table 13.6.1. Data stored in different SRAM addresses.
Address SRAM Contents
0x0100 0xC1
0x0101 0xFB
0x0102 0x3F
0x0103 0xE9
0x0104 0x95
0x0105 0x9A
0x0106 0x1C
0x0107 0xDC