Skip to main content
\(\newcommand{\doubler}[1]{2#1} \newcommand{\binary}{\mathtt} \newcommand{\hex}{\mathtt} \newcommand{\octal}{\mathtt} \newcommand{\prog}{\mathtt} \newcommand{\lt}{<} \newcommand{\gt}{>} \newcommand{\amp}{&} \)

Section2.8Exercises

1

Say you want to allocate an area in memory for storing any number in the range \(0\)—\(4,000,000,000\text{.}\) This memory area will start at location \(\hex{2fffeb96}\text{.}\) Give the addresses of each byte of memory that will be required.

Hint Answer
2

You need to allocate an area in memory for storing an array of 30 bytes. The first byte will have the value \(0\) stored in it, the second \(1\text{,}\) the third \(2\text{,}\) etc. This memory area will start at location \(\hex{00100e}\text{.}\) Show what this area of memory looks like.

Answer
3

We have shown how to write only the first sixteen addresses in hexadecimal in Figure 2.7.1. How would you write the address of the seventeenth byte (byte number sixteen) in hexadecimal?

Hint Answer