DBMS Lec 6 Notes
DBMS Lec 6 Notes
Jnct clossiahe
nsracheo
JnshzeCHo Addre (Sing
cuco
ngrhof
pe o in
urem
CT
htee address
a insrru ctioo.
Srrudio)'
TOO
3 One
modes
Zerto
Regisert memcny ke Cc
Cedd rt
o pCcd.
the
the operand or etlecdive addreds
' delen mined
opcode mode de,.oldr
X = (Ah B)Kc+D)
Acumcedahrt
one- Qddr Ze a
-addro ss jns 2 QdezesS in4>stma
POSH TOS A1
PsH Tos Pj
ADD TOs []AJ
PoPxi xl<Tos]
PUSH CTos4t
PUSH D) TO9-
ATDTDTos ([ct1
pusH xL; TOS -XT
MUL bo stTos-1
ros
PoP X; xf-TOS
To TOP o
statu
K A +)+ (c +D)
add instu. [ Lerto - add
ddd_stmu To0-add tastrrle. 1ooe-
ADDR, A MOV R1, A: DA DA POSH A
ADD b posH B;
MaV CR ADD RI,
MOV CyRA stome . ADD;
PoP cC;
I7 10 12
Joshruc io) pes Cperecetion
hot de }he acors rrsponsible i
classhey1| he inc ro(he 2
Her Co de o R 7
- 78
78
tfMOV
Zero ad d Simle od4, Tos add - No o
VarCiaS TPE
Oddress ields.
epec ding O p e r a tias 'nsuCtions
Qne Classed inw
Laa-}Tanse
MOVE LopD TORE, POsh, PoP) xe
CH
CLEAR SET
Hrehmehiinatn
AD, ADC SOB, sUB ADI Son,
1uL, DIV, NEG, 1NR INC DECSHTA
ADC, oS,
Add coid Canu
TAC Ca +[aC]+ B
SU2 Sabractio wdb BorcTo
7 NE G chang he Sio)oh
Opetrao d
INC (ncremeDt
INR Jocnemen .
SHIFT A chid aidhmeicallq.
shi he operoodle
ort ght coHh Siq
etensi.
ogpccel NOT ORAN D) y-OR
SHIFT ROT, TEST
ROTRotafioo.
Phaa
)Centro) Transter RET, INT
RET, NT,
JUMP, TOMPIF
, ToMP sOB,
RET boP.
enten he speertied
Lranth )
TUMP
a ddress PC
Cond, or Cond
TOMP rconC hing On
Se JOMPSUB
-
ReferrS to CAlI ('nstt
JOMPsOL CALL
Sarehe CureTent
Centte) gtadhes
speCiied oddMels.
hen eotertHhe
R E T -Reree
Rec-torte the prgm
ACotro
clats ro stach
lo PC
otertr ept
9T 1terraupt rehure
e tarc
RET
herto .
00
HPLT L
/0 .sTARTI/0,)
'N, OUT
s T E ST
inC m a n p l a h o n
orn
a d
osri
al
MoV 3 - ble )
m ove
Simlarly
-
oDS Aoa d
CMP s - Conm?a
SToS - Store
SCAS Ca0
Trenns leate
XLAT Poch, UN PACK
TtuceSSor
pocess/ng
(HLT)HA LT to stop
STT - Sef intereriupt CEnable
otenncep}
- WAIT To r eez he in sBtietia
11 Spe.cited cand
yele
NOOP No Operaion.
To res enve the bug
Ock
CM Complemend he Caruy pla
CLC To Clear he
STC
TO Se
S
Vorcieces
ectve Cd re
dais e
e
oddreS
o n Lo catno he
he oo C o m e o place
opeands
he cpo's (otea rregisten
he o cdla),
»oahed in Ahe
oper and i
e lo catro
mal mem ot he
addne ss be /ve
C'nsmu pecaod ield
CtretolloDed to
Mony me-lho de
addness dhfth
Speci he
Op an d
a ddrress mo
me e
moode
Jmm siak a ddresgnq
,reech ( absolede
2
23. T9 d! me cd
Re9is ter
in dtr e td
ResHer
7 o dex
6nse: Relai vve
Base co}h index
o1}sed Cddress-
b aSe
mode
too adSess ns)tu(Hio) Mo
opde odeA dd
000
605 (o%operrOns
A
Kele rr
CpO
corlh ke cPUs
Aerre coe tce alealing
nterona regis-et
et i
The operand 's aeatio is pres
egisterc
Ldhere he
EA
EA Exadly e locte/
dale 'sode
d
EA R
ReqkHeri decd-
ejstens
Mermo
Coryaiy er R
LspOre men
2lobe
ingtueh)
P
Tesysfes
Mode poinipr
aetand A- o n m o
mn ddiat AM timie d opeON
magnitu de,
tmie d a2otnes
AM A A (2 Simple
Lare addresspodce
omp
COmp. has
22
2
G 50
0 nos
2
Qddrecs e s , 1 )here a rR o
a ddress houd mL
en
instructan,
be ~otmulahe.
addrcs ns ru Can
So?
2 addn ess ing On aadd.
in
GPCo de Addness dess optode A ddres
Combna
ti ons la bis
-s0bils
2° 256,
has ort Ns
Conp
Cenptte ha
e reld the
fhsreeche)sem(ed
opced dre13,amecde
Aield Spet ed addss
treicle e ld CpeC d
addnec<
each
indru. eremal o e ole no In
256
256 k 6
So 2 - ( 3 1)
22 27 s epCode
Oddessinq medes .
Memo rn
DA
200
CpU
PC 2o
RIon 311
xR 10O
AC
5o
32
7o2
300
tAechu AC
mode qerei-1m Ndes
&'Oo
inect AC MADR So0
20 1
)Jmmiiate C-MDR] (159)
1dinect
Nare siny marNe. AC M A DP
Index addresdr ACMbR R
Rester ddesn
mede AC R
eqisen indined ctR
7 O
Deoremet RRe,
Atto decrtme of (i) -
EA R
Ve
Ye ALT c ges
rtcst¬T
aa C
place
Addre s s de Moemo0C
0605 MV 1 0S
C mme 9
Perc a o d s
oemoiC
g Move CnJen
e i s t e n
Pirc D-
So19
Col X A
oad he egister
LT H, 6000;
MOV C, M os M
HLT
Leec]
M C8
c Cootend 4h memerts
Plore
atio)FC50 in rregrsdere
thd FC5)(O
LXT H, FCS C;
MOV M
INR
MOV CM
s-fen
INX iO cr en
nujk-Sooot 1
MR tocnemet R ey/sesr
rregister valu c
Single
Plaoe O (rthe
aee ComlCo
ine remeent o7orte
esult t 3coO oecai'oo
MV A Oó j
INR AA
STA 3000
HLT
250) 9H pcet
2502-S6H
YF
olp 25o2 -9F H
LI H, 2501
MOV A M
INR L NX t
ADD M
STA
HLT
inl 49
2 0 2 - 32H
7H
2,03-7H
LXT H25o1
MoV AM
INX HS
SUP M his
eplare
/ Wee Cao
STA 2503; NX or R
HLT
iod 1's Complemen0
a C0AP
a & bB Oolafe.
2S2 le Catio
Sto Fte
Findhi 's Complement
CMA aore
4 )
aectem udcor
on,
a ccCemu lot
1's CompemenAJ.
A
D A250i
CMA
2502
STA
HLT
Dt
Coamp le
me
To ind e 's,
cOAP
6H
LDH
CMA
ol
INR A ;aDI
ST A 2502
A DD mne dicedel ol
ADI 01
dala o occunglo to r.