Motorola HC12 Refrence Manual page 263

Table of Contents

Advertisement

TFR
Operation:
See table.
Description:
Transfers the content of a source register to a destination register spec-
ified in the instruction. The order in which transfers between 8-bit and 16-
bit registers are specified affects the high byte of the 16-bit registers dif-
ferently. Cases involving TMP2 and TMP3 are reserved for Motorola
use, so some assemblers may not permit their use. It is possible to gen-
erate these cases by using DC.B or DC.W assembler directives.
Condition Codes and Boolean Formulas:
S
None affected, unless the CCR is the destination register. Condition
codes take on the value of the corresponding source bits, except that
the X mask bit cannot change from zero to one. Software can leave
the X bit set, leave it cleared, or change it from one to zero, but it can
only be set by a reset or by recognition of an XIRQ interrupt.
Addressing Modes, Machine Code, and Execution Times:
Source Form
TFR abcdxys,abcdxys
Notes:
1. Legal coding for eb is summarized in the following table. Columns represent the high-order digit, and rows rep-
resent the low-order digit in hexadecimal (MSB is a don't-care).
0
1
A ⇒ A
B ⇒ A
0
A ⇒ B
B ⇒ B
1
A ⇒ CCR
B ⇒ CCR
2
sex:A ⇒ TMP2
sex:B ⇒ TMP2
3
sex:A ⇒ D
sex:B ⇒ D
4
SEX A,D
SEX B,D
sex:A ⇒ X
sex:B ⇒ X
5
SEX A,X
SEX B,X
sex:A ⇒ Y
sex:B ⇒ Y
6
SEX A,Y
SEX B,Y
sex:A ⇒ SP
sex:B ⇒ SP
7
SEX A,SP
SEX B,SP
CPU12
REFERENCE MANUAL
Transfer Register Content
to Another Register
X
H
I
N
Z
or
Address Mode
INH
B7 eb
2
CCR ⇒ A
TMP3
CCR ⇒ B
TMP3
CCR ⇒ CCR
TMP3
sex:CCR ⇒ TMP2
TMP3 ⇒ TMP2
sex:CCR ⇒ D
TMP3 ⇒ D
SEX CCR,D
sex:CCR ⇒ X
TMP3 ⇒ X
SEX CCR,X
sex:CCR ⇒ Y
TMP3 ⇒ Y
SEX CCR,Y
sex:CCR ⇒ SP
TMP3 ⇒ SP
SEX CCR,SP
INSTRUCTION GLOSSARY
V
C
1
Object Code
3
4
⇒ A
B ⇒ A
X
L
⇒ B
B ⇒ B
X
L
⇒ CCR
B ⇒ CCR
X
L
L
D ⇒ TMP2 X ⇒ TMP2 Y ⇒ TMP2 SP ⇒ TMP2
D ⇒ D
X ⇒ D
D ⇒ X
X ⇒ X
D ⇒ Y
X ⇒ Y
D ⇒ SP
X ⇒ SP
TFR
Cycles
Access Detail
1
P
5
6
7
⇒ A
⇒ A
⇒ A
Y
SP
L
L
L
⇒ B
⇒ B
⇒ B
Y
SP
L
L
L
⇒ CCR Y
⇒ CCR SP
⇒ CCR
L
L
Y ⇒ D
SP ⇒ D
Y ⇒ X
SP ⇒ X
Y ⇒ Y
SP ⇒ Y
Y ⇒ SP
SP ⇒ SP
MOTOROLA
6-203

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cpu12

Table of Contents