MOTOROLA
INSTRUCTION REFERENCE
CPU12
A-16
REFERENCE MANUAL
STOP
(SP) – 2
⇒
SP;
RTN
H
:RTN
L
⇒
M
(SP)
:M
(SP+1)
;
(SP) – 2
⇒
SP; (Y
H
:Y
L
)
⇒
M
(SP)
:M
(SP+1)
;
(SP) – 2
⇒
SP; (X
H
:X
L
)
⇒
M
(SP)
:M
(SP+1)
;
(SP) – 2
⇒
SP; (B:A)
⇒
M
(SP)
:M
(SP+1)
;
(SP) – 1
⇒
SP; (CCR)
⇒
M
(SP)
;
STOP All Clocks
If S control bit = 1, the STOP instruction is
disabled and acts like a two-cycle NOP.
Registers stacked to allow quicker recovery
by interrupt.
INH
18 3E
9
+5
or
–
–
–
–
–
–
–
–
STS
opr
(SP
H
:SP
L
)
⇒
M:M+1
Store Stack Pointer
DIR
EXT
IDX
IDX1
IDX2
[D,IDX]
[IDX2]
5F dd
7F hh ll
6F xb
6F xb ff
6F xb ee ff
6F xb
6F xb ee ff
2
3
2
3
3
5
5
–
–
–
–
∆ ∆
0
–
STX
opr
(X
H
:X
L
)
⇒
M:M+1
Store Index Register X
DIR
EXT
IDX
IDX1
IDX2
[D,IDX]
[IDX2]
5E dd
7E hh ll
6E xb
6E xb ff
6E xb ee ff
6E xb
6E xb ee ff
2
3
2
3
3
5
5
–
–
–
–
∆ ∆
0
–
STY
opr
(Y
H
:Y
L
)
⇒
M:M+1
Store Index Register Y
DIR
EXT
IDX
IDX1
IDX2
[D,IDX]
[IDX2]
5D dd
7D hh ll
6D xb
6D xb ff
6D xb ee ff
6D xb
6D xb ee ff
2
3
2
3
3
5
5
–
–
–
–
∆ ∆
0
–
SUBA
opr
(A) – (M)
⇒
A
Subtract Memory from Accumulator A
IMM
DIR
EXT
IDX
IDX1
IDX2
[D,IDX]
[IDX2]
80 ii
90 dd
B0 hh ll
A0 xb
A0 xb ff
A0 xb ee ff
A0 xb
A0 xb ee ff
1
3
3
3
3
4
6
6
–
–
–
–
∆ ∆ ∆ ∆
SUBB
opr
(B) – (M)
⇒
B
Subtract Memory from Accumulator B
IMM
DIR
EXT
IDX
IDX1
IDX2
[D,IDX]
[IDX2]
C0 ii
D0 dd
F0 hh ll
E0 xb
E0 xb ff
E0 xb ee ff
E0 xb
E0 xb ee ff
1
3
3
3
3
4
6
6
–
–
–
–
∆ ∆ ∆ ∆
Table A-1 Instruction Set Summary (Continued)
Source
Form
Operation
Addr.
Mode
Machine
Coding (hex)
~
*
S X H I N Z V C
Summary of Contents for CPU12
Page 8: ...MOTOROLA CPU12 viii REFERENCE MANUAL ...
Page 14: ...MOTOROLA INTRODUCTION CPU12 1 4 REFERENCE MANUAL ...
Page 20: ...MOTOROLA OVERVIEW CPU12 2 6 REFERENCE MANUAL ...
Page 38: ...MOTOROLA INSTRUCTION QUEUE CPU12 4 6 REFERENCE MANUAL ...
Page 300: ...MOTOROLA DEVELOPMENT AND DEBUG SUPPORT CPU12 8 16 REFERENCE MANUAL ...
Page 338: ...MOTOROLA MEMORY EXPANSION CPU12 10 8 REFERENCE MANUAL ...
Page 364: ...MOTOROLA INSTRUCTION REFERENCE CPU12 A 26 REFERENCE MANUAL ...
Page 386: ...MOTOROLA HIGH LEVEL LANGUAGE SUPPORT CPU12 C 6 REFERENCE MANUAL ...
Page 438: ...MOTOROLA SUMMARY OF CHANGES CPU12 S 2 REFERENCE MANUAL ...
Page 439: ......