English
Language : 

MC9S08GT16A Datasheet, PDF (120/300 Pages) Freescale Semiconductor, Inc – Microcontrollers
Central Processor Unit (S08CPUV2)
Table 8-2. HCS08 Instruction Set Summary (Sheet 5 of 7)
Source
Form
Operation
Description
Effect
on CCR
VH I NZC
LDX #opr8i
LDX opr8a
LDX opr16a
LDX oprx16,X
LDX oprx8,X
LDX ,X
LDX oprx16,SP
LDX oprx8,SP
LSL opr8a
LSLA
LSLX
LSL oprx8,X
LSL ,X
LSL oprx8,SP
LSR opr8a
LSRA
LSRX
LSR oprx8,X
LSR ,X
LSR oprx8,SP
MOV opr8a,opr8a
MOV opr8a,X+
MOV #opr8i,opr8a
MOV ,X+,opr8a
MUL
NEG opr8a
NEGA
NEGX
NEG oprx8,X
NEG ,X
NEG oprx8,SP
NOP
NSA
ORA #opr8i
ORA opr8a
ORA opr16a
ORA oprx16,X
ORA oprx8,X
ORA ,X
ORA oprx16,SP
ORA oprx8,SP
PSHA
PSHH
PSHX
PULA
PULH
PULX
ROL opr8a
ROLA
ROLX
ROL oprx8,X
ROL ,X
ROL oprx8,SP
Load X (Index Register
Low) from Memory
Logical Shift Left
(Same as ASL)
Logical Shift Right
Move
Unsigned multiply
Negate
(Two’s Complement)
No Operation
Nibble Swap
Accumulator
Inclusive OR Accumulator
and Memory
Push Accumulator onto
Stack
Push H (Index Register
High) onto Stack
Push X (Index Register
Low) onto Stack
Pull Accumulator from
Stack
Pull H (Index Register
High) from Stack
Pull X (Index Register
Low) from Stack
Rotate Left through Carry
X ← (M)
C
b7
0
b0
0
b7
C
b0
(M)destination ← (M)source
H:X ← (H:X) + 0x0001 in
IX+/DIR and DIR/IX+ Modes
X:A ← (X) × (A)
M ← – (M) = 0x00 – (M)
A ← – (A) = 0x00 – (A)
X ← – (X) = 0x00 – (X)
M ← – (M) = 0x00 – (M)
M ← – (M) = 0x00 – (M)
M ← – (M) = 0x00 – (M)
Uses 1 Bus Cycle
A ← (A[3:0]:A[7:4])
A ← (A) | (M)
Push (A); SP ← (SP) – 0x0001
Push (H); SP ← (SP) – 0x0001
Push (X); SP ← (SP) – 0x0001
SP ← (SP + 0x0001); Pull (A)
SP ← (SP + 0x0001); Pull (H)
SP ← (SP + 0x0001); Pull (X)
C
b7
b0
IMM
DIR
EXT
0
–
–
↕
↕
–
IX2
IX1
IX
SP2
SP1
AE ii
2
BE dd
3
CE hh ll 4
DE ee ff 4
EE ff
3
FE
3
9EDE ee ff 5
9EEE ff
4
DIR
INH
↕
–
–
↕
↕
↕
INH
IX1
IX
SP1
38 dd
5
48
1
58
1
68 ff
5
78
4
9E68 ff
6
DIR
INH
↕
–
–
0
↕
↕
INH
IX1
IX
SP1
34 dd
5
44
1
54
1
64 ff
5
74
4
9E64 ff
6
DIR/DIR
0
–
–
↕
↕
–
DIR/IX+
IMM/DIR
IX+/DIR
4E dd dd 5
5E dd
5
6E ii dd 4
7E dd
5
– 0 – – – 0 INH
42
5
DIR
INH
–
–
↕
↕
↕
INH
IX1
IX
SP1
30 dd
5
40
1
50
1
60 ff
5
70
4
9E60 ff
6
– – – – – – INH
9D
1
– – – – – – INH
62
1
IMM
DIR
EXT
0
–
–
↕
↕
–
IX2
IX1
IX
SP2
SP1
AA ii
2
BA dd
3
CA hh ll 4
DA ee ff 4
EA ff
3
FA
3
9EDA ee ff 5
9EEA ff
4
– – – – – – INH
87
2
– – – – – – INH
8B
2
– – – – – – INH
89
2
– – – – – – INH
86
3
– – – – – – INH
8A
3
– – – – – – INH
DIR
INH
↕
–
–
↕
↕
↕
INH
IX1
IX
SP1
88
3
39 dd
5
49
1
59
1
69 ff
5
79
4
9E69 ff
6
MC9S08GT16A/GT8A Data Sheet, Rev. 1
120
Freescale Semiconductor