Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Irvine K.R.Assembly language workbook.2002.pdf
Скачиваний:
46
Добавлен:
23.08.2013
Размер:
244.02 Кб
Скачать

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

Соседние файлы в предмете Электротехника