Using an absolute section – Motorola HC12 User Manual

Page 228

Advertising
background image

User’s Manual

MCUez HC12 Assembler

228

Operating Procedures

MOTOROLA

Operating Procedures

NOTE:

The statement

Vector = READ_ONLY 0xFFF2 TO 0xFFFF

defines the

memory range for the vector table.
The statement

VectorTable INTO Vector

specifies that the vector table

should be loaded in the read-only memory area vector. This means the constant

IRQInt

will be allocated at address 0xFFF2, the constant

XIRQInt

will be

allocated at address

0xFFF4

, and so on. The constant

ResetInt

will be

allocated at address

0xFFFE

. The statement

ENTRIES * END

switches

smart linking OFF. If this statement is missing in the PRM file, the vector table
will not be linked with the application, because it is never referenced. The smart
linker only links the referenced objects in the absolute file.

11.4.3 Initializing the Vector Table in the Assembly Source File Using an Absolute Section

Initializing the vector table in the assembly source file requires that all entries
in the table are initialized. Interrupts that are not used must be associated with
a standard handler.

The labels or functions that are inserted in the vector table must be implemented
in the assembly source file or an external reference must be available for them.
The vector table can be defined in an assembly source file in an additional
section containing constant variables.

Advertising