English
Language : 

S9S08SL8F1CTJ Datasheet, PDF (103/356 Pages) Freescale Semiconductor, Inc – provides the functional version of the on-chip modules
Chapter 7 Central Processor Unit (S08CPUV3)
7.4.5 BGND Instruction
The BGND instruction is new to the HCS08 compared to the M68HC08. BGND would not be used in
normal user programs because it forces the CPU to stop processing user instructions and enter the active
background mode. The only way to resume execution of the user program is through reset or by a host
debug system issuing a GO, TRACE1, or TAGGO serial command through the background debug
interface.
Software-based breakpoints can be set by replacing an opcode at the desired breakpoint address with the
BGND opcode. When the program reaches this breakpoint address, the CPU is forced to active
background mode rather than continuing the user program.
7.5 HCS08 Instruction Set Summary
Table 7-2 provides a summary of the HCS08 instruction set in all possible addressing modes. The table
shows operand construction, execution time in internal bus clock cycles, and cycle-by-cycle details for
each addressing mode variation of each instruction.
Table 7-2. Instruction Set Summary (Sheet 1 of 9)
Source
Form
Operation
ADC #opr8i
ADC opr8a
ADC opr16a
ADC oprx16,X
ADC oprx8,X
ADC ,X
ADC oprx16,SP
ADC oprx8,SP
ADD #opr8i
ADD opr8a
ADD opr16a
ADD oprx16,X
ADD oprx8,X
ADD ,X
ADD oprx16,SP
ADD oprx8,SP
AIS #opr8i
AIX #opr8i
AND #opr8i
AND opr8a
AND opr16a
AND oprx16,X
AND oprx8,X
AND ,X
AND oprx16,SP
AND oprx8,SP
Add with Carry
A ← (A) + (M) + (C)
Add without Carry
A ← (A) + (M)
Add Immediate Value (Signed) to
Stack Pointer
SP ← (SP) + (M)
Add Immediate Value (Signed) to
Index Register (H:X)
H:X ← (H:X) + (M)
Logical AND
A ← (A) & (M)
Object Code
Cyc-by-Cyc
Details
Affect
on CCR
V11H INZC
IMM
A9 ii
2 pp
DIR
B9 dd
3 rpp
EXT
C9 hh ll 4 prpp
IX2
D9 ee ff 4 prpp
IX1
E9 ff
3 rpp
IX
F9
3 rfp
SP2
9E D9 ee ff 5 pprpp
SP1
9E E9 ff
4 prpp
1 1 –   
IMM
AB ii
2 pp
DIR
BB dd
3 rpp
EXT
CB hh ll 4 prpp
IX2
DB ee ff 4 prpp
IX1
EB ff
3 rpp
IX
FB
3 rfp
SP2
9E DB ee ff 5 pprpp
SP1
9E EB ff
4 prpp
11 –
IMM
A7 ii
2 pp
–11– ––––
IMM
AF ii
2 pp
IMM
A4 ii
2 pp
DIR
B4 dd
3 rpp
EXT
C4 hh ll 4 prpp
IX2
D4 ee ff 4 prpp
IX1
E4 ff
3 rpp
IX
F4
3 rfp
SP2
9E D4 ee ff 5 pprpp
SP1
9E E4 ff
4 prpp
–11– ––––
011– ––
MC9S08EL32 Series and MC9S08SL16 Series Data Sheet, Rev. 3
Freescale Semiconductor
103