Skip to main content
Contents
Dark Mode Prev Up Next
\(\newcommand{\N}{\mathbb N} \newcommand{\Z}{\mathbb Z} \newcommand{\Q}{\mathbb Q} \newcommand{\R}{\mathbb R}
\newcommand{\lt}{<}
\newcommand{\gt}{>}
\newcommand{\amp}{&}
\definecolor{fillinmathshade}{gray}{0.9}
\newcommand{\fillinmath}[1]{\mathchoice{\colorbox{fillinmathshade}{$\displaystyle \phantom{\,#1\,}$}}{\colorbox{fillinmathshade}{$\textstyle \phantom{\,#1\,}$}}{\colorbox{fillinmathshade}{$\scriptstyle \phantom{\,#1\,}$}}{\colorbox{fillinmathshade}{$\scriptscriptstyle\phantom{\,#1\,}$}}}
\)
Exercises 13.6 Practice Problems
1.
How many bytes in memory can be accessed if 6 bits are used in a 16-bit instruction for the memory address?
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.
0x0100
0xC1
0x0101
0xFB
0x0102
0x3F
0x0103
0xE9
0x0104
0x95
0x0105
0x9A
0x0106
0x1C
0x0107
0xDC
3.
4.
5.
6.
7.
8.