8086 Notes
8086 Notes
8-7Ft ata^na
sus Can addes y oe a = , 8 , 5 7 6 renep bcabtne
Mem apa = 4M By- 00000H- F665F.
L
oaaes n stre &-rt SyBE-uide leahon
a
odd
Ho-pin nfp ovR on a
sivg e r5 up
Mao. opeaiy freuaey
Too odes Mivumum Moele Sigle ayse-
Maoimwn
A£U:
Confru Ciruifax, Isuebon Decose
Ey Contains Ooiro? cireut
sth diec itena) oferadom
8o85 Conbahe-
SI1 12 to 9 8 7 6 S 93 Gi
Ca
Paai
Auduany
Zer
a
Sigle-ste Te
Ltemup pualle
Stig Dieehon
Oveefo isiates overfe
U -
3- Geherafurbose Ragiserz
GPR A , 4 , G1, B, CM, CA, DK & D£
Segmest Rgisez :
memT
oulr faus 65,536 (. K Gyes )
Rosnber at
any iven hme 8og6 o c uht,
zuahsbon - h i Mewmor
al ta r daa
-Hoo nama sqme
ae
adrses
soetofs
Pie 2 adoo egien in t Eu:
aun use
tohstd
t i t efoe of adasa aonin one o 4e sgneB
S I Cur be us2to Ad e o f a daa aore in t dck sepmet
t
exs- adAingcodledr of s to sme aas rgiakg eneeute 6
number in t DS re ser
Regiskr ptlressi?:
TrasEs a coer ef a S o On forn fee source epser or coveteta o a reoy
neiote Asdemig
oeer e sove, an inmearle brë cond sa, into 4e Aeebinaton vagitaF
OTenory lodon
m o u A£,2 : oies a b - sina 12t in a r A.
Ax Regiee:
ata16-5it accumulata lo 8-it accumuaty ¬J
o oUT inshuokonj alesye use te AX o 4 r inbuthig ote th 6
o 8 da to or fom- an Ho pos.
Mudbatoyon 2 division ieiuod n a'so use tu 40 0r 4
44 is me a8 es accumuor o 095mioorocaggor
arlBe giar, on t gaon apope nguii udre tonkrhe tan
we asdrenig 8o86 menont
4*emer afeona uslaing Rs ng'ski
cotert aestg mes
RepiskeZ
Useotol #a ider 6-it rsubrvkucf ) tn cone of 16bit 16-4t
t o he kih 6-6't divden o 3 - t Aind aa t enaa
peavg in ox o f a t6-%t diviaion
f r ta oper
kHes in Maemvric - inibak or shorene of t Esh od (s)
aion fespmao A 2a irnetuobon
wnenber omei
Mnemonis - Jusf a deice fo help us
t can be loade itb mamoy 4 nus.
AL - a ate to mackine gueye &o ttat
hardaare 4 sofftare
AP- CAlberg e secret of ourcompuders
Os 0 o n foge
teaoks us altout say e computer handuware A
and abiaBm nRoank communiasfe t s os
Mackia ebensext, easier fo we tean macia l a g a 2
Reosnsolenan A#P
wabs us o wneraan mpter a ifecrtura R as
aor ils usliy - - teletom bagrnf rEN - P
specio codikomg
nclude ,o akgo
Inshnucktg - Mou, 4PD oeabong ttat tea comcte Ca eceat
Direchves ENO, sEENT - to þrovike inrornaionto +ea aseme
Dperafog R , STZE - used in edpressjong
Idedifies
A iifer ( q ) s a ame ket yo af#? f aninin gor g -
an tat you ecpeato veferunea
Tibo Ae of tsexhfior- r2ame anlade
m e - refers to ta a e o a ara dem auck as coUNreR in
Ceer CDUNTER DG
SaBe-asleo ofan insues
Same rdes for Cot a name latel 8
Shedement
n asemby o_pam orisi ofa ce of safomenz and of too
code
Jemuchong u Qs Moy R 49D uticdh t aweer fansces to objae
aooe 2s
airechves skch tell ta ausenbler to efom a shecfefasn r
defind a afa höm
hovrat
Cefer1 oporcbon- Loperand)J T,6mmetJ
Maoof 32 Caractera on ine C1), searate af lea one ane atas
a
area or osfaat.
hor irshicb, ar oheaben APD r MoU inkicafes an ofembo to afm.
TA
oberan proviêes a n information- fr ta oherabon. fto aeh oa.
for a dafa dem oberand afine8 an iniba vae
CouTER
hor an. ingmicim, an oferan) inaitates ore to paufor 4ea aton
hata
a
a
tea wYin
fo cobo
corool
irecbve eradeso u you fo
sakeme-tr t l a g e r e e k s
Drckes- cowat
shfames -
names t
e d to gives
Th
oade
man
-
eoeata le
o
are as folaoR:
iraetive8
Tu
mos comon
TITIE Diveetives
T PAGE O Aa
qnembonoasam
c
of lishug aof a n apant of
aceao
fomet Bule
Kefp to aorte Aae n o eef
on
lvsth o q
,ancd t e ines fo
bunbose no.o
i + e i r onl
nae.
Tas tes
Diraabve
Aesiqrnatek
PAGE
4t efat ol-a mgaarn, and fornmaë (5
ne
ddareters ena
bRe
mac. o .O PAGE 60, 3 2
6 PAGE Cler,ColdG] in.
132 clavack er
2 uids is er e
kgk ts Go kines her boge claactes:
Go-132
anno. of
enber: B s er ege: lo-255 PAGE 5O, 8o
Tapic
&atenetcauseg fe
arsemClerto lefauelE
Omission oaPAGE
ta
io 2-eaah oge o
pogam o þrint
ov
tihe r a
drech ve
a
TITE auges
y e Onca
TETEE teot LComment]
Form
f namo +progr
her fel- Oommo acdcat e
4 mment -
aAAibona deschbbon -oPhona
TrTEE AsMSORT tregum fo so- 8heletz'name
Aseny
2 EGMEA Tireghve
soe6 funchins i Afet ssama in mahio ss to doina stas stnge
DS 4 Aafin dao eng t es- f oide erecufaSle pegparn8-
an fomat is
uoe to Ajia 62es in mamo
obeedoL
Bemert-ramLL SEGMENT
a t - nansa ENDS
sta of eqmait
Ttu SEGMBAT shemect sfas té ramiytaner@ious
rezet, uniqua
1 fSlouo asenby
must be
r smet- a m
On a
cauges e segmet to a
PARA-
Tpica orepeuiremet
-
divie
ave
-
t's
o Kat>laetig aiak
FggrCoundany
16 o 10H
defau!t PARA
Ominsibn e an oferan
unt o p m e uan=
omia -
insliates aseter fo Combine &gm ext
Hoy are lina aeF asenb
- s STACK,cOMMON!, PUBCIC, AT
-Na onutes seadon o code oNE
en_ineirs, incoed in apostophie
clas- uad fo zm velefed sma
8fa0c 2agma.
se 'cod Aafr r 'Staoc' far code - , Aata -pr
EOirghve
ENDP dsrecve ends a pocacure
ENDS ireebue ends a 32mos
END dire5ve erds tea astie ogoam f apheagag te o htemet
KbmAT smert- ame ENDS
otacue- ana NOP
ASsUME Pirechve:
Ttu epivnI
ivecve i AssumË , coei toAa aagmo R
4SSUME SS: staonara, DS;
datao9naa, CS: Codde 22 nane .
oeraa nay aara a" 40n
4SsUME may also ortain en ey fr Es
as. ES: da sqane 2
na max unte ES: AOTHEA G ns
coela
ireaives, if t ju-a meoge fo Alh asenbler cone oynbeke
oter
SPRoc 9irabye:
bronchR
cosef agrm uich on&ler
ouw a mox
Tu cs Corars exeorable
rcin. -
9peste
DuP
Un to inbolio sevaia) lesrmg fo 22r0
PRICE
Ds inikaheg tan fo ero
DERGHT in 9s
(8 MODE vave
Selealg a tansan mevo moda fr ymuyr R
Deerote a sqme are na eta mao. 8iaadea aqme
Mosoy
Ti
Sma
Ma umn
- m- anutteyr semaEt
NEAR 64ms
Comfrc ol t AL o te grate an 6
Sang
iny mede craales CoM oozram and o r s Cradte .EXE g a r
assEG Olroue
tells MASMto facm te segmes tn stansn odera ua y
Mtsop higl-arel lavguaga
Oe Cav a 2 fe seqmeb in am der in soueca ogoam ÄHoat
aemas ss e se oegisk
s i n o f loo is moe Hean. anoupk r gean * a n
DATAT Manc tea beginni- of t s agnet
A vieles are def in t ara fellaw PAT deadve alal
DT TRn
DATAX D8
DaTAY 98 2S
A TAZ D3 21,12 ,23,2, 25
9ATAzto 21, DATAZ+122J
Te ods, uniihalir
93 S DUP (12) a art w kar oc oc ococ oc
ABEL Direchve
migns a soeific atthbute tag . , oo, douke d ak) to a eHec.
Chavacer Shi
clenechRin iga qe quotë ' '),
sto in AserI fmst o u t opospopka8.
Alurnenico rskact
fttou by8, uefl fr tagjica eaboa
Decim folloed y Dor nona, tonuela irto ho i n ojeo toca
Hecadesi
Ohera tng:
* erator oides a facdl for cha-gig audzhe oferande dusiY
awse
2M4Sefoms oikamebTR lorl sperborg at ause te, nsfa xnaa
Tu vesut s caloulafed R Racad in meoy at te aureat þng
lens
4 bsP most Paeay ud deaors ae
U Ained oherafar
Mullkadbn
Oiinonn
MoD Modus aitenehe Teainder)
sshachon
(2 Goxdean Dfeate
Ane,OR, alO7, XoR
e ofeator:
Yens + aistanta
f label r aneda fam bezhnni{ PR e t .
a
PTR aeratr
f o r e s a aniale or labes be ud as if it oese f a spedified
PTR
Mbe ond, la. dool,gor, a tie, nGK, 5AR ek.
3Ralahgra deratz
E8, NE, £T, AE, GT, GE
Rehuar a vale ef o5656H ken a rakiozt's a r o wan if ts t b
CSufoearg
S u f t an ofeans taff+ on igcout o.of Gifs SHe, SHR
oaerand r y k ipe elasor a poesio
9SHoRT oeetr:
A b ' i e s a ale s Sei in t vage - 1 + 18 S fom ta
High Poi
Refug ti 846x o loud 84% of a consautr esmeasjo.
FeNG TH pove
Refunns no.F , o o ,Aan, eron aleodr ia aialR
any aiale uas iihaliaa ht t Dup dreca
THS oRa:
oreak aoperand of a
shecified tye at a .
ront pngram bcabon..
used whto PTR
T r ma be any oe
of tose
ES+ 10H
Meu BH, ES: t o ; Aeo fom:
MOU CO, ss: [ e
CRamairi-Saa Yonself[)
Eomesioo
Aionmainabono ohentors A derands ted ie oinvae bp ea
(2 MOU , Aat
s a imnediode dad ieo te egiser, - 3 bes to
M u MoU co, 31S2M oo)31$2 H 3-t
(6 rak, men/rg:
MDV
s
vememr egna aA s g t g e r , 2-4 by ln
to a
SS, Dx s s ( P 2*ze
MoU
in Ge acconpr la nlY ou Tmp, cACe 2ET, FRET a ,
Cages cs Can
wT isasns
(PusH me/ :
eIler enf onts fop e 4a staoK
Save eter memo r
(9
- b l long, ap is decrameted z
fusHPuSH B
PuSH 8 :
(2 PoP men/va8
24bye (o
P o P cex+sI] { on Aom tob of paoc t 13300H, sp inson et y2
1- log
3 PoP 8
opboafe o-Vo
(5PoP
oppeite of 4
Rags are afete
SAHF
PEA r8,mam
aadert teat is sfeifrae i
A t mgses tity t e t6-t ofset
emo ofeaa, 2- eo l
U)» s5¬a -yl
LEA , [aC+ OF62 M
1 9 0 0 2 R62M o 3562J
(1CS mom
(22 ES ,
2-47t2
Es DI Le3; (or) - (13
300HJo (ES= 13oo2 H)o,
(23 ngak.
to accumuladt o koa 16-taAslocas in im Dx
put
Pot
U T 9%, A
obhofe of 23
(2600T o , Ae
XCAT
Perftm tste loo u via At G pile, 1-s
timest c Isuehog
nforms makomaioS oteabons ovz e o a a:usino binang,igna i
Bc
wwigad baCa gecO + umigras wrpauca
n signa bina oeabins, O5 inlicatës ukader ts casu cem
AD AX, SH J = 415H, 3-
A7merrg1, mem/g2
SBO AC ,afy
(3 CMpAc, dats
mpare 8ht or 6-it immèsiae At ait acaumulator s fofmad
CmP me , mo/ a2
( IAIC TeR_
Incree p t donkrs 1 o 16-t r1skr, 1-S
5las afeks - of, Sh, A , P, z
U FNC r r e
8 t I 6 - E oferrboa 2-
zNc Lx+SIJ: (seooH)-(9000M), 2-a
oEC e/e
ANEC Men/
Aegate conit o rmgirkor memon lodon- fms as tomlomat f vale
A,B A 1H
DAS 4f 17
te fale: 4, ca,en, s5 4x ( a - wclaia
(23 AAA: AsCI ABzust afA AGo2
Ajusa bivany result 4 D 4c irsnucb'on ie 4t.
skee: C 2f mof y af t£ 2 greder t n 9 or 451ts 1, Py s l s 6to
4C 1p A
S:, 4djt rsult of ACI SbáshBa
Just as
at 440:,Aljusl-Refre Oizjom
(vide in AW bio» to liiion
fust r wntece eco ale
449 mutes AH 1 0 , asAs bmduef to 4c and deas A
Rogs a o e - ame Q8 AM
wndaAe
(31 C0 onvet Bya fo Dog
olnds a t-bylz siga alo to a siga o l y aicaiugt a i Git ( btz
Of4 oo * bils in AH.
Bi Manapulaton gMebind.
3 3 8ms w Aogica Insrasonp
estif
AND
fanosprmets: tD +C, dafa
ANDMe/ , daa
4 . e r , me reR2
Kag C60, 060 ard P5,sh z25 e ae A6-unlepa
OR
ais ma OR Ac, lafs
oR merr lata
0R,man 1 , e rej2
ggSame Sane as AND
..
XoR
Anams pmas xoR AC, dats
OR Men/, dat
KoRea, me/rg
las: Sane as AnD
undafha.
Ph, s5 P z5
a s : Clears Ch e oF, affechs
,
S NOT:
$hftoberahion:
T e aft dout may ba saaihe
a Constant 1 or
24 torèrtr of ce
SAL/ SR men/ra
t t lep- ipin a
b ao in vegiskr o wenox wntezz
Staifis o
SA sinilan f SHp
SR
Y skfo s - tos, 2- bs l
fae ngrmtehong_
i ave r a r e r lost
fent fom shif ihicbons tha
Fags
(RC /cR menfra , out: Rotate eft or 2iToug a
Same a8 abov2 4 i'n eo 85) eocopt Rtrafabon ts r o a n
oerations
Avi iedonk:
E P /REPE/RePz/REPNE REPAIZ:
áife Rebeat i l e nef qua) a a
Repeat, Rabeat
tile pu, epest zaro,
insucdon?
insncbons t Conveds any shi rimahe
1b prefio
inb e-ececuti laof, Leemupi'ble-Tye
, foDS STOS
eEP reaede wt movS
i s istruena
co Aatsa Count mor to acaobon of
Aeoramex co1 aad rebaafr R
o each exetud'oe, eEP
S 2-sg Seo hi
s uplare SI as e o
ooat: PoDs
Albt Ra are
aeoe
ProRahavser Lgbucbins
TA vsucbims cdae t sepeuno of inbubong to be fetla.
age torde of Ip cS
wUondbana) honeter
( CASC adore- name
onto te» staok, f teen
4 2 4L ualos p (offket of naot iehuobon )
fe
beR ae afezt.
a - n e t cA Tsucn
suchonL
cALL olisp-Ig LiE 3 3-bg
RET
Uw JMP: Junp
dotondbonay
June te designcta adras undor an ardi bon
4 30P asdc s - ( 1 8 to 127 l s , neas. i t i n . + o -32Kdctadf)
rions arats
Mnemonic operason
Ch1
Juni any Cho
JNC
22r0
nn
g n or - e
JS
JNS
oofive
Ph 1
paly e r a
3P/SPE
3N/JPo
Jo Oefloi
JNO
akoveJun inetAr Betro no enua
J+ JNE
SHE/JNB nor 2paSun if nsbe
abov C=
JB/ JNAEe
belna/ Jum fHa seo wor en
Ch1 o zh = 1
JBE/ JA f nd- alova
f r euad/ Sume
graruns if nottr les na-epa s o5)
zh o =
Ja/36E
epa/ Jnb if ne sh oR oA) 1
JGE/ N
les/ Jun fvttar panepuas Cs *oR on)
=
St/3NGE
ee tan or epm/ Junf ntgreate k ) z6 =
1
JEE/NGL
Aove or Bebo pr too unuigra valu2 an Gractor or les -tooaiguo valu
lasans omats
Soop d-8 ;.shn ladel
FooPE pop z
PoofE/Aoop Nz dia-8
Sex 8-it amp if cw0
iem Jntnucsinms:
[ oin be daalt in 5t ablerJ
StD Se
deas IA
STL Sef
&ofena mconiaabo
HeT stops cpu ußt a
handasare tvefernu eccu
OAIT
CoC 4-e ree ueon
ANOP Wo oterzbon
eXE COm Poaam
Too f erease gams:coM ECE
gtaeK
tode , at and te
COM-gram-consishs os on smest f£at aenfains
AoP rogam r ueful as a arallufliy ogam ar a4 a msit pogona(ona
a r's inetG in meoyA is availate uhila okorogamk ur).
mov by lny
Asomblir, xi an &oeoati
ojeat ok| Sceaas ile
Assenb aguge EKE or.Com
CSoune adeASM
Boeog a ogoam
Can n n o eceoe itF
Havig wenle e.lince a fmgam , Jon of tes 8ounea
ust umfe fes rane
T f EXE Fe is ia defautaive
in exfeneion.
Te he6 or whnit E c E wnder
if ts augsese to u n it
T s opam- mducos vno vii Ce oulat,
aooan senios, ENT 17h fer nter seuag, INT 1 faha o la,
wT 1CH fov ue itma zwT 21h f os Sehas
OAH pt fomeyinae
3 H
o H
e2 INT 10h:
o0s ouides inkernpf toh r idao AaHay confe
&reah
dle, wacirg indeas, dniot ee.
a o cah? Brmat, teok
are aued aiz ofer egidert
A Cotain fucbon mnber4 oer faramebn
SuncbonNo Descnon
iduo mode value
Set ideo Node: 4L Cowfeuns t a
Set+ cunso tae
2 ce C nbig San he
3 (Stahus)
H Gumn
Rea AigE en. PE
Se 9 y ge (achve Paga
6
Sreen hearture
44ypic ideo monitr kas 5 oae Co-24)
8o cofumns (o-79)
T oOs ecumn ro vide a gid of adyexale lotwbbns at any oA a sick 4ea
Cus an be sa.
8omes o onkor honbons/kcabin
Decina fenet
Strean dcaBon Ro Cofum n Colum
upher afCemar 00 OOH
Rigkt 79
aerner of Sorean 12 3 o OCH 2"/4H
Awer eCome 2
iplt 2 19 18H
trea Buje
in memor- Vide DWsfay o
y s k rdes shac
Teet mode 4e By A kByla f
-
ctaracz e ako fa atibufes
Bufer ako proises f seren " Poges "numbered ou t
Selting t wrso
rsethig cr at mo 68 & dan n 1S:
Clean te Screon
MOU 4x, 0600 HS o6 (SorelD, At =00 (RAl screa
B, 74H 'Dife baogoaumd ( , bua ferand 9
MoU C0, e doo H uphe lefP oo: dumn
main prec
date. SIikelae Ds vregiser
mO x,
mou ds, QX
en main
o a, val 1
Keg vala, al
mou a , al
r e t m to 2as
moU a , YCDoH
main
Vol2 8 14H
ma
8
uer ames : [Sca Adibone Haterials