CPU12
INSTRUCTION SET OVERVIEW
MOTOROLA
REFERENCE MANUAL
5-3
5.4 Move Instructions
These instructions move data bytes or words from a source (M
1
, M : M
+
1
1
) to a des-
tination (M
2
, M : M
+
1
2
) in memory. Six combinations of immediate, extended, and in-
dexed addressing are allowed to specify source and destination addresses (IMM
⇒
EXT, IMM
⇒
IDX, EXT
⇒
EXT, EXT
⇒
IDX, IDX
⇒
EXT, IDX
⇒
IDX).
shows byte and word move instructions.
5.5 Addition and Subtraction Instructions
Signed and unsigned 8- and 16-bit addition can be performed between registers or be-
tween registers and memory. Special instructions support index calculation. Instruc-
tions that add the CCR carry bit facilitate multiple precision computation.
Signed and unsigned 8- and 16-bit subtraction can be performed between registers or
between registers and memory. Special instructions support index calculation. Instruc-
tions that subtract the CCR carry bit facilitate multiple precision computation. Refer to
for addition and subtraction instructions.
Table 5-2 Transfer and Exchange Instructions
Transfer Instructions
Mnemonic
Function
Operation
TAB
Transfer A to B
(A)
⇒
B
TAP
Transfer A to CCR
(A)
⇒
CCR
TBA
Transfer B to A
(B)
⇒
A
TFR
Transfer Register to Register
(A, B, CCR, D, X, Y, or SP)
⇒
A, B, CCR, D, X, Y, or SP
TPA
Transfer CCR to A
(CCR)
⇒
A
TSX
Transfer SP to X
(SP)
⇒
X
TSY
Transfer SP to Y
(SP)
⇒
Y
TXS
Transfer X to SP
(X)
⇒
SP
TYS
Transfer Y to SP
(Y)
⇒
SP
Exchange Instructions
Mnemonic
Function
Operation
EXG
Exchange Register to Register
(A, B, CCR, D, X, Y, or SP)
⇔ (
A, B, CCR, D, X, Y, or SP)
XGDX
Exchange D with X
(D)
⇔
(X)
XGDY
Exchange D with Y
(D)
⇔
(Y)
Sign Extension Instruction
Mnemonic
Function
Operation
SEX
Sign Extend 8-Bit Operand
(A, B, CCR)
⇒
X, Y, or SP
Table 5-3 Move Instructions
Mnemonic
Function
Operation
MOVB
Move Byte (8-bit)
(M
1
)
⇒
M
2
MOVW
Move Word (16-bit)
(M
:
M
+
1
1
)
⇒
M
:
M
+
1
2
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: ......