MPMC - Unit2
MPMC - Unit2
Page
UNIT 2
Mncmonics,
8085 I1strzucrions: Dperation Code, operzand arld
las5iticahion, addressing
Inshruchio1 6ch at 9085, Tnshzuchion
Addressing Modes
It is a ttahnique specily cperands in an inshauchicns
LX-Copcsde)
DpeuandHeg paid, 16 bit da
Meningload he 1(tgislou pai inmtdiall
E4planahio he inshaichiun loads 16 bit 4aka n 2g DauL
4signaked in ztgisken tn
memc ny
t:4 L1 K, 3225 L ,
L1B, 1234 H.
byic insleuclion, 31/C - (GF, 2) inimcdiaic
1D shales add: mocte
LDALopcode)
cpedand- 1b bit adducss
Mtaning-l0ad hc Atumulato
Explanap-Conttnts ata mEmuZy l0cakion specititd by 16 bit
addnessin Ahe opezAnd ,ate_Capied tD Actumulahtz.
LDA 2034 [AJT203i
3 ryle inshzuthion 14 n/ sF3MR, Dizect Add mode.
19-shaks
LDA
DpeLAnd B/D R4. Paiu
MCaningloaz acLuLIuladeu indizec
Explanakion-Conkenk tt
designaked np ptink tt A 1mtay
Dcahion This ins huuchion copies Con
inho aLLu Mulakorn
hEnls e mom by vcarion
t LDA 8 LDAX D
1 byle inshzuchion, 2 MJL LoF, yr) Rgishea. Indicezh
,
Adde mode
AI+Lre-s
Page
LHLD-9pLuelc)
0perzand16 bitaddrtess.
Maning load H and L tegiskezs dineak:
Explanarin-The inshruahicn_copies dhe content oh memDrzy DcaHon
poinhed out by adduess ino Regiseu L and tnpizs ahe conkent ot
next memorcy iDcakion inlo ncgislou H
OSTA-
opewand 16 bit addu2ss
McALing 16 bit ad4uCs.
Explanaion- This is a 3 byie inshnckion,seaund byle spczijits he
1s oudezaddzess and Siud tylc specihies uightd vder address.
t4 STA 32h TA 4500 H
5TAX-
Dpeuand-16 bit addruess
Meaning- Stuzt ALLumulakoz indintck
Explomabion- Lonhens t aucunmllahorz copied int dhe memomy tocohio
speitied by dhe conkenks ot dhe upetand
STAY D
bye inskrzuchion 2 M/L DF, M) 1T-states,
Regisen Andirttch Add mode.
SHLD
oprzand- 1b bit addiuzss
Mcaning- shoes H and L Regiskcus diech
ConkEnic bj TEgiskL shozcd in dhe mcmt ny
Eplanatioq-
ttcakitn spezit1ed by 16 bit odgress in #he inszuchion and
Contenket H nCgishkt Shorzcd in nex menvey location by
intnCmen hng he Adduess beuz
SHLD 41D0 H
XLH- H- b-E]
0pézAnd -NOnc
MGONing Cuthngc H And L wil D and e
Explanaripg- 2ontenls t egigHu H
echange.d uol conke.nt st
EL.gisherz D n dha st L wib E
2 7Tskats, Tntmtdihe
byhc ingruchicn, 2 M/L - OF, vMA, Add
Modt
DAD
Adld tegisice. pai to H-L regichkr pair
DAD ugishcx padnt 1 bik Conhat 5petihied vegisten paiu
Addcd do ile Conhent ALumalae and suik sh1c in
H1 P
DAD B D-1 B-1> [H-.
DCR
DCR Reg-Conhenis bt desigoaitd negisiu deemunled by 1.
esul Sht th in sen16 ttgisla
R-1 [R.
byh, I/ DF, Kegisicu Add medt, 1 sinlcs
DCR - Conlen
ot mtnory 1ot whese
2ookcnk y addsess t sp eci by
H-Lp denemeolcd by I, tzesulk
mmOVY. shored in
3 MIC 0F, R.
1, 1byl, 1D
AAd modt T-stnls, Kegicire Intaceh
Date
Puge
LOGiCALLaaoup
ANA: l0gical ArD wih Awumulato
XR ExlisiveOR wi ALLLmLlaltz.
RA R LonkenEut Aht spezijit4 rtegIskiz is 6Xclusivcly ORe4
oi cenEAk fhtuaullatsa rteStlk placed in aLLmLtlako
L by 1M! OF, MB Rgiskau Tndiiuttt Add n1ede, 7 T-skaks.
A Regl Mem.
A Rdg/Mem
A = hegl Mem
UU
F1a D
1RRC - Rotalc Accumuilaite Righ
Each Binoy bit tt aczumulaite is cohated eight by one bit pasihon
Brat D is placed n he pasitian at Dy a uell as he tany Fla
D
RAL AJ =43HHcy=1
ODlolblo
UUUUO
010 000
Dala
Branch Instrtuctions
Ihe
Erzanch Tnstruclions allouo sP to chrnge he steuuencG ot a
Prrogrcam eilher Londikionally est unctondikionally ot undst centhun
tesk condikion.
Ih miciokuoc.esso i6 a seqIGnkial machint,ik eyteuuhts he machine
COde rom one memorty locahion fo dhe next.
Brzanch Inshruchons inshruuckh dhe P AdD go to a cbttencot memordy
Locakion cind dhe sP continuues o exetuue machint todt jrtom dhe
new location.
The adelzess ot dhe ntd memony locntion
eilhez spezilied plicily
is
In the inshmucHan oz 5Lupplisd by P oz by enra handudnte.
Branch Inshruchions calegorzisee in 9 pazls -
O Jump Tnskucions
Cil nd Rehuzn nshzucion
Restaahhshucions.
Each b me inshrtuc. Hoas zuzhtn classihied in Uncondiiogal
and Uncondikional insltutha.ns
Condikional CALL
CC i cy=L, Subroutine is called, else
neshinshutko 1s Lalle
CNC iB CY=0,5ubrsuihine tallsd else
iey insrzuiGHa called
CZ i Z =1, 3Lthrzcuin6 called, else
next insIuciit alla.
CNZit Z:C, Subrzeukine. cated. eise 1ex iskrtuciia
CPE LaL.
iP-1SubLoukine zalled. clse nExt instLn caled
CP 1 P:0. subvoukint
callcd. else ntx insirtusige called
CP
CP it 6 0 Subrcutit Lalled. zlse 1ex
CM 5 sircuciis: calza.
1, Subroulinc cailed. iss nek nsiaclion
cl
3 byle. Dizzct Add: Mode, it CEndikion
clse 2M/C
satisties.5 MIC -FR.2
RST 0 to 7
Addees Cnyt)
M 0O? H
OI H
C 2 H
t28 H
Jr7 20A?
SIMSe Inlernuph Mask
IN 02
GUT 20
3015
2PUSH PSN Pgzon Skalus uEa)
20 304
a 1 bik addsress negiskot it 4
Cmb o LAL Flag Regisk 1D 305D
3L53
se3041
ALIsl-
LElag Reg>[1:e)-2J
Ibyh, 3JL-DF. 2Mw
Rgisken Add: mide
POP
zanstezContens ut shatk to Rcgis
POPrpb:g POP D
DE tE 156
[D] Ms8
neuo SPJ 3050 e LCs+2