Summary of the content on the page No. 1
Need to know more? That’s ez, too.
Technical support for MCUez development tools is available through your regional
Motorola office or by contacting:
Motorola, Inc.
6501 William Cannon Drive West
MD:OE17
Austin, Texas 78735
Phone (800) 521-6274
Fax (602) 437-1858
CRC@CRC.email.sps.mot.com
Motorola reserves the right to make changes without further notice to any products herein. Motorola makes no warranty, representation or guarantee Easy development software
regarding the suitability of its prod
Summary of the content on the page No. 2
Summary of the content on the page No. 3
MCUEZASM12/D Rev. 1 MCUez HC12 Assembler User’s Manual NON-DISCLOSURE AGREEMENT REQUIRED
Summary of the content on the page No. 4
User’s Manual Important Notice to Users While every effort has been made to ensure the accuracy of all information in this document, Motorola assumes no liability to any party for any loss or damage caused by errors or omissions or by statements of any kind in this document, its updates, supplements, or special editions, whether such errors are omissions or statements resulting from negligence, accident, or any other cause. Motorola further assumes no liability arising out of the application or
Summary of the content on the page No. 5
User’s Manual — MCUez HC12 Assembler List of Sections Section 1. General Information . . . . . . . . . . . . . . . . . . . .23 Section 2. Graphical User Interface. . . . . . . . . . . . . . . . .37 Section 3. Environment Variables . . . . . . . . . . . . . . . . . .55 Section 4. Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .71 Section 5. Assembler Options . . . . . . . . . . . . . . . . . . . . .77 Section 6. Sections . . . . . . . . . . . . . . . . . . . . . . . . . . .
Summary of the content on the page No. 6
List of Sections User’s Manual MCUez HC12 Assembler 6 List of Sections MOTOROLA
Summary of the content on the page No. 7
User’s Manual — MCUez HC12 Assembler Table of Contents Section 1. General Information 1.1 Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 1.2 Introduction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 1.3 Structure of This Manual . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 1.4 Getting Started . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Summary of the content on the page No. 8
Table of Contents 2.4.8 Specifying the Input File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52 2.4.8.1 Using the Editable Combo Box in the Toolbar . . . . . . . . . . . . . 53 2.4.8.2 Using the Entry File | Assembly ... . . . . . . . . . . . . . . . . . . . . . . 53 2.4.8.3 Using Drag and Drop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53 2.5 Error Feedback . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53 Section 3.
Summary of the content on the page No. 9
Table of Contents 4.4.4 Listing Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74 4.4.5 Debug Listing Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74 4.4.6 Error Listing Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74 Section 5. Assembler Options 5.1 Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77 5.2 Introduction. . . . . . . .
Summary of the content on the page No. 10
Table of Contents 6.3.1 Code Sections. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108 6.3.2 Constant Data Sections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108 6.3.3 Data Sections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109 6.4 Section Types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109 6.4.1 Absolute Sections. . . . . . . . . . . . . . . . . . . . . . . . .
Summary of the content on the page No. 11
Table of Contents 7.4.3.11 Indexed, Pre-Increment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139 7.4.3.12 Indexed, Post-Decrement . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140 7.4.3.13 Indexed, Post-Increment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 141 7.4.3.14 Indexed, Accumulator Offset . . . . . . . . . . . . . . . . . . . . . . . . . 142 7.4.3.15 Indexed-Indirect, D Accumulator Offset . . . . . . . . . . . . . . . . 143 7.4.3.16 Indexed PC ver
Summary of the content on the page No. 12
Table of Contents Section 8. Assembler Directives 8.1 Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 159 8.2 Introduction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161 8.2.1 Section Definition Directives. . . . . . . . . . . . . . . . . . . . . . . . . . . . 161 8.2.2 Constant Definition Directives. . . . . . . . . . . . . . . . . . . . . . . . . . . 161 8.2.3 Data Allocation Directives. . . . . .
Summary of the content on the page No. 13
Table of Contents 8.20 LIST — Enable Listing. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 186 8.21 LLEN — Set Line Length. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 187 8.22 LONGEVEN — Forcing Longword Alignment. . . . . . . . . . . . . . . . 188 8.23 MACRO — Begin Macro Definition . . . . . . . . . . . . . . . . . . . . . . . . 189 8.24 MEXIT — Terminate Macro Expansion . . . . . . . . . . . . . . . . . . . . . 190 8.25 MLIST — List Macro Expansions
Summary of the content on the page No. 14
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 . . . . . . . . . . . .
Summary of the content on the page No. 15
Table of Contents 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 . . . . . .
Summary of the content on the page No. 16
Table of Contents 12.3.16 A2306: Macro not Closed at End of Source . . . . . . . . . . . . . . . . 260 12.3.17 A2307: Macro Redefinition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 261 12.3.18 A2308: Filename Expected . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 262 12.3.19 A2309: File not Found . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 262 12.3.20 A2310: Illegal Size Character . . . . . . . . . . . . . . . . . . . . . . . . . . . 263 12.3.21 A2
Summary of the content on the page No. 17
Table of Contents 12.3.52 A12010: Register Expected . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 291 12.3.53 A12011: Size Specification Expected . . . . . . . . . . . . . . . . . . . . . 292 12.3.54 A12102: Page Value Expected . . . . . . . . . . . . . . . . . . . . . . . . . . 293 12.3.55 A12103: Operand not Allowed . . . . . . . . . . . . . . . . . . . . . . . . . . 294 12.3.56 A12104: Immediate Value Expected . . . . . . . . . . . . . . . . . . . . . . 295 12.3.57 A12105: Immedia
Summary of the content on the page No. 18
Table of Contents Appendix B. MCUasm Compatibility B.1 Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 315 B.2 Introduction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 315 B.3 Labels . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 315 B.4 Set Directive . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 316 B.5 Obsolete
Summary of the content on the page No. 19
User’s Manual — MCUez HC12 Assembler List of Figures Figure Title Page 1-1 MCUez Shell. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 1-2 Environment Configuration Dialog Box. . . . . . . . . . . . . . . . . . . . . . . 25 1-3 Working Project Directory Dialog Box . . . . . . . . . . . . . . . . . . . . . . . 26 1-4 New Configuration Dialog Box . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 1-5 Assembler Window. . . . . . . . . . . . . . .
Summary of the content on the page No. 20
List of Figures Figure Title Page 7-1 Relocatable Symbols Program Example. . . . . . . . . . . . . . . . . . . . . . 146 7-2 Set or EQU Directive Program Example . . . . . . . . . . . . . . . . . . . . . 146 7-3 External Symbol Program Example . . . . . . . . . . . . . . . . . . . . . . . . . 146 7-4 Undefined Symbol Example. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 147 11-1 Starting the MCUez Assembler . . . . . . . . . . . . . . . . . . . . . . . . . . . . 238 11-2 Options S