Move Instructions; Addition And Subtraction Instructions - Motorola HC12 Refrence Manual

Table of Contents

Advertisement

Table 5-2 Transfer and Exchange Instructions
Mnemonic
TAB
Transfer A to B
TAP
Transfer A to CCR
TBA
Transfer B to A
TFR
Transfer Register to Register
TPA
Transfer CCR to A
TSX
Transfer SP to X
TSY
Transfer SP to Y
TXS
Transfer X to SP
TYS
Transfer Y to SP
Mnemonic
EXG
Exchange Register to Register
XGDX
Exchange D with X
XGDY
Exchange D with Y
Mnemonic
SEX
Sign Extend 8-Bit Operand

5.4 Move Instructions

These instructions move data bytes or words from a source (M
, M : M +1
tination (M
2
dexed addressing are allowed to specify source and destination addresses (IMM ⇒
EXT, IMM ⇒ IDX, EXT ⇒ EXT, EXT ⇒ IDX, IDX ⇒ EXT, IDX ⇒ IDX).
Table 5-3
shows byte and word move instructions.
Mnemonic
MOVB
MOVW

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
Table 5-4
for addition and subtraction instructions.
CPU12
REFERENCE MANUAL
Transfer Instructions
Function
Exchange Instructions
Function
Sign Extension Instruction
Function
) in memory. Six combinations of immediate, extended, and in-
2
Table 5-3 Move Instructions
Function
Move Byte (8-bit)
Move Word (16-bit)
INSTRUCTION SET OVERVIEW
Operation
(A) ⇒ B
(A) ⇒ CCR
(B) ⇒ A
(A, B, CCR, D, X, Y, or SP) ⇒ A, B, CCR, D, X, Y, or SP
(CCR) ⇒ A
(SP) ⇒ X
(SP) ⇒ Y
(X) ⇒ SP
(Y) ⇒ SP
Operation
(A, B, CCR, D, X, Y, or SP) ⇔ (A, B, CCR, D, X, Y, or SP)
(D) ⇔ (X)
(D) ⇔ (Y)
Operation
(A, B, CCR) ⇒ X, Y, or SP
(M : M + 1
, M : M +1
) to a des-
1
1
Operation
) ⇒ M
(M
1
2
) ⇒ M : M + 1
2
1
MOTOROLA
5-3

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cpu12

Table of Contents