
CPU
Instruction Set
MOTOROLA
CPU
47
Opcode Map
The opcode map is provided in
Table 10
.
SWI
Software Interrupt
PC
←
(PC) + 1; Push (PCL)
SP
←
(SP) – 1; Push (PCH)
SP
←
(SP) – 1; Push (X)
SP
←
(SP) – 1; Push (A)
SP
←
(SP) – 1; Push (CCR)
SP
←
(SP) – 1; I
←
1
PCH
←
Interrupt Vector High Byte
PCL
←
Interrupt Vector Low Byte
X
←
(A)
— 1 — — —
INH
83
10
TAX
TST opr
TSTA
TSTX
TST oprX
TST ,X
TXA
WAIT
A
C
CCR
dd
dd rr
DIR
ee ff
EXT
ff
H
hh ll
I
ii
IMM
INH
IX
IX1
IX2
M
N
n
Transfer Accumulator to Index Register
— — — — —
INH
DIR
INH
INH
IX1
IX
INH
INH
97
3D
4D
5D
6D
7D
9F
8F
2
4
3
3
5
4
2
2
Test Memory Byte for Negative or Zero
(M) – $00
— —
¤
¤
—
dd
ff
Transfer Index Register to Accumulator
Stop CPU Clock and Enable Interrupts
Accumulator
Carry/borrow flag
Condition code register
Direct address of operand
Direct address of operand and relative offset of branch instruction
Direct addressing mode
High and low bytes of offset in indexed, 16-bit offset addressing
Extended addressing mode
Offset byte in indexed, 8-bit offset addressing
Half-carry flag
High and low bytes of operand address in extended addressing
Interrupt mask
Immediate operand byte
Immediate addressing mode
Inherent addressing mode
Indexed, no offset addressing mode
Indexed, 8-bit offset addressing mode
Indexed, 16-bit offset addressing mode
Memory location
Negative flag
Any bit
A
←
(X)
— — — — —
— 0 — — —
opr
PC
PCH Program counter high byte
PCL Program counter low byte
REL Relative addressing mode
rel
Relative program counter offset byte
rr
Relative program counter offset byte
SP
Stack pointer
X
Index register
Z
Zero flag
#
Immediate value
∧
Logical AND
∨
Logical OR
⊕
Logical EXCLUSIVE OR
( )
Contents of
–( )
Negation (two’s complement)
←
Loaded with
If
:
Concatenated with
¤
Set or cleared
—
Not affected
Operand (one or two bytes)
Program counter
Table 9. Instruction Set Summary (Continued)
Source
Form
Operation
Description
Effect on
CCR
A
M
O
O
C
H I N Z C
25-hc05cpu
F
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
.