Architure of Computer
Architure of Computer
MICROPROCESSOR PROGRAMMING
Pentium ...
80486
80386
80286
8086
Registers
• The registers for the 8086 and 80286 are only 16-bit
wide
31 15 7 0
EAX AH AL EBX BH BL
AX BX
EDX DH DL
ECX CH CL
DX
CX
31 15 0
ESI SI ESP SP
EDI EBP BP
DI
31 15 0
EIP IP
31 15 0
EFLAGS FLAGS
CS
SS
DS
ES
FS
GS
1. Code segment: CS
2. Stack segment: SS
D
P2
P1
The FLAT Memory Model
1 byte = 8 bits
Data Representation
1. The number 26 + 1 = 65
Text Files
• You already know how to convert from one base to another (if
not, review 03-60-265 notes)
Integer Representations
Ex:
NEG(10) = NOT(10) + 1
= NOT(0000 1010b) + 1
= 1111 0101b + 1 = 1111 0110b
• But
1. 16 on 1 byte
2. −16 on 1 byte
3. −128 on 1 byte
4. −128 on 1 word
5. 0 on 1 word
• Exercise #2: Give the smallest and largest positive and negative values for
1. A signed word
2. A signed double-word
3. A signed quad-word