Chapter 8 Central Processor Unit (S08CPUV5)
MC9S08LG32 MCU Series, Rev. 5
150
Freescale Semiconductor
CPX #
opr8i
CPX
opr8a
CPX
opr16a
CPX
oprx16
,X
CPX
oprx8
,X
CPX ,X
CPX
oprx16
,SP
CPX
oprx8
,SP
Compare X (Index Register Low) with
Memory
X – M
(CCR Updated But Operands Not
Changed)
IMM
DIR
EXT
IX2
IX1
IX
SP2
SP1
A3
B3
C3
D3
E3
F3
9E D3
9E E3
ii
dd
hh ll
ee ff
ff
ee ff
ff
2
3
4
4
3
3
5
4
pp
rpp
prpp
prpp
rpp
rfp
pprpp
prpp
Þ
1 1
–
–
Þ Þ Þ
DAA
Decimal Adjust Accumulator
After ADD or ADC of BCD Values
INH
72
1
p
U 1 1 –
–
Þ Þ Þ
DBNZ
opr8a
,
rel
DBNZA
rel
DBNZX
rel
DBNZ
oprx8
,X,
rel
DBNZ ,X,
rel
DBNZ
oprx8
,SP,
rel
Decrement A, X, or M and Branch if Not
Zero
(if (result)
≠
0)
DBNZX Affects X Not H
DIR
INH
INH
IX1
IX
SP1
3B
4B
5B
6B
7B
9E 6B
dd rr
rr
rr
ff rr
rr
ff rr
7
4
4
7
6
8
rfwpppp
fppp
fppp
rfwpppp
rfwppp
prfwpppp
– 1 1 –
– – – –
DEC
opr8a
DECA
DECX
DEC
oprx8
,X
DEC ,X
DEC
oprx8
,SP
Decrement
M
←
(M) – $01
A
←
(A) – $01
X
←
(X) – $01
M
←
(M) – $01
M
←
(M) – $01
M
←
(M) – $01
DIR
INH
INH
IX1
IX
SP1
3A
4A
5A
6A
7A
9E 6A
dd
ff
ff
5
1
1
5
4
6
rfwpp
p
p
rfwpp
rfwp
prfwpp
Þ
1 1
–
–
Þ Þ
–
DIV
Divide
A
←
(H:A)
÷
(X); H
←
Remainder
INH
52
6
fffffp
– 1 1 –
– –
Þ Þ
EOR #
opr8i
EOR
opr8a
EOR
opr16a
EOR
oprx16
,X
EOR
oprx8
,X
EOR ,X
EOR
oprx16
,SP
EOR
oprx8
,SP
Exclusive OR Memory with Accumulator
A
←
(A
⊕
M)
IMM
DIR
EXT
IX2
IX1
IX
SP2
SP1
A8
B8
C8
D8
E8
F8
9E D8
9E E8
ii
dd
hh ll
ee ff
ff
ee ff
ff
2
3
4
4
3
3
5
4
pp
rpp
prpp
prpp
rpp
rfp
pprpp
prpp
0 1 1 –
–
Þ Þ
–
INC
opr8a
INCA
INCX
INC
oprx8
,X
INC ,X
INC
oprx8
,SP
Increment
M
←
(M) + $01
A
←
(A) + $01
X
←
(X) + $01
M
←
(M) + $01
M
←
(M) + $01
M
←
(M) + $01
DIR
INH
INH
IX1
IX
SP1
3C
4C
5C
6C
7C
9E 6C
dd
ff
ff
5
1
1
5
4
6
rfwpp
p
p
rfwpp
rfwp
prfwpp
Þ
1 1 –
–
Þ Þ
–
JMP
opr8a
JMP
opr16a
JMP
oprx16
,X
JMP
oprx8
,X
JMP ,X
Jump
PC
←
Jump Address
DIR
EXT
IX2
IX1
IX
BC
CC
DC
EC
FC
dd
hh ll
ee ff
ff
3
4
4
3
3
ppp
pppp
pppp
ppp
ppp
– 1 1 –
– – – –
JSR
opr8a
JSR
opr16a
JSR
oprx16
,X
JSR
oprx8
,X
JSR ,X
Jump to Subroutine
PC
←
(PC) +
n
(
n
= 1, 2, or 3)
Push (PCL); SP
←
(SP) – $0001
Push (PCH); SP
←
(SP) – $0001
PC
←
Unconditional Address
DIR
EXT
IX2
IX1
IX
BD
CD
DD
ED
FD
dd
hh ll
ee ff
ff
5
6
6
5
5
ssppp
pssppp
pssppp
ssppp
ssppp
– 1 1 –
– – – –
Table 8-2. Instruction Set Summary (Sheet 5 of 10)
Source
Form
Operation
Ad
dr
ess
Mode
Object Code
Cyc
les
Cyc-by-Cyc
Details
Affect
on CCR
V
1 1
H
I N Z C
Содержание MC9S08LG16
Страница 2: ......
Страница 4: ......
Страница 8: ......
Страница 20: ......
Страница 26: ...Chapter 1 Device Overview MC9S08LG32 MCU Series Rev 5 26 Freescale Semiconductor...
Страница 40: ...Chapter 2 Pins and Connections MC9S08LG32 MCU Series Rev 5 40 Freescale Semiconductor...
Страница 96: ...Chapter 5 Resets Interrupts and General System Control MC9S08LG32 MCU Series Rev 5 96 Freescale Semiconductor...
Страница 296: ...Chapter 12 Serial Peripheral Interface S08SPIV4 MC9S08LG32 MCU Series Rev 5 296 Freescale Semiconductor...
Страница 372: ......