English
Language : 

MC68HC708MP16 Datasheet, PDF (100/398 Pages) Freescale Semiconductor, Inc – Microcontrollers
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
5
LOBYTE EQU
6
;
If not SBSW, do RTI
BRCLR SBSW,SBSR, RETURN ; See if wait mode was exited by break.
;
TST
LOBYTE,SP
; If RETURNLO is not zero,
BNE
DOLO
; then just decrement low byte.
DEC
HIBYTE,SP
; Else deal with high byte, too.
DOLO
DEC
LOBYTE,SP
; Point to WAIT opcode.
RETURN PULH
RTI
; Restore H register.
Technical Data
100
System Integration Module (SIM)
MC68HC708MP16 — Rev. 3.1
Freescale Semiconductor