MCUez HC12 Assembler User’s Manual
MOTOROLA Operating Procedures 217
User’s Manual — MCUez HC12 Assembler
Section 11. Operating Procedures11.1 Contents
11.2 Introduction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 218
11.2.1 Working with Absolute Sections. . . . . . . . . . . . . . . . . . . . . . . . . 218
11.2.2 Defining Absolute Sections in the Assembly Source File. . . . . . 218
11.2.3 Linking an Application Containing Absolute Sections . . . . . . . . 219
11.3 Working with Relocatable Sections . . . . . . . . . . . . . . . . . . . . . . . . . 221
11.3.1 Defining Relocatable Sections in the Assembly Source File. . . . 221
11.3.2 Linking an Application Containing Relocatable Sections. . . . . . 222
11.4 Initializing the Vector Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 224
11.4.1 Initializing the Vector Table in the Linker PRM File . . . . . . . . . 224
11.4.2 Initializing Vector Table in Assembly Source Files
Using a Relocatable Section . . . . . . . . . . . . . . . . . . . . . . . . . . 225
11.4.3 Initializing the Vector Table in the Assembly Source File
Using an Absolute Section . . . . . . . . . . . . . . . . . . . . . . . . . . . 228
11.5 Splitting an Application into Different Modules . . . . . . . . . . . . . . . 231
11.6 Using Direct Addressing Mode to Access Symbols . . . . . . . . . . . . . 233
11.6.1 Using Direct Addressing Mode to Access
External Symbols . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 233
11.6.2 Using Direct Addressing Mode to Access
Exported Symbols. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 233
11.6.3 Defining Symbols in the Direct Page. . . . . . . . . . . . . . . . . . . . . . 234
11.6.4 Using a Force Operator. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 234
11.6.5 Using SHORT Sections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 235
11.7 Directly Generating an .ABS File . . . . . . . . . . . . . . . . . . . . . . . . . . . 235
11.7.1 Assembler Source File. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 236
11.7.2 Assembling and Generating the Application. . . . . . . . . . . . . . . . 238