Instruction Set Summary - NXP Semiconductors MC9S08SU16 Reference Manual

Table of Contents

Advertisement

Instruction Set Summary

1. Store the contents of PCL, PCH, X, A, and CCR on the stack, in that order.
2. Set the I bit in the CCR.
3. Fetch the high-order half of the interrupt vector.
4. Fetch the low-order half of the interrupt vector.
5. Delay for one free bus cycle.
Fetch three bytes of program information starting at the address indicated by the interrupt
vector to fill the instruction queue in preparation for execution of the first instruction in
the interrupt service routine.
After the CCR contents are pushed onto the stack, the I bit in the CCR is set to prevent
other interrupts while in the interrupt service routine. Although it is possible to clear the I
bit with an instruction in the interrupt service routine, this would allow nesting of
interrupts (which is not recommended because it leads to programs that are difficult to
debug and maintain).
For compatibility with the earlier M68HC05 MCUs, the high-order half of the H:X index
register pair (H) is not saved on the stack as part of the interrupt sequence. The user must
use a PSHH instruction at the beginning of the service routine to save H and then use a
PULH instruction just before the RTI that ends the interrupt service routine. It is not
necessary to save H if you are certain that the interrupt service routine does not use any
instructions or auto-increment addressing modes that might change the value of H.
The software interrupt (SWI) instruction is like a hardware interrupt except that it is not
masked by the global I bit in the CCR and it is associated with an instruction opcode
within the program so it is not asynchronous to program execution.
10.7 Instruction Set Summary
Source Form
Operation
ADC #opr8i
ADC opr8a
ADC opr16a
ADC oprx16,X
Add with Carry
ADC oprx8,X
ADC ,X
ADC oprx16,SP
ADC oprx8,SP
142
Table 10-3. Instruction Set Summary
Description
A ← (A) + (M) + (C)
Table continues on the next page...
MC9S08SU16 Reference Manual, Rev. 5, 4/2017
Effect on CCR
Address
V H
I
N Z C
Mode
IMM
DIR
EXT
IX2
IX1
IX
SP2
SP1
A9
ii
2
B9
dd
3
C9
hh ll
4
D9
ee ff
4
E9
ff
3
F9
3
9ED9
ee ff
5
9EE9
ff
4
NXP Semiconductors

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mc9s08su16vfkMc9s08su8vfk

Table of Contents