
M68HC16 Z SERIES
INITIALIZATION AND PROGRAMMING EXAMPLES
MOTOROLA
USER’S MANUAL
E-29
DEC
PAOV_CNT,Z
BNE
PAOV_DONE
;skip print routine if not finished
;counting down from ten
LDX
#STRING_PAOV
JSR
SEND_STRING
;print the message
LDAB
#$0A
STAB
PAOV_CNT,Z
;reload the counter so we can do it again
PAOV_DONE:
BCLR
TFLG2,#$20
;clear the PAOV flag bit
RTI
;all done!
BDM:
BGND
;all other exception vectors point here
;and put the user in background mode