Assembler Manual
Total Page:16
File Type:pdf, Size:1020Kb
Motorola HC12 Assembler Product Date HC12 Assembler 8/5/03 Table of Contents 3 Table Of Contents Assembler . 15 Highlights. 15 Structure of this Document . 15 Using the Assembler . .17 Assembler Environment. 17 Project Directory. 17 Editor . 17 Writing your Assembly Source File. 17 Assembling your Source File. 18 Linking Your Application . 21 Directly Generating an ABS File . 23 Assembler source file . 23 Assembling and generating the application . 24 Assembler Graphical User Interface . .27 Starting the Assembler . 27 Assembler Main Window . 28 Window Title . 28 Content Area . 29 Tool Bar . 30 Status Bar . 31 Assembler Menu Bar . 31 File Menu . 32 Assembler Menu. 33 View Menu . 33 Editor Settings Dialog Box . 34 Global Editor (Shared by all Tools and Projects). 35 Local Editor (Shared by all Tools) . 36 Editor started with Command Line. 37 Editor started with DDE . 38 CodeWarrior with COM. 39 Modifiers. 39 Save Configuration Dialog Box. 40 Option Settings Dialog Box . 43 Message Settings Dialog Box . 44 Changing the Class associated with a Message . 45 About Box . 46 Specifying the Input File . 46 Use the Command Line in the Tool Bar to Assemble . 47 Use the Entry File | Assemble... 47 © Copyright 1987-2003 Metrowerks 4 Table of Contents Use Drag and Drop. 47 Message/Error Feedback. .47 Use Information from the Assembler Window . 48 Use a User Defined Editor . 48 Environment . 51 The Current Directory. 52 Environment Macros. .52 Global Initialization File (MCUTOOLS.INI) (PC only) . 53 [Installation] Section . 54 [Options] Section . 54 [XXX_Assembler] Section . 54 [Editor] Section . 56 Example . 57 Local Configuration File (usually project.ini) . .57 [Editor] Section . 58 [XXX_Assembler] Section . 59 Example . 63 Paths . 63 Line Continuation . .64 Environment Variable Details. .65 ABSPATH: Absolute file Path . .66 ASMOPTIONS: Default Assembler Options . 67 COPYRIGHT: Copyright Entry in Object File . .68 DEFAULTDIR: Default Current Directory . 69 ENVIRONMENT: Environment File Specification. 70 ERRORFILE: Error File Name Specification . .71 GENPATH: Search Path for Input File . .73 INCLUDETIME: Creation Time in Object File. 74 OBJPATH: Object File Path. 75 SRECORD: S Record Type . .76 TEXTPATH: Text File Path . 77 TMP: Temporary directory . .78 USERNAME: User Name in Object File . 79 Files . 81 Input Files . .81 Source Files . 81 Include File. 81 Output Files. .81 Object Files . ..