Freescale Semiconductor, Inc.
System Integration Module (SIM)
; This code works if the H register has been pushed onto the stack in the break
; service routine software. This code should be executed at the end of the
; break service routine software.
HIBYTE EQU
LOBYTE EQU
5
6
;
If not SBSW, do RTI
BRCLR SBSW,SBSR, RETURN ; See if wait mode or stop mode was exited
; by break.
TST
BNE
DEC
DEC
LOBYTE,SP
DOLO
; If RETURNLO is not zero,
; then just decrement low byte.
; Else deal with high byte, too.
; Point to WAIT/STOP opcode.
; Restore H register.
HIBYTE,SP
LOBYTE,SP
DOLO
RETURN PULH
RTI
Technical Data
MC68HC908AS60 — Rev. 1.0
System Integration Module (SIM)
For More Information On This Product,
Go to: www.freescale.com