Mapping Variables to Memory

When you're trying to learn how to address memory, the first challenge is to have a clear mental picture of the storage (the mapping) of variables to memory locations.

Use the following data declarations, and assume that the offset of arrayW is 0000:

.data
arrayW   WORD 1234h,5678h,9ABCh
ptr1     WORD offset arrayD
arrayB   BYTE 10h,20h,30h,40h
arrayD   DWORD 40302010h

Click here to view a memory mapping table (GIF). Right-click here to download the same table as an Adobe Acrobat file. Print this table, and fill in the hexacecimal contents of every memory location with the correct 32-bit, 16-bit, and 8-bit values.