Beruflich Dokumente
Kultur Dokumente
BIU & EU make fetch & execution of instructions independent operations Both units execute in parallel and result in efficient use of system bus and higher performance
6-Mar-14
Big Endian
Most significant byte goes to low memory location & least significant byte goes to high memory location 8086/8088 based processors memory in little endian format access
8
6-Mar-14
Big Endian
Little Endian
9
Big Endian
Little Endian
10
Memory Alignment
For storage of multi-byte data elements such as 16-bit, 32-bit , 64-bit data memory address is either aligned or misaligned An aligned address for an n-byte data element is an address that is multiple of n
For 2 byte data, aligned address should be multiple of 2 For 4 byte data, aligned address should be multiple of 4 For 8 byte data, aligned address should be multiple of 8
If the address of an n-byte data in memory is not multiple of n it is said to be misaligned/unaligned x86 processors can handle both aligned and misaligned memory addresses
11
12
6-Mar-14
Address
0008H 0007H 0006H 0005H 0004H 0003H 0002H 0001H 0000H
Physical Memory
Byte 8 Byte7
Word 6
Misaligned Words
An aligned double word is stored at a memory address that is a multiple of 4 If a double word is stored at an address that is not a multiple of 4 it is said to be a misaligned double word
Aligned Words
Word 1
13
14
Physical Memory
Byte 8 Byte7 Byte 6 Byte 5 Byte 4 Byte 3 Byte 2 Byte 1 Byte 0
Double Word 0 Double Word 1 Double Word 4 Double Word 3 Double Word 2 Double Word 5
6-Mar-14
Data Types
Data formats supported by 8086/8088 P are :
Data Types
BCD Data
BCD data is processed either in unpacked or packed form in 8086/8088 microprocessors In unpacked form one BCD digit is stored in 4 least significant bits of a byte while upper 4 bits are set to zero In packed form two BCD digits are stored in a byte
Integer Data
Integer data may exist as :
Byte (8-bits) Word (16-bits) Double Word (32-bits)
Integer data is processed by 8086/8088 as unsigned or signed data Negative numbers are stored and processed in 2s complement form
ASCII Data
Each ASCII character is stored in a byte in 8086/8088 microprocessors
17
18
8086 software model includes an instruction pointer (IP) register, 12 16-bit internal registers, a status/flag register and memory & I/O address spaces Software architecture of 8086 & 8088 microprocessors is same
19
20
6-Mar-14
Segment Register
0 7 AL BL CL DL 0 15
Code Segment CS Data Segment DS Extra Segment ES Stack Segment SS
AH BH CH DH
CS DS ES SS
Pointer Register
Stack Pointer Base Pointer
Flag Register
SP BP 0
Status and control flag
15
Flag H
0 7
Flag L
Index Register
Source Index Destination Index
Instruction Pointer
SI DI 0
Instruction Pointer
15
15
IP
* All 8086 Registers are 16 bits in size. 8086 data registers are further divided into two 8-bit halves
21