,. .. . . .. ...... ,:.:...
-.--7:7 T_... r;-7:7
T_. . .-, ----- . . . . . . . . . . . . ,.. .:_ . . . . ..-, ,. , . . . . . . .- ;. . . .... . .. ..
;,,,,.:,.; ,,... .
.
:.,,,.;.’ ‘...!. .,”,
,., {., :,
,, -, ..7,-.. ,,, .,”., ,
.,.,: ,.
TABLE 3- ACCUMULATOR AND MEMORY INSTRUCTIONS
,.. ,
,{, ,.
,, ADO RESSINGMOOE5” BOOLEAN/lRITHMETIC OPERATION CONO. COOEREG
,,”- IMMEO “OIRECT INOEX EXTNO’ IMPLIEO (All register labels 543210
OPERATIONS MNEMONIC OP== .OP. =Op-= Op, .=OP-= refer tO contentsl HINzvc
Add AODA 8B 2 2 9B32 AB 5 2 BB -4 3 A+ M-A
AODB, !●ttJI
C8 2‘2 OB32 EB52 FB’ 4 3 B+ M--B
Add Acmltrs t●t1t1
ABA IB21
Addw!lh Carry AOCA A+ B-A t●J1f f
8922 9932 A952 B943 A+ M+ C-A .
AOCB’ t●tIt1
C9 2 2 0932 E9 .5 zF943 B+ M+ C--B
A“d ANDA t●t$tj
84 2 2 .9J 3. 2A4 52B443 A.M:A ● ● t t R.
ANDB C4 220432 E4 52F443
Bit Test B. M.. B●. t t R.
BITA ,B5 22 9532 A552 B5q3 AM ● ● ttR.
81TB C5,2 2 0532 E5 52F543
Clear CLR EM
6F 7 2 7F, 6 3 ●. t t R’ ‘&<
004M
CLR,A ● ● R.+?~., .~,
4F21 00-. A
CLRB ~,“ ● ● \& .RS)’* *
Compare 5F21 00- B
CMPA ●e* >R*is a: 8
B122 9132 Al’ 5 2 B143 A-M ●,*3 p~t$
CMPB C122 D1 3, 2E152 Flq3 B-M ,$$)$ )$,, .$: .? tj
“7,\ .
Co,npare Acmltrs CBA 1121 A-B
Complement, 1’s dt1t1
COM 6372 1363 M-M .<-<,,.,,,
$:,
COMA ‘N; ,* I f Rs
43 2, 1fi-A >\:$,>~$;,
COMB ‘● ● t1Rs
5321 *$:’*: :!~~+ . . , ~Rs
~4B ‘!,.
Complement, 2’s NEG ~k,;.t>i}<tt
6072 7063
(Negate) 00 -M-M ,>\+., xi ..:,1,, ● ● rt@ @
NEGA ,’ 4021 ~.,:!:r~,,...>
00 -A-A
NEGB ..,~t,!$$~’ ,i~ ● ● t t @ @
Oecimal Adjust, A5021 00 -B-.6 ,‘a$>k’$;iw:~ ● ● t t @ @
OAA ,1921 Converts Binarv$~~ti:~&O Characters ● ● [ t I @
Oecrement into BCD ~grmat “’>*F
OEC 6A72 7A ‘6 3“,’.+..h
M-I,,,*M b● ● t t 4●
DECK .}. .t/.t,:>?<~\*.s
4A21 A+>1, ‘+;), ● ● {1 4 ●
OECB
Exclusi”e OR EORA 5A21 #?’l**B’* ●*[ ! 4●
BB22 9632 A852 BB43 .~y WM 3A ● ● t t R●
EORB C8 2.2 DB32 EB”5 2F843 &, ,:.B@#: B● ● tiR.
Incremel,t INC 6C72 7C63 “P{ ~M+ l-M ●. t 1@.
INCA ‘“ 4&:@’%2 1:A+I-. A
INCB 29’6 3 2 A; 5 2 B6 ,4 #,:?~ ‘
● ● t1@.
6+1-B
Load Acmltr LOAA. ● ● tr@.
B6 2~~+~>
,. ~“%.. M--A ● ● t1R.
LOAB C6 2 2 0632 E652 F64$ :.’ M-B
Or, Inclusi”e ORAA 8A 2● ● 1tR.
29A32 AA 52BA ~~~ .,:+$
s.)! i’!. A+ M-A
ORAB CA 2● ● ]rR.
20A32 EA52 F#/.>Lf,,;:+~; 6+ M-. B●9t I R.
Push Onta PSHA *&’ 4+,
.’,.,ia>:, 3641 A‘- MsP, SP -1 --SP
PSHB ● ● ● . . .
.31 “4 IB-. Msp, SP-l .SP
Pull Data PULA ,’ ,’ ,i;#> 9 9 ● ● ● ●
~., 3241
PULB SP+l--SP, MSP-A ● ● . . . .
,.{#$:$
Rotare Left ROL q; tt~$ 7963 334’ ~+1 -. SP, Msp -8 ●. . . . .
ROLA *lb “’’’’”J
● ● ] t @t
‘flOLB *+, ~;}..\. }%. 4921 A-
~.’tt-.~~’ ●*t t @I
,’ ,.:. t?:, 5921 Bc
RoIste Right b7 -bO
ROR ●*t t @t
.i$/“*4. W72 7683
RORA
}b “’’’’:’4
M~~ ●. t t @\
~{’,+~ws+~~~>.
-~ ~>, c46 2’ 1A
~:$;~}, %:3::>.: ~~ . . 1 1 @i
RORB C-b7 —bO
Shalt Left, Arilhme;tc .‘v&!. 56 2 1 B
ASL ,,, -.>$y$k”~ . . j:@1
.)”!.?+ 68’ 72 7863 M
ASLA 1-.. ~-
}.
. . 1 1 @I
w.{.)i *+.:t. r4B21 A
ASLB ❑-~- o
~t:.,t .. ● ● t t @I
5821 B
Shalt Right, Arlthmet!c ASR ~F** ‘~~%kiv $’ ● ● 1\@t
6/72 77 6!3
ASRA .
}
:&o-;
9●1t@j
~~:, “:$ ~721 **t1 6 f
,+p ~**% b,
ASRB ,.\y .,. .%4..,$,*V 5721 Bb7
Shalt flight, log!c ●*t t @1
LS~$ ,:$* 6472 7463 M
,.&bq&?i& t.
}
● ● R1@~
4421 Ao-~ -0
‘$*{:? ● ● R[6]
5421 Bb7 bO C
Slore Aclnllr. >..> .$- e●Rt@t
9742 A762 B7.5 3
,*k\. STAB A.. M
07 q ● ● tiR.
.}*.t+,*$’$’~ ,, 2E7 6 2 F753
Subtract BM. . t \ R.
>+*. ,,& su~A
.~,*::&y BO 22 90 3, 2A052 BOq3
~.s. AM-A
C022 003’2 E052 F043 ● ● 1trt
sub,,, cl A&;l;~%@* ~By B- M-B ● ● ] [ ] t
,.
,!.. -q.,.. 1021 A-B. A
Subtr. w~\~8q\k SBCA 82 2 . . 1[\t
2 9232 A2 52 8243 A–M– C.A . . ] [ ] I
?:<, ,,.\:.:\:*> SBCB C2 2
“>’’~cml$fs 2 02 3 2E2 52F2q3 B- M-C-.8
,t~sw$fe%:,, TAB ..!II1
1621 A--B ..t1R.
<. .. TBA
,<.~v ~~~$l:~~ro or Minus 1721 8 .A ..\1R.
TST .“ 60 7 2 7063
,:$y .... TSTA M-OO .. [1R R
!.>,,..
\., ,:~:.~.,:<*<t,4021
TSTB A-00 ● ● itR R
..p,;,.
,,,,,.:,,.<.~x\ 5021 B-00 ●. t 1R R
t~,$~ii
,,N.:** .,. ~
;(t::.: .$$ H1Nz v c
!~~. LEGENO: CO NOITION COOE SVMBOLS
OP Operalton Code (Hexadecimal); ,+ Boolean Inclusive OR;
.Number of MPU CVcles; @Boolean Excl”si.e OR; HHalf.c~rri from b,t 3;
Nu!nber of Program Bvtes; uComplement 01 M; IInterrupt mask
+Arithmetic Plus: Transfer Into; NNegative (tign bitl
Arithmetic Minus: oBlt=Zero; zZero (bvte)
Boolea!l ANO; 00 Byte =Zero; vOwedlow, 2’s complement
Msp Conlents of memorv Iocatlon pointed to be Slack Pointer: cCarrv from bit 7
RReset Alwavs
Note -Accumulator addressing mode instructions are included 10the column for IMPLIED addressing sSe! Alwavs
1Test and se! if true, cleared otherwise
●Not Affected
@MOTOROLA Semiconductor Products Inc.
~, 14