English
Language : 

S9S08SG8E2MSC Datasheet, PDF (108/320 Pages) Freescale Semiconductor, Inc – MC9S08SG8 MC9S08SG4 Data Sheet Addendum
Chapter 7 Central Processor Unit (S08CPUV2)
Table 7-2. Instruction Set Summary (Sheet 6 of 9)
Source
Form
Operation
Object Code
Affect
Cyc-by-Cyc on CCR
Details
VH I N Z C
MOV opr8a,opr8a
MOV opr8a,X+
MOV #opr8i,opr8a
MOV ,X+,opr8a
Move
(M)destination (M)source
In IX+/DIR and DIR/IX+ Modes, 
H:X  (H:X) + 0x0001
DIR/DIR
DIR/IX+
IMM/DIR
IX+/DIR
4E dd dd
5E dd
6E ii dd
7E dd
5 rpwpp
5 rfwpp
4 pwpp
5 rfwpp
0 – –  –
MUL
Unsigned multiply
X:A  (X)  (A)
INH
42
5 ffffp
–0 – – – 0
NEG opr8a
NEGA
NEGX
NEG oprx8,X
NEG ,X
NEG oprx8,SP
Negate
M  – (M) = 0x00 – (M) DIR
(Two’s Complement) A  – (A) = 0x00 – (A) INH
X  – (X) = 0x00 – (X) INH
M  – (M) = 0x00 – (M) IX1
M  – (M) = 0x00 – (M) IX
M  – (M) = 0x00 – (M) SP1
30 dd
40
50
60 ff
70
9E 60 ff
5 rfwpp
1p
1p
5 rfwpp
4 rfwp
6 prfwpp
– – 
NOP
No Operation — Uses 1 Bus Cycle
INH
9D
1p
–– – – – –
NSA
Nibble Swap Accumulator
A  (A[3:0]:A[7:4])
INH
62
1p
–– – – – –
ORA #opr8i
IMM
AA ii
2 pp
ORA opr8a
DIR
BA dd
3 rpp
ORA opr16a
EXT
CA hh ll 4 prpp
ORA oprx16,X
Inclusive OR Accumulator and Memory
IX2
DA ee ff 4 prpp
ORA oprx8,X
A  (A) | (M)
IX1
EA ff
3 rpp
ORA ,X
IX
FA
3 rfp
ORA oprx16,SP
SP2
9E DA ee ff 5 pprpp
ORA oprx8,SP
SP1
9E EA ff
4 prpp
0 – –  –
PSHA
Push Accumulator onto Stack
Push (A); SP (SP) – 0x0001
INH
87
2 sp
–– – – – –
PSHH
Push H (Index Register High) onto Stack
Push (H); SP (SP) – 0x0001
INH
8B
2 sp
–– – – – –
PSHX
Push X (Index Register Low) onto Stack
Push (X); SP (SP) – 0x0001
INH
89
2 sp
–– – – – –
PULA
Pull Accumulator from Stack
SP (SP + 0x0001); PullA
INH
86
3 ufp
–– – – – –
PULH
Pull H (Index Register High) from Stack
SP (SP + 0x0001); PullH
INH
8A
3 ufp
–– – – – –
PULX
Pull X (Index Register Low) from Stack
SP (SP + 0x0001); PullX
INH
88
3 ufp
–– – – – –
ROL opr8a
ROLA
ROLX
ROL oprx8,X
ROL ,X
ROL oprx8,SP
Rotate Left through Carry
C
b7
b0
DIR
39 dd
5 rfwpp
INH
49
1p
INH
59
1p
IX1
69 ff
5 rfwpp
IX
79
4 rfwp
SP1
9E 69 ff
6 prfwpp
– – 
ROR opr8a
RORA
RORX
ROR oprx8,X
ROR ,X
ROR oprx8,SP
Rotate Right through Carry
C
b7
b0
DIR
36 dd
5 rfwpp
INH
46
1p
INH
56
1p
IX1
66 ff
5 rfwpp
IX
76
4 rfwp
SP1
9E 66 ff
6 prfwpp
– – 
MC9S08SG8 MCU Series Data Sheet, Rev. 7
104
Freescale Semiconductor