beautypg.com

Motorola HC12 User Manual

Page 14

background image

User’s Manual

MCUez HC12 Assembler

14

Table of Contents

MOTOROLA

Table of Contents

9.6

Macro Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 205

9.7

Labels Inside Macros . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 206

9.8

Macro Expansion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 207

9.9

Nested Macros . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 208

Section 10. Assembler Listing File

10.1

Content . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 209

10.2

Introduction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 209

10.3

Page Header . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 210

10.4

Source Listing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 210

10.4.1

Absolute (Abs.) Listing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 211

10.4.2

Relative (Rel.) Listing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 212

10.4.3

Location (Loc.) Listing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 213

10.4.4

Object (Obj.) Code Listing. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 214

10.4.5

Source Line Listing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 215

Section 11. Operating Procedures

11.1

Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 217

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