Lecture 2 Microprocessor Architecture 1
Lecture 2 Microprocessor Architecture 1
• Notice that the storage location at the lower address, 00724h, contains
the value 00000010b = 02h.
• The contents of the next-higher-addressed storage location, 00725h, are
01010101b =55h.
• These two bytes represent the word 0101010100000010h =5502h.
Microprocessor Architecture
SOFTWARE MODEL-MEMORY ADDRESS SPACE AND DATA ORGANIZATION
Ex2: How should the pointer with segment base address equal to A000h and offset
address 55FFh be stored at an even-address boundary starting at 00008h? Is the
double word aligned or misaligned?
Solution
• Storage of the two-word pointer requires four
consecutive byte locations in memory, starting at
address 00008h.
• The least-significant byte of the offset is stored
at address 00008h and is shown as FFh.
• The most significant byte of the offset, 55h, is
stored at address 00009h.
• The least significant byte of the segment
base address, 00h, at address 0000Ah
• The most significant byte of the segment
base, A0h, at address 0000Bh.
• Since the double word is stored in memory
starting at address 00008h, it is aligned
Microprocessor Architecture
SOFTWARE-Data Types-Byte
0 to 255
0 to 127
-128 to -1
Sign bit
• In the signed integer format, the leftmost bit represents the sign bit
of the number, as well as a weight of minus 128.
• For example, 80H represents a value of 128 as an unsigned
number; as a signed number, it represents a value of minus 128.
Microprocessor Architecture
SOFTWARE-Data Types-Word
Solution:
– Writing the value 10010001b as separate BCD digits
gives:
10010001𝑏 = 1001𝐵𝐶𝐷 0001𝐵𝐶𝐷 = 91
Microprocessor Architecture
SOFTWARE-Data Types
𝐴𝑆𝐶𝐼𝐼 𝐶𝑜𝑑𝑒 = 𝐻1 𝐻0
𝐷7 𝐻1 𝐻0
EX6:
Thanks