Table 10-3. Instruction Set Summary (continued)
Source Form
Operation
Description
Effect on CCR
Address
Mode
Opcode
Operand
Bus Cycles
V H I N Z C
– – – – – –
DIR (b3)
16
dd
5
BSET n,opr8a
Set Bit n in Memory
Mn
←
1
– – – – – –
DIR (b4)
18
dd
5
– – – – – –
DIR (b5)
1A
dd
5
– – – – – –
DIR (b6)
1C
dd
5
– – – – – –
DIR (b7)
1E
dd
5
PC
←
(PC) + 0x0002
push (PCL)
BSR rel
Branch to Subroutine
SP
←
(SP) – 0x0001
push (PCH)
– – – – – –
REL
AD
rr
5
SP
←
(SP) – 0x0001
PC
←
(PC) + rel
CBEQ opr8a,rel
Branch if (A) = (M)
– – – – – –
DIR
31
dd rr
5
CBEQA
#opr8i,rel
Branch if (A) = (M)
– – – – – –
IMM
41
ii rr
4
CBEQX
#opr8i,rel
Compare and Branch
if Equal
Branch if (X) = (M)
– – – – – –
IMM
51
ii rr
4
CBEQ oprx8,X
+,rel
Branch if (A) = (M)
– – – – – –
IX1+
61
ff rr
5
CBEQ ,X+,rel
Branch if (A) = (M)
– – – – – –
IX+
71
rr
5
CBEQ
oprx8,SP,rel
Branch if (A) = (M)
– – – – – –
SP1
9E61
ff rr
6
CLC
Clear Carry Bit
C
←
0
– – – – – 0
INH
98
1
CLI
Clear Interrupt Mask
Bit
I
←
0
– – 0 – – –
INH
9A
1
CLR opr8a
M
←
0x00
0 – – 0 1 –
DIR
3F
dd
5
CLRA
A
←
0x00
0 – – 0 1 –
INH
4F
1
CLRX
X
←
0x00
0 – – 0 1 –
INH
5F
1
CLRH
Clear
H
←
0x00
0 – – 0 1 –
INH
8C
1
CLR oprx8,X
M
←
0x00
0 – – 0 1 –
IX1
6F
ff
5
CLR ,X
M
←
0x00
0 – – 0 1 –
IX
7F
4
CLR oprx8,SP
M
←
0x00
0 – – 0 1 –
SP1
9E6F
ff
6
CMP #opr8i
↕
– –
↕
↕
↕
IMM
A1
ii
2
CMP opr8a
↕
– –
↕
↕
↕
DIR
B1
dd
3
CMP opr16a
↕
– –
↕
↕
↕
EXT
C1
hh ll
4
CMP oprx16,X
↕
– –
↕
↕
↕
IX2
D1
ee ff
4
CMP oprx8,X
Compare Accumulator
with Memory
(A) – (M); (CCR
Updated But Operands
Not Changed)
↕
– –
↕
↕
↕
IX1
E1
ff
3
CMP ,X
↕
– –
↕
↕
↕
IX
F1
3
CMP oprx16,SP
↕
– –
↕
↕
↕
SP2
9ED1
ee ff
5
Table continues on the next page...
Instruction Set Summary
MC9S08PA4 Reference Manual, Rev. 5, 08/2017
216
NXP Semiconductors
Summary of Contents for MC9S08PA4
Page 1: ...MC9S08PA4 Reference Manual Supports MC9S08PA4 Document Number MC9S08PA4RM Rev 5 08 2017 ...
Page 2: ...MC9S08PA4 Reference Manual Rev 5 08 2017 2 NXP Semiconductors ...
Page 22: ...MC9S08PA4 Reference Manual Rev 5 08 2017 22 NXP Semiconductors ...
Page 28: ...System clock distribution MC9S08PA4 Reference Manual Rev 5 08 2017 28 NXP Semiconductors ...
Page 150: ...Port data registers MC9S08PA4 Reference Manual Rev 5 08 2017 150 NXP Semiconductors ...
Page 196: ...Human machine interfaces HMI MC9S08PA4 Reference Manual Rev 5 08 2017 196 NXP Semiconductors ...
Page 224: ...Instruction Set Summary MC9S08PA4 Reference Manual Rev 5 08 2017 224 NXP Semiconductors ...
Page 232: ...Functional Description MC9S08PA4 Reference Manual Rev 5 08 2017 232 NXP Semiconductors ...
Page 258: ...FTM Interrupts MC9S08PA4 Reference Manual Rev 5 08 2017 258 NXP Semiconductors ...
Page 294: ...Functional description MC9S08PA4 Reference Manual Rev 5 08 2017 294 NXP Semiconductors ...
Page 398: ...Resets MC9S08PA4 Reference Manual Rev 5 08 2017 398 NXP Semiconductors ...
Page 400: ...MC9S08PA4 Reference Manual Rev 5 08 2017 400 NXP Semiconductors ...