Download M16C Assembler Manual

Transcript
Programming Style
4
4.1 Hardware Definition
;*********************** Setting of fixed vector**************************************
;
Set jump addresses sequentially
.SECTION F_VECT,ROMDATA
beginning with the least significant
address of the fixed vector.
.ORG
FIXED_VECT_TOP
.LWORD
dummy
; Undefined instruction interrupt vector
.LWORD
dummy
; Overflow (INTO instruction) interrupt vector
.LWORD
dummy
; BRK instruction interrupt vector
.LWORD
dummy
; Address match interrupt vector
.LWORD
dummy
; Single-step interrupt vector (normally inhibited from use)
.LWORD
dummy
; Watchdog timer interrupt vector
.LWORD
dummy
; DBC interrupt vector (normally inhibited from use)
.LWORD
dummy
; NMI interrupt vector
.LWORD
START
; Sets reset vector.
;
Set the program start address for the
.END
reset vector. Immediately after powerSet jump addresses for unused interrupts in
dummy processing (REIT instruction only) to
prevent the program from running out of control
when an unused interrupt is requested.
Figure 4.1.7 Description example 1 for initial setting
135
on or after a reset is deactivated, the
program starts from the address written
in this vector.