HOMEWORK
⚫DRAWTHEINTERNALBLOCK
DIAGRAMOF8086(detailed)
◦Refer Lyla B Das., The X86 Microprocessors
Architecture,ProgrammingandInterfacing
8086ARCHITECTURE
MODULE1
ARCHITECTURE
MODULE1
Someof the16bitregisterscan be
usedastwo8 bitregistersas:
AXcanbeusedasAHandAL
BXcanbe usedasBH and BL
EUdecodesandexecutes
instructions.
AdecoderintheEUcontrol
systemtranslates
instructions.
16-bit ALU for
performing arithmetic
andlogicoperation
Four general purpose
registers(AX,BX,CX,DX);
Pointer registers (Stack
Pointer,BasePointer);
and
Index registers (Source
Index,DestinationIndex)
eachof16-bits
EXECUTIONUNIT
MODULE1
FlagRegister
15141312 11 10 9 8 7 6 5 4 3 2 1 0
AF PF CF
CarryFlag
Thisflagisset,whenthereisa
carryoutofMSBincaseof
additionoraborrowincase
ofsubtraction.
ParityFlag
Thisflagissetto1,ifthelower
byteoftheresultcontainseven
numberof1’s;foroddnumber
of1’ssettozero.
AuxiliaryCarryFlag
Thisisset,ifthereisacarryfromthe
lowestnibble,i.e,bitB3duringaddition,or
borrowforthelowestnibblei.e.,B3
duringsubtraction..
Zero flag
This flag is set, when the result
of computation is zero
This flag is set, when the
result of computation is
negative
SignFlag
TrapFlag
Ifthisflagisset,theprocessor
entersthesinglestepexecution
odebygeneratinginternal
erruptsaftertheexecutionof
eachinstructionInterruptFlag
ausesthe8086torecognize
ernalmaskinterrupts;clearing
OF DF IF TFSFZF
OverflowFlag
Thisflagisset,ifanoverflowoccurs,i.e,iftheresultofa
signedoperationislargeenoughtoaccommodateina
d
ca
c
estinationregister.Theresultisofmorethan7-bitsinsizein
m
seof8-bitsignedoperationandmorethan15-bitsinsizein int
aseof16-bitsignoperations,thentheoverflowwillbeset.
C
ext
DirectionFlag
autodecrementingmode.
Thisisusedbystringmanipulationinstructions.Ifthisflagbitis‘0’,the
stringisprocessedbeginningfromthelowestaddresstothehighest
address,i.e.,autoincrementingmode.Otherwise,thestringis
processedfromthehighestaddresstowardsthelowestaddress,i.e.,
EXECUTIONUNIT
MODULE1
DedicatedAddertogenerate
20bitaddress
Four 16-bit segment
registers
CodeSegment(CS)
DataSegment(DS)
StackSegment(SS)
ExtraSegment(ES)
BUSINTERFACEUNIT
DEPARTMENTO
Se
F
gm
E
e
C
n
E
t
,
Registers>>
ARYANETINSTITUTEOFTECHNOLOGY
MODULE1
Every instruction of a program has to operate on a data.
Thedifferentwaysinwhichasourceoperandisdenoted
inaninstructionareknownasaddressingmodes.
1.RegisterAddressing
2.ImmediateAddressing
3.DirectAddressing
4.RegisterIndirectAddressing
5.IndexedAddressing
6.BasedIndexedAddressing
7.RelativebasedindexedAddressing
8.ImpliedAddressing
ADDRESSINGMODES