- •Workbook
- •Workbook Topics
- •Binary and Hexadecimal Integers
- •Answers: Binary and Hexadecimal Numbers
- •Signed Binary Representation
- •Signed Integers
- •Answers: Signed Integers
- •Tutorial: Floating-Point Binary
- •Floating-Point Binary Representation
- •Answers: Floating-Point Binary
- •Tutorial: The Precision Problem
- •Register and Immediate Operands
- •Register and Immediate Operands
- •Addition and Subtraction Instructions
- •Answers: Addition and Subtraction Instructions
- •Direct Memory Operands
- •Answers: Direct Memory Operands
- •Indirect and Indexed Operands
- •Answers: Indirect and Indexed Operands
- •Mapping Variables to Memory
- •http://www.nuvisionmiami.com/books/asm/workbook/memmap.gif
- •MS-DOS Function Calls - 1
- •http://www.nuvisionmiami.com/books/asm/workbook/dos1-1.asm
- •http://www.nuvisionmiami.com/books/asm/workbook/dos1-2.asm
- •http://www.nuvisionmiami.com/books/asm/workbook/dos1-3.asm
- •http://www.nuvisionmiami.com/books/asm/workbook/dos1-4.asm
- •http://www.nuvisionmiami.com/books/asm/workbook/dos1-5.asm
- •MS-DOS Function Calls - 2
- •http://www.nuvisionmiami.com/books/asm/workbook/dos2-1.asm
- •http://www.nuvisionmiami.com/books/asm/workbook/dos2-2.asm
- •http://www.nuvisionmiami.com/books/asm/workbook/dos2-3.asm
- •http://www.nuvisionmiami.com/books/asm/workbook/dos2-4.asm
- •Error-Correcting Codes
- •Boolean and Comparison Instructions
- •Answers: Boolean and Comparison Instructions
- •Decoding 12-Bit FAT
Mapping Variables to Memory
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.
http://www.nuvisionmiami.com/books/asm/workbook/memmap.htm [1/15/2003 4:44:00 PM]
http://www.nuvisionmiami.com/books/asm/workbook/memmap.gif
http://www.nuvisionmiami.com/books/asm/workbook/memmap.gif (1 of 2) [1/15/2003 4:44:01 PM]
http://www.nuvisionmiami.com/books/asm/workbook/memmap.gif
http://www.nuvisionmiami.com/books/asm/workbook/memmap.gif (2 of 2) [1/15/2003 4:44:01 PM]
MEMOR Y MAP
Write the names of variables next to their corresponding memory locations
doubleword |
word |
byte |
0000
0001
0002
0003
0004
0005
0006
0007
0008
0009
000A
000B
0 0 0 C
0 0 0 D
000E
000F
0010
0011
0012
0013
0014
0015
0016
0017