intel. __ wose-stPnOORAMMERS auDe AND INSTRUCTION SET
MCS®-51 INSTRUCTION SET
Tabl 10,2081 nern St Suna
mes Im Ze
EE
A RS
po es
| Le mel en
==
et m
Kr otra En
nr we
Inn ee =
en GE or SER be, VO nam
Pate) “
Be =
eee cae
lor be =
hy ==
den =
fe ee A
ER —
Eee ee
m ==
ee =
ee ai
PATA =
wies a
Be =.
Berg =
intel. _wcee-s1 poanaMMen's eue AND INSTRUCTION SET
Tat ns cent ra Coro
Mnemonio mortes a ame] | neon Desert arte
Pare» | ce
=
CS*.51 PROGRAMMERS GUIDE AND INSTRUCTION SET
Tale 12,405 iso et Summary (Cortes)
=
Feen
=
Ite]. woses1 procnaunens cue ano NSTRUCTION SET
‘abe 10.006 artnet Summary (Conse)
[ms o_o Sa
MOS"-51 PROGRAMNER'S GUIDE AND INSTRUCTION SET
é
‘Tate 11 traten codes in eradecinal Order
me open | [MEEK Men on
E
Aq
ÉÉÉEEEE
sagearewenarenselp
38888833838835:
Asstar
Es
$
BEEEBEE?A
PEPETTETEI TETE
NCSe-51 PROGRAMMER'S GUIDE AND INSTRUCTION SET
i
abs 1. matt Opcodn In Hezadecia! Onde Camus
CEE
A
ERES |
SESS RSSSSESEREESERE
ARE TORO can cosReReeRUCRRPERSERREREEERSEDTERDOURSASES
intel. _uese-s1 PROGRAMMERS eue AND INSTRUCTION SET
‘ate 1. nero Opcode in Hazadscma Order
SL SER tone om | EEE
8
5
2
Li
5
H
Et
aazagagseseecelg
5
2
SEESRERESE REGS
PEITELTTEEFTSTETEITE
[6555585858598
E
MCSY-51 PROGRAMME'S GUIDE AND INSTRUCTION SET
INSTRUCTION DEFINITIONS
[CALL sss ca moine od inte te The tn
‘Scum ine RO wht hei of el pul De
HER ea ono thc os se e St snd ren he Sc Per ne Tae
ul aras shan y ecc ome te fv pore Bl
‘Scene PC ops st sn pe ee Fe rain ced
‘hr sist at ma I ck fe progam mama he fi le
His long ACALL No as aes
ro à
Bin:
BE
BEE
BIER
intel.
MOS"-51 PROGRAMMER'S GUIDE AND INSTRUCTION SET
00 Aoi
Done:
{be The ur ad usara fags aro reece Y eb y out fem Oo
id cher ay pl TREE
SSS ae vee
soup eg det et pe ir in
Tos Acca bide OCH (OL) an ger 0 Bl AN INCL) Ta
Sr OH COND An we AC Rha tty
Ba + eae
intel. _wcov-s1 PROGRAMMERS QUIE AND INSTRUCTION SET
Bow + mo
Operator: ADD
Da + comm
200€ Acme
Dover | ADD estan at te ae ie, thc ag nd he Acoma
‘Sota ing he rt athe Aer Te ays uty fa Me.
‘Spe crate as deed zo. Whe a,
‘pena he ay Ta te nn row su
Vin rro of Sr st 7 ur Ts at
BEE ar OV Es Wom ad ur O nt ap sont
PART a here ponte or & ooh onto si grand
Fr pn dan e di indi orne
emi lO A) ad pie Oh AAI D wh be
lan IB nr Amar i A a a Cry nd
intel.
MOS2.51 PROGRAMMERS GUIDE AND INSTRUCTION SET
Bree
CA
toco
Operas
RE or
DE +O + ceed
Dow + (0 + mo
Pje em
intel.
NCS®.51 PROGRAMMERS GUIDE AND INSTRUCTION SET
Dencnpner:
ere
os
encoding:
Open
AMP ess rg satin nc te, wich forma a nie y
‘Serengeti he Pr cena he Ria) opt
PRE tee ra de naco ed met ee ree
“oe MPADR" a progam memory co OL. Te lan,
o +2
LES
Mco carpe
Desert:
apa for eva
NL pets e ani lope AND paras bern de alain mit an om,
A sane pete
AA ocr Sad
a hen m a ma pe oh a tried
He Am 0H (In pr als II) a he
a ARO
te it 100018 the Acute
‘sin ny RANT san hardware eter, To mat tte in pate obs
ih ld wos nd eo ra ae pa
intel. _cee-s1 PROGRAMMERS GUIDE ANO INSTRUCTION SET
A am
One:
yee:
5701 [0707
EA ar)
a non
oye
Gras:
encode:
ww AB)
Vio a sa
o ao 2 0
intel. ose: rroorauuers GUIDE ANO INSTRUCTION SET
me 3
CE
Cu Gus)
a ee
Fun Log AND ort vain
Deven: he Bsa vale ese i apa Othe ca hea ag brave
‘ip farts He A a penn pon ae mec ae
ao dh! ple 2 sea ul rn Dre
‘ere esata No si fap lc
Qu ee arias As o soe yaris
LO LAGC?= hand OV 0
ANE CACC? ¿AND CARRY WITH ACCUM. BIT?
Er
Sia rm
DE] (ee)
Gro ww
intel.
MGSe.51 PROGRAMMER'S GUIDE AND INSTRUCTION SET
CIME_<deatonte>,<orooyte> tel
‘Compe nd Sp a Eg
CINE compara the map of eit ro per, nd ne Y a a not
mn De nadernet O ds ft Ei
“he crying one ge vat of Eee Les D he api
‘tage vn cates oer cay ae Has panda
The Gt ns eps aw ur sein mde oats Acme my be
‘Baars tyes arme ee nme nn ay nr RAM in
(retin et cube Compared wih i ee la
‘he Acca cee (tee ze) No gr af
“he Acct svi SCH 011098. Tots
Bo
ha i ened set to) Note pre ed CLR cn cpa cn the
(Sop ager ay deny air be
et has pito writes wh SOUND), Tr tación
intel. __ wese.sıPROaRAMERS GUIDE AND INSTRUCTION SET
Con Acoma
ch fie Acceso opt (on complemento pr
somal» or chutes sea cena No apo see
The Amor mis SCH (ION, Th sac,
Dew
‘Coleen it
Tet aia pl cpl A mac a cn oe change eo a
Sea el CIR as ra ety oy as
a Whe ag so mod neto, a a ri a
‘alters ome mp ech ot he ep
or eS LO
Intel. _west.s1 PROGRAMMERS GUIDE AND INSTRUCTION SET
er 2
CIO er)
pera cr
Bm
Desi Asa or Adon
DAA in eg pa Acc ring ee an nd
ah ach pts CO mad, reia we eb apt Any ADD or ADD
Girone cy hfe tow mio tos tease
reer ace m eng tat rs
citan
en
fe aya on re br Bs ow ed ie (0 1)
er e e unn yo pong rope BCD apne ade!
SR AG wud e ay Ong re mi cant of iene
‘roa har the cary Tae cary ag thes cian the somo de sil o BED
‘ha ptr union oy mu pron dal an OV po ees.
A ec das te oe tn le En cin peros te
dices Y das O LUN ie ascuas, pda
Nae DA A ers py ene hada number Accent BCD tot
Ae mor do DA A ply ea sli.
intel.
MCSe.51 PROGRAMMER'S QUIDE AND INSTRUCTION SET
example:
‘To Aa le (LON) rca pcs BCD i be
ee Rep Seay o vs OM O10 re te pss
BED tg ld dc under Tara Dg a The rim
wr pr andar comple iy ain, ig eve OBEN
FAO De Arama Toe ry and uy e up wb eed
Bi es ee ren
PRE CCE
E CRETE
CD val cs rento or eme y md Oo SL he coa
Pre en be Memento nas 301 = 2
RSS ay tao SM
ERSTE
Wag > ay t= 0
Rt
MGS*.51 PROGRAMMER'S GUIDE AND INSTRUCTION SET
Toe rt ne ere y A ci ie EN und OFF
ER ec Pur pene ga ne se ns, e.
Note When i cn o ml a ct pr, e alo wed toi
rt na nn ey as cee pl pa
Rep comas M 314118) lel RAM cn TH and Tin OH
opina The ersten aun
NCS-51 PROGRAMMER'S GUIDE AND INSTRUCTION SET
ee
(le) =
a - 1
ee)
Benz
pin: rpm cae 0, ea rt he Amar nd >
‘par ul ve mts ee fg vit oT uy fag ced any
Tee Acoma oti OF 1111018) a cna 1 (14 o E)
En nce 251 = (13 X18) 19. Cary and OV sl bth be ered
By wm
intel.
[McS*-51 PROGRAMMER'S QUIDE AND INSTRUCTION SET
ume <br> ‚retacar>
Desert:
DING eres con aia and ts o tr natty the
amon Y sv mir gr e
[fev no fig srta A ri dois mon e poe ng he ed
ERS ER e te
Te cn Serene may e ge or ct ss te
on, Whe sen cc cp, dale ed ei
ort anal bra enh pl al, me app
Ta tutos prisa inl ay luca ropa lp à iv ue ld
Sea tn iy Gos PS cee) wins age mre
io PL dt tin, ating fn ss pb
7 up Po
a Ges
Payara <0
Sy
MCS®.s1 PROGRAMMER'S GUIDE AND INSTRUCTION SET
INC rem need aie by A il ae OFF ova 1 0H
Nor Tver ns weder aber Ener ogc crs
ee When tin do may yt pr ea lh nl
Dor dim wt end om tect ch, 2 pe Pt
ile ete Ono DL md ml RAM lens TN nd Sling Gp
Shoot aa
Dawes
Ing]. ucse.s1PROORAMMERS GUIDE AND INSTRUCTION SET
Beant
rey ie + à
Dee + à
nm he 1 us pe 1. 16% remet al 1) ptet e
‘efi the rare Va a ner (OP es OFF OH e
re ve DD No fap are se
Ta o ny 16 reper nhc be ree
age DPA so DPL etn 1H ad FER, raphe The rei seque,
inc DR
el change DP and DPL to 3 an 05
De or +1
intel.
Mose-S1 PROGRAMMER'S GUIDE AND INSTRUCTION SET
et
Desert:
ae net on oh ar ne; bern rc wh es
[Gorin Tht eh CR sd y sy 0 dr ice
e de re ae cence sere een nl mt
“Teta poet lg por OLOT Acc 36 UL) The
Poe +s
Pan
N eat
end Mi ne, hac a aia, ie Feed wäh th at
‘Eats Ta sts bed iy our Fri aer spa
ty addy dee ene apc he nn fe Per
an te PEt ew ch enon Me nm aad
wa hi riod re in he md a
‘Te Accum SH C0118) Tae ice ua
She ARLES
wi case progam cat conta rc sei y ibe LABEL,
intel.
CS*.51 PROGRAMMER'S GUIDE AND INSTRUCTION SET
Bmw +3
Fan
anno
reo + ms
ump Gary
be cu ap branch 1 are dk, or pel wi he et
‘son The bench daten compe! by sag sl stc à
red an bs a PE ar erg te Fee No age aes
car ai ced: The rin sce,
AS a ua om cen cme ei tie yh
Cote) (ama)
fom eo +2
mas
‘Sex
Den
intel.
'McS*.51 PROGRAMMER'S GUIDE ANO INSTRUCTION SET
raton:
e
SE Ds te amie
Cheer of ARE ic ip sr EL
X the Acc eq OU when sing su nw mp Mt
{tS Rees Or net omy tc aa
Bew+orm
Intel. wose-stPROaRAMNERS GUIDE ANO NSTRUCTION SET
Ernie er]
ESP ole greets by
ee en oa
ma,
Ge Ba m
Berro
anne
EN Go po +
me
ME Lama
dar cry ad apor eo et e seo Kei y
Gl) me
Bar 0000 +
intel.
McS*-51 PROGRAMMER'S GUIDE AND INSTRUCTION SET
Desert
Lay ls Aca la. ras ni dr bres pc wi
eee eee ant See leed e oy de nad
nt De cd iris eto de Far mag e BC tse The
Rear ect mat gar
eee eh Pa
Bee
Be thee
Pa
Moon
Tas sb celta zer bt ari br od wi
Teer ict Tor Sa Glan csp yang hep rc
conn! in he second ini be he Far Creme e PC re The
RES ste Neg ae nad
ee Accum egy ei OH. Th nro sp
a tam eMe an ae opi tia ae
2
Bones:
wn.
Man 00 00 + ra
intel.
Nost.51 PROGRANMER' GUIDE AND INSTRUCTION SET
LEAL score
Funcion
Desorption:
gue comer 1 guata de dre ofthe met tran ad ben pudes te 1
‘eee ct ein comeing he Suck Puerto Tae hence
ile eRe in ed rp, rd e
D cle eb stc Ne poc rue.
A
ety he Sack Pier eu OT. Tal SUR TN aged propa me
ER AR cine,
cin OH, Sa Pate wl conan OH ra RAM eos A nd OH
‘sts at st OL an oe FO cm TE
ro + à
Er
non
Be
nee
AE
ren
LP guta incon en o it yeti te rt und
tn id ad tr nen es Tae
Tel MPADRC aig oh ici a pop men Jato OL Te
cai O2 wide pop eater ih 13H.
PO ais
intel. mesestPROORANMERSOUIDE AND INSTRUCTION SET
MOV <dustone>,<oroore>
cio: Tx yt ate nat y cn prin cop to oc db he
rt quran Tasos bys neo ass Noob gr ernsten
“is i ae met Bee peso. Fe clins of ste ed don
ada mote we alowed
cae patie nina can).
Ann
ae bee 0 gir no Azar nd per 1 eter
ET CID) bmn RAM ocn a pal et
mov ARN
Bree.
olen
encoding:
eee
Intel. mess: PROGRAMMERS GUIDE AND INSTRUCTION SET
mov nent
ca
Dr
aro
le) Coste]
CES
MOS*.51 PROGRAMMER'S GUIDE AND INSTRUCTION SET
CEE
om
um
Pe,
[ELTTIKETEE]
o (rm
o ao
MOV arc cn
encode: [OTT Toren
intel. _cse-s1 Procrauuens GUIDE AND INSTRUCTION SET
De
Orden à
Wang (En
Opern: mon
CE
wor era
mn 2
CE
sos CrovoTorii) (mm)
Operation: | MON
D
EE
ome
Operon: or
CDI a
MOV <test> cre
Denen: on a caro y ont perd copia nt he on iia
Ad orton ma cry a cs y De ly
example: The cry ag riya The dt rm pt Fe 3 IO. The date
an 33 OUD
Mor Gag
ile cary are and change Pot COLI
MS PROGRAMMER'S GUIDE AND INSTRUCTION SET
CS) uns
LE
Descnpon:
IBS Bence sud do e tc, Ta ced (PI te ade
‘ye PAR de bs PL) alee wore No ase a
Hs) Cas) [en]
Ímbgl. uses PnOORAUMERS GUIDE AND INSTRUCTIONSET
Move aaa <omerog>
Fun Mone Code be
Deren: The MOV ito ad he Acer With code br, cmt um program
en ie nen ped pede Actos
Fee ote Flee ae can, he POs cron ara of ling
RSS Sake get wie ern aber be gut ae a
‘Set cco ston prod à eames Bon de wre ht ay
‘Bop rough pero D Nef Sd
‘Ae te 43 ne Amr: The fein m wee
ds wo fo is a he DB Gee) Sree
rere me A
Move nantre
‘Staion above tee Ira ase spared the MOVE the re
apando de Aen es
Move Aea+orm
Des à
crus 2
mur (FETT SOT]
menor wove
BE + orm
Des.
Cros:
emma [reso] oe
pate
Pao
De
intel.
32.51 PROGRAMMERS GUIDE AND INSTRUCTION SET
MOVE _<destbyte>.<erobyte>
et ade to OW Ti or pm como ng
AO
ando spines nh an a FO A ae fr oe UO rs
‘tong re ety al RAM ery Fo somes pe ap ty oat Pot
[cate mad o op pera sara Wn The pam woud cms 28
Etc pre be HOW,
‘hip tr ct here ie es DER VO mins one
ES cpa lesa nly the cee BPEL Pl
‘Soe iat when ening very be tems ep AK se o sal
Een ae ded Do he sp pa
Je pone in ame sano 9 mite rm MOVX pr A ge RAM ary wi
Sigh re acne ve FE can end ve Far wi code o
gnc seta tem y MOVX tert ay RD KI
Ano 6 RAM wn mid lire nn ERA
AA A ES
intel. __wose.stnoanaumens GUIDE ANO INSTRUCTION SET
wor Aen
Eyes.
ous 2
encoans: rralesın)
Operation: MOWX
Sa
wove Aspen
ones:
yee
Enoss [11910608]
partion: | MOUX
We cory
moon [iivifooos]
intel.
MOS*-51 PROGRAMMERS GUIDE AND INSTRUCTION SET
Desergton:
ae
MUL AD mu e unir ht age ia Arme 8 ri B The
RG te er ei de Ars ne pe
Eine mob gar DS CPP ran Og ar rl,
Fan ngs aay red
ra Acs a a Rp Ba a 6 A.
alge ero D gts na CS) ode Am
Tord Sed Te ovalo Sgt arm den
Grom x)
Ore
Ne Opt
un este a flown retin, Orhan the PC, 20 per or a ae
wos
fic SETB/CER tic ond pnts cone few rao ce mart
‘era Th may be Sine (ming no atop ae cab) nthe tri
nor
Ro + 1
intel.
MOS".51 PROGRAMMERS GUIDE AND INSTRUCTION SET
(ORL_<testone> <arebyt>
Deserpton
Log ie wn
(ORL parm be Bie OR ee pen he ic at, ving the
‘lathe auton te Nope
‘Th rad o ads mde in. Win min A
ae Acura CC UD) and RO ade SH (DILO) te he
il ee ecm ling ls CO (HOT.
Wie nds dra nd tits cn in ei
DD RD en er ass ee pala bb Sr à
a y ce ac nto
intel.
NOSt.51 PROGRAMMER'S GUIDE AND INSTRUCTION SET
om art
Or
Or
encoding:
encoding
==
ao so
Dd v
Dev ou
TT
entire vO
Crestoost] [Mae] Comme]
om
(a) <i) Va
intel.
MCS*.51 PROGRAMME'S GUIDE AND INSTRUCTION SET
om Se
Desorption:
Lip fr uti
Sethe ay the Rea i à à he cay een ate
Et" at eng he op ay apie nate he
‘Sg len ered td oe etre
SSeS eee
Salar fa and cy LIO = 1 ACT = Her OV = 0
(ORL COY ¡OR CARRY WITH THE INVERSE OF OY.
payee Ga
Groves
¿ova
intel.
HGSe.51 PROGRAMMER'S GUIDE AND INSTRUCTION SET
Deverption
amp
FRS M A A
‘Sond elon No gs ed’
‘Brow Su coin eas Bn TNC and UR rue. The natn sue,
eh Suck Por e 102 Nee ht ini pec ee Sc Por ns
Teta ble Sang ned eve op D
Gare (sm)
Seen)
“The Suk Pate ren y oe Tot ol int vt then io
OTE RA rr SS i ana
ening mp th Sk Pte ei. Th Du ir
GA and OH rape Fe
mens
ei
inte.
[MCS®-51 PROGRANMER'S QUIDE AND INSTRUCTION SET
[RET poa te Ba wn be a PC mon be sc, decent
DER puc ty te, opm cea conan he aang sr, ey e
‘Shrine eed og an ACA er ORI Mo apa alsa
‘edn i ido cine a ner RAM o Aa
anh Sk ire eae. rr can wi nin a
eign cm
Bea Se)
wen
RET pa hp sd low nee FC re te ac ie
Eo stg cd temp eae py el a ect
ose Tara PSs o dmca y to Nose gu we ses Se
Fis ore er pete gs ci ii à
{de RET ee hase tu Ss anes wl cd ve pe
‘Serpe pot
Tics ily 2 Team IEA Tre a Des GA un GN oa
‘hee D tO ropes. The mara,
intel.
'MoS®.s1 PROGRAMMERS GUIDE AND INSTRUCTION SET
comet:
Th hn Astra rotted oe othe BT ed in ei
oso No tap ale
The Acadie eva CS (O01, Te ita
ave Accu lg he vale EH (ION) whe ay sate
Get Demian) ome
Poyee)
Tone isin be Au and cr a are per rt on toh et. Bi
‘Tv thar he og at ea op moar te pa No
(ote ge eas
eve te Acto ling vale SH COLL) wi de cry
ies Deus 20-6
Eos]
intel.
MCS®.51 PROGRAMMERS GUIDE AND INSTRUCTION SET
Deseret:
Gang:
Rae Acc it
“Th nt er D eT
Fae Ns arn
"Te Accor leas OS (100108. T tion
ee e Acc Being he a OCIO) wth y ui
Ga]
mai + D ano-s
Do
Tea la e Ascot ad th cary ag ae ger rtd nie
[BE ove nate cryin de oan a fe sy ag more Me de Be?
‘st, Re oer aga aa
Te Acca bt ab OCS (COLD), e cry er Ta arin,
eve Accom lg e ala 2 LOCH wh ea
oar}
intel. Mess-S1PROORAMMERS GUIDE AND INSTRUCTION SET
Dereon: SET a SET a pt u An ran ay
Fame Tocar pice ta Pas bc rt with ae OIC) The
ve cy fia 1 sd ego ds nto Pet 3H CILA
intel.
NCS-51 PROGRAMMERS GUIDE AND INSTRUCTION SET
sm m
Desert
San
Eros oral brace nn uber ne. Th buch drinn à
RE a he eg Sete re Re
a Oe cn 2 oo
Th RELADAT rte pg my an e
espace eof the qui wil be the weve fet (OLMO = AU. Pat
‘Se nye SM ih rent ER non con late lp)
Poe 72
tn
intel.
\MoS®.51 PROGRAMMERS GUIDE AND INSTRUCTION SET
sue Ames
Deseret:
SURE nta dis whe nd the cary ap tg or be Ace
‘Sete esi Acme SUBD te car row) ig Za ro y ad
‘Suc Ban a mc reper De E pci ln
‘Scary bashed om te Amir alo th te sure Spend) AC wat if
‘rd ne nde peros Yr Dre dt
pine neice rhe pe
‘ese oes rin mo e ret ri
“oe Acoma CH (10100 ge SE LIC) ah cr
ite a O) de ma, ca Bn A at
GSE ten te mnt rb opis Withee a Rec ac kn
Sie legen ai sho cb irene
NEO A
intel.
[McS*-53 PROGRAMMES GUIDE AND INSTRUCTION SET
sus nam
ye:
ya
Be) ~~ ee
AS
‘Seip na win de Assume
[SWAP A Estare he low ed Hi sis (eur el of he acter
eset tordo ma e a Ne
te Accel ha ea OSH CULO) Ts opc
ar e Asco Bl vts SCH (1111008)
Bos oe
intel. __wese.st nocnamuens GUIDE AND INSTRUCTION ET
Xo A ce»
Fame Exchange Amar nih be varie
Denen: CH kl he Amar wt snes e nine ar he eine
rs ci uc un te ne ale Te owe ms.
(porter et oper ar,
PP RAR ited ar ae a OUI) ease
{PIE RAM ene 2 eine ao PE GB ad 101019
intel.
MOS?-51 PROGRAMMER'S GUIDE AND INSTRUCTION SET
som nent
Desert:
Bree.
oem
encoding
parate
age Die
XCD enge evade bt fhe em.) pure
Pepper a OA tn tony O he
‘ped reper Ts ihe un D af a le Nos
RAM locaton 208 hen he ae 5H (LTIOLOB) Te ein,
ite RAN nn Rig eva TE LLO and 3H CONC) te
xo
Sn
Accus» cane?
Deseo:
Lapa Ec OR for ye aie
DL items i ial Ed po en dal esi
gro pd ating comin he he ini he
on daa willbe rend rom he up dat th, ol the apt pas)
Ete Aco bt OC NE at er is DAN) hee
Wien he dise iy str ee sie a seme! nti
‘sf ony AM incon ora reine. Ta oer Sos lem
Se mn ye m de ons ed e an a
‘component #4 240 pat or
intel. _wes*-s1 PROGRAMMERS GUIDE AND STRUCTION SET