3 absentry — application entry point, Absentry — application entry point – Motorola HC12 User Manual

Page 165

Advertising
background image

Assembler Directives

ABSENTRY — Application Entry Point

MCUez HC12 Assembler

User’s Manual

MOTOROLA

Assembler Directives

165

8.3 ABSENTRY — Application Entry Point

Syntax:

ABSENTRY

<label>

Description:

This directive specifies the application entry point in a directly
generated absolute file (the option -FA2 ELF/DWARF 2.0
absolute file must be enabled).

Using this directive, the entry point is written in the ELF header
of the generated absolute file. When this file is loaded in the
debugger, the line where the entry point label is defined is
highlighted in the source window.

Example:

If the next example is assembled using the -FA2 option, an
ELF/DWARF 2.0 absolute file is generated.

ABSENTRY entry

ORG $fffe

Reset: DC.W entry

ORG $70

entry: NOP

NOP

main:

NOP

BRA main

Advertising