Freescale Semiconductor MC68HC908MR32 Manual Do Utilizador

Página de 282
Opcode Map
MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1
Freescale Semiconductor
89
7.8  Opcode Map
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
– – 1 – – – INH
83
9
TAP
Transfer A to CCR
CCR 
← (A)
      INH
84
2
TAX
Transfer A to X
←  (A)
– – – – – – INH
97
1
TPA
Transfer CCR to A
←  (CCR)
– – – – – – INH
85
1
TST opr
TSTA
TSTX
TST opr,X
TST ,X
TST opr,SP
Test for Negative or Zero
(A) – $00 or (X) – $00 or (M) – $00
0 – –
  –
DIR
INH
INH
IX1
IX
SP1
3D
4D
5D
6D
7D
9E6D
dd
ff
ff
3
1
1
3
2
4
TSX
Transfer SP to H:X
H:X 
←  (SP)  +  1
– – – – – – INH
95
2
TXA
Transfer X to A
←  (X)
– – – – – – INH
9F
1
TXS
Transfer H:X to SP
(SP) 
←  (H:X)  –  1
– – – – – – INH
94
2
WAIT
Enable Interrupts; Wait for Interrupt
I bit 
← 0; Inhibit CPU clocking
until interrupted
– – 0 – – – INH
8F
1
A
Accumulator
n
Any bit
C
Carry/borrow bit
opr
Operand (one or two bytes)
CCR
Condition code register
PC
Program counter
dd
Direct address of operand
PCH Program counter high byte
dd rr
Direct address of operand and relative offset of branch instruction
PCL Program counter low byte
DD
Direct to direct addressing mode
REL Relative addressing mode
DIR
Direct addressing mode
rel
Relative program counter offset byte
DIX+
Direct to indexed with post increment addressing mode
rr
Relative program counter offset byte
ee ff
High and low bytes of offset in indexed, 16-bit offset addressing
SP1 Stack pointer, 8-bit offset addressing mode
EXT
Extended addressing mode
SP2 Stack pointer 16-bit offset addressing mode
ff
Offset byte in indexed, 8-bit offset addressing
SP
Stack pointer
H
Half-carry bit
U
Undefined
H
Index register high byte
V
Overflow bit
hh ll
High and low bytes of operand address in extended addressing
X
Index register low byte
I
Interrupt mask
Z
Zero bit
ii
Immediate operand byte
&
Logical AND
IMD
Immediate source to direct destination addressing mode
|
Logical OR
IMM
Immediate addressing mode
Logical EXCLUSIVE OR
INH
Inherent addressing mode
( )
Contents of
IX
Indexed, no offset addressing mode
–( )
Negation (two’s complement)
IX+
Indexed, no offset, post increment addressing mode
#
Immediate value
IX+D
Indexed with post increment to direct addressing mode
«
Sign extend
IX1
Indexed, 8-bit offset addressing mode
Loaded with
IX1+
Indexed, 8-bit offset, post increment addressing mode
?
If
IX2
Indexed, 16-bit offset addressing mode
:
Concatenated with
M
Memory location
Set or cleared
N
Negative bit
Not affected
Table 7-1. Instruction Set Summary (Sheet 6 of 6)
Source
Form
Operation
Description
Effect
on CCR
Addre
s
s
Mode
Op
co
de
Op
era
n
d
C
y
cl
es
V H I N Z C