MP assignmnt (1)
MP assignmnt (1)
Hachinu tydla :
Jhe Contert registon is moved to he memary locatiby
addresd by H-b pain. for eraple, Mov MC moves the content
egiste C to thu meny location whose addns s in H-L paia
of
MVI , data (Hore igmediate data to egistn)
4 flagr none . Adaeating:
immediate.
[]e data Stata: t
Machine ycle i d
Ihe 1st byte the Inutructin iy ith opeoda. Jhe Qnd
the instrution is Hhe data which u moved to
byte odo
Machine ele: 4
Jhe tontent the acundaton iu Jtoned an hn munay
locatien whose adtes u speaiteel by the nd and 3rd byte
fhe instruetier
Anith etie 4nou
ADDs (Add atgisten fo acurnulaton)
(AJ -(AJ +(*], ates: 4. fay? all. Addrening; Agilen.
Machine cycle :
Jhe Content o egiuhn s added to the contert the
accuulator and the Jun placedi in the aeugulatoh .
xeept Cs
Jhe Cortert of registen 7n ir incnemertd ty one. An flags
Me affected
INR M(2ncremert memagy Gontnt)
ndineet
Hachine yeley i 3
Jhu Content oftu memary locetion addrened by H-L pain
by one. AM
Al Plays evcet Co ane affect ed
DCR o.Jecnarment negistor contnt)
Zogial Goup
Jhe inafuctiord of hi's 9oup Porforr AND, DR EXCLUSIVE-OR
oPeorations ; Compe, otate on take complenent of data in
negisten on merrtohy
ANAT(AND Negistu widh aceumulaton)
(AJ e(AJ A). State ' 4. flags iall. Adduingingiten. Mg ine oylei1
dhe content of egiste a y ANDed with thu content of the
are
AC, and the teswt is placed in he Ac- Au satw tlag
affected Jhe flagcS is cleared,i-e. it is st to D. Ausi lany
ACis Set to 4
Machine ydes; 2
Jhe Content of the memony Cocatien addnemd y H-l pain d ANDed
AN
Loith the accumulat, Ju neut is placed in he attumulat.
affected Jhe csflaa is set to D and Ac to 11..
ae
ORA T (0R negiste noith acumulator
(AJ eCAJv(0 stute:4. flayi atl. Addheing:nstor Machine yelai1
of he ACIh
Ihe content of r u oRed withthe Content
placed n thu AC. Au stats
afcted. Caxy ond
texlt Ue Set to o.
ae cleared ie the CS and AC tlag
DRA M. (OR memey ith accumulton)
ra1eA]vdita Statui K-L paih
painy
iy oRed
ORed
Jhu content of hu memeny lo caton addnend hy H-l
with the (ontent of the Ac J eut iu plated in thu Ac. he
Set to o.
cs and AC lag
XRAT(EX CLUSIVE- DR Negisten with AC)
(A) e (A]v(] Siatu:4. flag1: all. Addbuin nagito. Machine uydesi 1.
is EXCLUSIVE-0Red with the conendt of
dhe tontent s registen stadus flagn ane
flag
Jhe neut is plaled un the Ac. AU
the AC.
A
D.
aftted The Cs ad Ac flags we set to
XRA M(EXCL USIVE -DR memoy nith Ac)
CAJ
Jhe Content of he menoy locátin addreued by h-L puin is ExcLUSIVE
ORed wit% the Content of tu accunulaton Thu Neult is placed in th
actunuleton Au satus tlag ane affeetd. The CS and AC Flap
Set to D
14
Stakui 4 Flagsi cs
CS Machin yde: i. Addrerin:impliat
he Content of the Ac is notated left by one bit. The sevent bit a
t Ac:
the Ac s moved to caothy bit as well a to the zeno bit of
s affectd
RRC (Rotale acun ulaton Might)
Unuonditioraly
Conditional dump addr( label)
i) Jz addy (label). (Junp if te fenlt is zero)
[Pc] adds abel),jump if Z-1. State :afo. Fla inone - Adbaetin inmediate
Machine ydle: a/3
Ihe Progran junp to he inatruti speahed bu the addral label)f the heult
y zeno Cie the Zoso shatw 2e 4). Hou thu laut afte the eceton e
Precedinq nstrutio iy under consderatm.
(i) JNz adds (label ). (Tumy if the Heult u not zer)
iromadiate
[PC] e addrasl labei),jump it Z=o. Staleii a/o. flagi. none ddresningi
Hachine ydu i a/3
Uh fnogram humps to the inatruuton speifed by te addhes lebel )ifhe ent
non-Zr0 ethe 2ono status Ze o
CALL addy(lasa) (nondi ti'onad CALU: call the subroutine indotified by
dhe addrs)
((SJ- 4] [rc, Save he adtsoy he nest instution , the
in the 3tack. Pragrons
(Gr-<[P],
(sP]eSP
[P] adte (ubel)
Statai|s. Fap inone, Addnesing: irnmediate |reg -indiet. Mahir cuplai 5
Corditonad CAL adds (label)