English
Language : 

MC9S08RG60 Datasheet, PDF (90/232 Pages) Motorola, Inc – Microcontrollers
Central Processor Unit (CPU)
Source
Form
Table 6-1 HCS08 Instruction Set Summary (Sheet 6 of 6)
Operation
Description
Effect
on CCR
VH I NZC
STA opr8a
STA opr16a
STA oprx16,X
STA oprx8,X
STA ,X
STA oprx16,SP
STA oprx8,SP
STHX opr8a
STHX opr16a
STHX oprx8,SP
STOP
STX opr8a
STX opr16a
STX oprx16,X
STX oprx8,X
STX ,X
STX oprx16,SP
STX oprx8,SP
SUB #opr8i
SUB opr8a
SUB opr16a
SUB oprx16,X
SUB oprx8,X
SUB ,X
SUB oprx16,SP
SUB oprx8,SP
SWI
TAP
TAX
TPA
TST opr8a
TSTA
TSTX
TST oprx8,X
TST ,X
TST oprx8,SP
TSX
TXA
TXS
WAIT
Store Accumulator in
Memory
M ← (A)
Store H:X (Index Reg.)
Enable Interrupts:
Stop Processing
Refer to MCU
Documentation
Store X (Low 8 Bits of
Index Register)
in Memory
(M:M + $0001) ← (H:X)
I bit ← 0; Stop Processing
M ← (X)
Subtract
A ← (A) – (M)
Software Interrupt
Transfer Accumulator to
CCR
Transfer Accumulator to
X (Index Register Low)
Transfer CCR to
Accumulator
Test for Negative or Zero
Transfer SP to Index Reg.
Transfer X (Index Reg.
Low) to Accumulator
Transfer Index Reg. to SP
Enable Interrupts; Wait
for Interrupt
PC ← (PC) + $0001
Push (PCL); SP ← (SP) – $0001
Push (PCH); SP ← (SP) – $0001
Push (X); SP ← (SP) – $0001
Push (A); SP ← (SP) – $0001
Push (CCR); SP ← (SP) – $0001
I ← 1;
PCH ← Interrupt Vector High Byte
PCL ← Interrupt Vector Low Byte
CCR ← (A)
X ← (A)
A ← (CCR)
(M) – $00
(A) – $00
(X) – $00
(M) – $00
(M) – $00
(M) – $00
H:X ← (SP) + $0001
A ← (X)
SP ← (H:X) – $0001
I bit ← 0; Halt CPU
NOTES:
1. Bus clock frequency is one-half of the CPU clock frequency.
0––
0––
DIR
EXT
IX2
– IX1
IX
SP2
SP1
DIR
– EXT
SP1
– – 0 – – – INH
0––
––
DIR
EXT
IX2
– IX1
IX
SP2
SP1
IMM
DIR
EXT
IX2
IX1
IX
SP2
SP1
– – 1 – – – INH
INH
– – – – – – INH
– – – – – – INH
0––
DIR
INH
–
INH
IX1
IX
SP1
– – – – – – INH
– – – – – – INH
– – – – – – INH
– – 0 – – – INH
B7 dd
3
C7 hh ll 4
D7 ee ff 4
E7 ff
3
F7
2
9ED7 ee ff 5
9EE7 ff
4
35 dd
4
96 hh ll 5
9EFF ff
5
8E
2+
BF dd
3
CF hh ll 4
DF ee ff 4
EF ff
3
FF
2
9EDF ee ff 5
9EEF ff
4
A0 ii
2
B0 dd
3
C0 hh ll 4
D0 ee ff 4
E0 ff
3
F0
3
9ED0 ee ff 5
9EE0 ff
4
83
11
84
1
97
1
85
1
3D dd
4
4D
1
5D
1
6D ff
4
7D
3
9E6D ff
5
95
2
9F
1
94
2
8F
2+
90
MC9S08RC/RD/RE/RG
Freescale Semiconductor