Central Processor Unit (CPU)
MC68HC908GT16 MC68HC908GT8 MC68HC08GT16 Data Sheet, Rev. 5.0
74
Freescale Semiconductor
PULA
PULH
PULX
ROL
opr
ROLA
ROLX
ROL
opr
,X
ROL ,X
ROL
opr
,SP
ROR
opr
RORA
RORX
ROR
opr
,X
ROR ,X
ROR
opr
,SP
RSP
Pull A from Stack
Pull H from Stack
Pull X from Stack
SP
←
(SP + 1); Pull
(
A
)
SP
←
(SP + 1); Pull
(
H
)
SP
←
(SP + 1); Pull
(
X
)
– – – – – – INH
– – – – – – INH
– – – – – – INH
86
8A
88
39
49
59
69
79
9E69
36
46
56
66
76
9E66
9C
2
2
2
4
1
1
4
3
5
4
1
1
4
3
5
1
Rotate Left through Carry
– –
DIR
INH
INH
IX1
IX
SP1
DIR
INH
INH
IX1
IX
SP1
dd
ff
ff
dd
Rotate Right through Carry
– –
ff
ff
Reset Stack Pointer
SP
←
$FF
– – – – – – INH
RTI
Return from Interrupt
SP
←
(SP) + 1; Pull (CCR)
SP
←
(SP) + 1; Pull (A)
SP
←
(SP) + 1; Pull (X)
SP
←
(SP) + 1; Pull (PCH)
SP
←
(SP) + 1; Pull (PCL)
SP
←
SP + 1
;
Pull
(
PCH)
SP
←
SP + 1; Pull (PCL)
INH
80
7
RTS
Return from Subroutine
– – – – – – INH
81
4
SBC #
opr
SBC
opr
SBC
opr
SBC
opr
,X
SBC
opr
,X
SBC ,X
SBC
opr
,SP
SBC
opr
,SP
SEC
SEI
STA
opr
STA
opr
STA
opr
,X
STA
opr
,X
STA ,X
STA
opr
,SP
STA
opr
,SP
STHX
opr
Subtract with Carry
A
←
(A) – (M) – (C)
– –
IMM
DIR
EXT
IX2
IX1
IX
SP1
SP2
A2
B2
C2
D2
E2
F2
9EE2
9ED2
99
9B
B7
C7
D7
E7
F7
9EE7
9ED7
35
ii
dd
hh ll
ee ff
ff
ff
ee ff
2
3
4
4
3
2
4
5
1
2
3
4
4
3
2
4
5
4
Set Carry Bit
Set Interrupt Mask
C
←
1
I
←
1
– – – – – 1 INH
– – 1 – – – INH
Store A in M
M
←
(A)
0 – –
–
DIR
EXT
IX2
IX1
IX
SP1
SP2
dd
hh ll
ee ff
ff
ff
ee ff
dd
Store H:X in M
Enable Interrupts, Stop Processing,
Refer to MCU Documentation
(M:M + 1)
←
(H:X)
0 – –
– DIR
STOP
I
←
0; Stop Processing
– – 0 – – – INH
8E
1
STX
opr
STX
opr
STX
opr
,X
STX
opr
,X
STX ,X
STX
opr
,SP
STX
opr
,SP
SUB #
opr
SUB
opr
SUB
opr
SUB
opr
,X
SUB
opr
,X
SUB ,X
SUB
opr
,SP
SUB
opr
,SP
Store X in M
M
←
(X)
0 – –
–
DIR
EXT
IX2
IX1
IX
SP1
SP2
IMM
DIR
EXT
IX2
IX1
IX
SP1
SP2
BF
CF
DF
EF
FF
9EEF
9EDF
A0
B0
C0
D0
E0
F0
9EE0
9ED0
dd
hh ll
ee ff
ff
ff
ee ff
ii
dd
hh ll
ee ff
ff
3
4
4
3
2
4
5
2
3
4
4
3
2
4
5
Subtract
A
←
(A) – (M)
– –
ff
ee ff
Table 6-1. Instruction Set Summary (Sheet 5 of 6)
Source
Form
Operation
Description
Effect
on CCR
A
M
O
O
C
V H I N Z C
C
b0
b7
b0
b7
C