![NXP Semiconductors MC9S08LG16 Reference Manual Download Page 152](http://html1.mh-extra.com/html/nxp-semiconductors/mc9s08lg16/mc9s08lg16_reference-manual_1721837152.webp)
Chapter 8 Central Processor Unit (S08CPUV5)
MC9S08LG32 MCU Series, Rev. 5
152
Freescale Semiconductor
NEG
opr8a
NEGA
NEGX
NEG
oprx8
,X
NEG ,X
NEG
oprx8
,SP
Negate
M
←
– (M) = $00
– (M)
(Two’s Complement) A
←
– (A) = $00 –
(A)
X
←
– (X) = $00 –
(X)
M
←
– (M) = $00
– (M)
M
←
– (M) = $00
– (M)
M
←
– (M) = $00
– (M)
DIR
INH
INH
IX1
IX
SP1
30
40
50
60
70
9E 60
dd
ff
ff
5
1
1
5
4
6
rfwpp
p
p
rfwpp
rfwp
prfwpp
Þ
1 1
–
–
Þ Þ Þ
NOP
No Operation — Uses 1 Bus Cycle
INH
9D
1
p
– 1 1 –
– – – –
NSA
Nibble Swap Accumulator
A
←
(A[3:0]:A[7:4])
INH
62
1
p
– 1 1 –
– – – –
ORA #
opr8i
ORA
opr8a
ORA
opr16a
ORA
oprx16
,X
ORA
oprx8
,X
ORA ,X
ORA
oprx16
,SP
ORA
oprx8
,SP
Inclusive OR Accumulator and Memory
A
←
(A) | (M)
IMM
DIR
EXT
IX2
IX1
IX
SP2
SP1
AA
BA
CA
DA
EA
FA
9E DA
9E EA
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 –
–
Þ Þ
–
PSHA
Push Accumulator onto Stack
Push (A); SP
←
(SP) – $0001
INH
87
2
sp
– 1 1 –
– – – –
PSHH
Push H (Index Register High) onto Stack
Push (H); SP
←
(SP) – $0001
INH
8B
2
sp
– 1 1 –
– – – –
PSHX
Push X (Index Register Low) onto Stack
Push (X); SP
←
(SP) – $0001
INH
89
2
sp
– 1 1 –
– – – –
PULA
Pull Accumulator from Stack
SP
←
(SP +
$0001); Pull
(
A
)
INH
86
3
ufp
– 1 1 –
– – – –
PULH
Pull H (Index Register High) from Stack
SP
←
(SP +
$0001); Pull
(
H
)
INH
8A
3
ufp
– 1 1 –
– – – –
PULX
Pull X (Index Register Low) from Stack
SP
←
(SP +
$0001); Pull
(
X
)
INH
88
3
ufp
– 1 1 –
– – – –
ROL
opr8a
ROLA
ROLX
ROL
oprx8
,X
ROL ,X
ROL
oprx8
,SP
Rotate Left through Carry
DIR
INH
INH
IX1
IX
SP1
39
49
59
69
79
9E 69
dd
ff
ff
5
1
1
5
4
6
rfwpp
p
p
rfwpp
rfwp
prfwpp
Þ
1 1
–
–
Þ Þ Þ
ROR
opr8a
RORA
RORX
ROR
oprx8
,X
ROR ,X
ROR
oprx8
,SP
Rotate Right through Carry
DIR
INH
INH
IX1
IX
SP1
36
46
56
66
76
9E 66
dd
ff
ff
5
1
1
5
4
6
rfwpp
p
p
rfwpp
rfwp
prfwpp
Þ
1 1
–
–
Þ Þ Þ
Table 8-2. Instruction Set Summary (Sheet 7 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
C
b0
b7
b0
b7
C
Summary of Contents for MC9S08LG16
Page 2: ......
Page 4: ......
Page 8: ......
Page 20: ......
Page 26: ...Chapter 1 Device Overview MC9S08LG32 MCU Series Rev 5 26 Freescale Semiconductor...
Page 40: ...Chapter 2 Pins and Connections MC9S08LG32 MCU Series Rev 5 40 Freescale Semiconductor...
Page 372: ......