Microprocessors & Microcontrollers
Microprocessors & Microcontrollers
4 bit processors
INTEL 4004 INTEL 4090
8 bit processors
16 bit processors
8086 8088 21109 28001 80186 80286
PENTIUM I II II
DUAL CORE
VaccumTube
RStrigger
Transistor
IC in your
Sim card
arithmetic
Acy performs
f
Arithmetic Logi Unit logical
operations
FI
O
Newiletsmareinto808 mf
tITaepenaattnnct'and
gutqghi.it
units
y Bus gnterface Unit
Execution Unit
i
y
L
memory
3 functional parts
Instruction Pointer IP
Segment Registers
Instruction Queue
i
Keeps address of memory
instruction to be executed
7
i
4 Stack segment Ss
instruction
When EU is busy in decodingand executing an
instruction the BIU fetches up to 6 instruction
bytes for the next instructions
These bytes are called pre fetched bytes and
they are stored in a FIFO register set which is called
as a queue Timerequiredfor execution oftwo
K instructions without pipelining
Sequential F D E Fa Da Ez
phases
Time saved
BIV F Fa F
Her D E Da Ez Dz E
Overlapping
phases
Time requiredforexecutionof
two instr becauseofpipelining
fontrol
Bus
Function
Register
Ax Accumulator Register
for arithmetic logic datatransferoperation
Base Register
BX also known used as addressregister
CX count Register
usedforloopcounter shift rotatebits
Dx DataRegister
used in division multiplication 1 0operations
painter
IT
I 16 I
Accumulator
at
Data Titi
4
I
me
J
gym
extra segment
TG size
bit
ALU 16 bit size
Can perform Arithmetic Logical Operations
8 bit as well as 16 bit
I 8 iii is
TRAI
y
i
9ft unused
AuxiliaryCary Zend
I
t.am flag Carey
3 controlflag
flag Direction Gy t
Trap
Controlunit
Timing of EU
Pit
É
Collector
t
00
040
8
MemorySegmentation
ÉÉf
a
starting
paddies code segment 364k
bitsaved Address
Wigston II.IE
Ii zmBDSYa
gq5E
Data segment your
m.fm
Physical
gg.y y
Es
i Eta
ÉÉ7 segment Your
20
O II
Do
3
register
Faint
data
DS 222240
e.gg
BIT appends to of address
Base addness ofDS becomes22220 H
Logical address
t2 001
aim
e
The contents
of following registers are
i
IP 67214 Bx 78654 DI 12354 BP 78214
address bytesin CS DS Es SS
x
18619 101 offsetadd
tqfg.gs 61 h X
K t
19h
17830in
632in
IP 11 01
LA of IS CS 12980 11 IOB
nee
104 DI
ISH
PAGES ji
129801 t 12354 13BB
LA El ES DI
of
E 12984 1235 H
PA of Ss
stIISPBE
FI
16
Tide 678904
ssxente
678904 18214
31 FOBI
PA of DS
DS X 10N T SI BX SI is
not
given
DJ IoT By 0 10 OA lo A
11 OB 11 B
56785 75654 2 12 OC iz c
13 OD 13 D
4 OE 14 E
g M
15 OF 15 F
f
16 10
7
8 17 IT
9 18 12
13
É
_stamina
instruction
size in leases CAC
operands are easily fetched
CI
e MOV CL 124 0001001000110100
g 15 BX
MOV BX 12344
2
Igistiantgaffenfusing register
instruction size decreases
MOV AX BX
3
I.is
jt ti aintiyspeibiediie
instruction
e
g nor earnp moist'd'atta
from4321minds
memorylocation offset into PA
I CL to 4321H
DS 43204
MOV Ix 432K
DS 42214
4 Indirect Addressing Mode
1 BE w tI j aema ei.I
Or any of the two index registers SI DI
ftp.detheoffstddnsstorthe
data type
eg nor cc
Bx I
b Regist Reativaddressing Mode
Operand address is calculated using 1 ofthe base
eg Mov El
Bjp moves a byte from address
painted by 1244 in Dstocc
1 Bogitigjitimatiiatiittisutsnaexresista
8 bit on 16 bit displacement
eg OU
TEIDE ZI
5
Yptidasaddissifeittnotspecipediatne instruction
Typesoffustructions
Movgustruction
p Th
Memo
BYt bits
Register
opcode field 6
RegistadinectionICD EEÉRII
IORIMERED
Fasidith q FEIT
IF MOV AL BI
REG SIRE TIEN DI
MOV
IF REG DESTINATION TIEN DI AYY
1 ASSEMBLY BINARY
2 BINARY ASSEMBLY
8 BEC h
8 BEC or 8 SBE
e.g Becky metadeeing
nogf.FM
tt assI
destination
i g
9 101 REG Bp
iii
Tnt yo
MOV EEG RAI
me to
ay MoD 00,01
R N DS SI
PDF
Pg I
o
loop
I at
7 represents
MOD Function memory
moral
IIisement
extended displacement Mov Al 2247
Ds
16 bit
001 001 DS BX DI
o s
011 SS CBP DI
If
01 I
i
BL
Ds is 5
101 CH I 101 DS DI
110 110 ss Ep Pointer
I1 I DS BI
1
810
ÉÉÉjÉÉ moral
LEA
egistYEE
IOU BY
.Y.IE
BAI loads the
É DI BX
µ Data
Byte
QA OAh
10 Of a hexadecimal
Io 0 1 I List
50 OXIE Ith Databyte
To 0 2 5 28h