Motorola HC12 User Manual
Page 217

MCUez HC12 Assembler
User’s Manual
MOTOROLA
Operating Procedures
217
User’s Manual — MCUez HC12 Assembler
Section 11. Operating Procedures
11.1 Contents
Working with Absolute Sections . . . . . . . . . . . . . . . . . . . . . . . . . 218
Defining Absolute Sections in the Assembly Source File . . . . . . 218
Linking an Application Containing Absolute Sections . . . . . . . . 219
Working with Relocatable Sections . . . . . . . . . . . . . . . . . . . . . . . . . 221
Defining Relocatable Sections in the Assembly Source File. . . . 221
Linking an Application Containing Relocatable Sections . . . . . . 222
Initializing the Vector Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 224
Initializing the Vector Table in the Linker PRM File . . . . . . . . . 224
Initializing Vector Table in Assembly Source Files
Using a Relocatable Section . . . . . . . . . . . . . . . . . . . . . . . . . . 225
Initializing the Vector Table in the Assembly Source File
Using an Absolute Section . . . . . . . . . . . . . . . . . . . . . . . . . . . 228
Splitting an Application into Different Modules . . . . . . . . . . . . . . . 231
Using Direct Addressing Mode to Access Symbols . . . . . . . . . . . . . 233
Using Direct Addressing Mode to Access
External Symbols . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 233
Using Direct Addressing Mode to Access
Exported Symbols . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 233
Defining Symbols in the Direct Page. . . . . . . . . . . . . . . . . . . . . . 234
Using a Force Operator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 234
Using SHORT Sections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 235
Directly Generating an .ABS File. . . . . . . . . . . . . . . . . . . . . . . . . . . 235
Assembler Source File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 236
Assembling and Generating the Application . . . . . . . . . . . . . . . . 238