Contents
Main
MCUez HC12 Assembler User's Manual MCUEZASM12/D Rev. 1
Easy development software from the company that knows MCU hardware best
Need to know more? Thats ez, too.
Page
Page
NON-DISCLOSURE AGREEMENT REQUIRED
Users Manual
List of Sections
Page
Table of Contents
Section 1. General Information
Section 2. Graphical User Interface
Section 3. Environment Variables
Section 4. Files
Section 5. Assembler Options
Section 6. Sections
Section 7. Assembler Syntax
Page
Section 8. Assembler Directives
Section 9. Macros
Section 10. Assembler Listing File
Section 11. Operating Procedures
Section 12. Assembler Messages
Page
Appendix A. MASM Compatibility
Page
List of Figures
List of Figures
List of Tables
Page
Section 1. General Information
1.1 Contents
1.2 Introduction
1.3 Structure of This Manual
1.4 Getting Started
Page
Page
Page
Page
Page
Page
Page
Page
Page
Page
Page
Page
Section 2. Graphical User Interface
2.1 Contents
2.2 Introduction
2.3 Starting the Motorola Assembler
2.4 Assembler Graphical Interface
Page
Page
Page
Page
2.4.6.1 Editor Settings Dialog
Page
Page
Page
%l
2.4.6.2 Save Configuration Dialog
2.4.6.3 Assembler Menu
2.4.7.1 Option Settings Dialog Box
Page
2.4.8.1 Using the Editable Combo Box in the Toolbar
2.4.8.2 Using the Entry File | Assembly ...
2.4.8.3 Using Drag and Drop
2.5 Error Feedback
Page
Section 3. Environment Variables
3.1 Contents
3.2 Introduction
3.3 Paths
3.4 Line Continuation
3.5 Environment Variables Description
Page
*
Page
Page
Page
Page
Page
Page
Page
Page
Page
Page
Section 4. Files
Files
4.4 Output Files
Page
Files
Figure 4-1. Assembler Structural Diagram
Page
Section 5. Assembler Options
5.1 Contents
5.2 Introduction
Lc W1
LCW1
LC1
5.3 ASMOPTIONS
5.4 Assembler Options
Table 5-3. Assembler Option Details
Page
Page
Page
Page
Page
Page
Page
Page
Page
Page
Page
Page
Page
Page
Page
Page
Page
Page
Page
Page
Page
Page
Page
Page
Page
Page
Section 6. Sections
6.1 Contents
6.2 Introduction
6.3 Section Attributes
6.4 Section Types
Page
Page
Page
Page
6.4.3.1 Modularity
6.4.3.2 Multiple Developers
6.4.3.3 Early Development
6.4.3.4 Enhanced Portability
6.4.3.5 Tracking Overlaps
6.4.3.6 Reusability
Page
Section 7. Assembler Syntax
7.1 Contents
Page
7.2 Introduction
7.3 Comment Line
7.4 Source Line
-MCUasm
.W
.B
7.4.2.1 Instructions
Table 7-1. Executable Instructions (Sheet 2 of 8)
Table 7-1. Executable Instructions (Sheet 3 of 8)
Table 7-1. Executable Instructions (Sheet 4 of 8)
Table 7-1. Executable Instructions (Sheet 5 of 8)
Table 7-1. Executable Instructions (Sheet 6 of 8)
Table 7-1. Executable Instructions (Sheet 7 of 8)
7.4.2.2 Directives
7.4.2.3 Macro Name
Page
7.4.3.1 Inherent
7.4.3.2 Immediate
7.4.3.3 Direct
7.4.3.4 Extended
7.4.3.5 Relative
Page
7.4.3.6 Indexed, 5-Bit Offset
7.4.3.7 Indexed, 9-Bit Offset
7.4.3.8 Indexed, 16-Bit Offset
7.4.3.9 Indexed, Indirect 16-Bit Offset
7.4.3.10 Indexed, Pre-Decrement
7.4.3.11 Indexed, Pre-Increment
7.4.3.12 Indexed, Post-Decrement
7.4.3.13 Indexed, Post-Increment
7.4.3.14 Indexed, Accumulator Offset
7.4.3.15 Indexed-Indirect, D Accumulator Offset
7.4.3.16 Indexed PC versus Indexed PC Relative Addressing Mode
7.5 Symbols
Page
7.6 Constants
Page
7.7 Operators
Page
Page
Page
Page
Page
7.8 Expressions
Page
Page
7.9 Translation Limits
Section 8. Assembler Directives
8.1 Contents
Page
8.2 Introduction
Page
Page
Page
8.3 ABSENTRY Application Entry Point
8.4 ALIGN Align Location Counter
8.5 BASE Set Number Base
8.6 CLIST List Conditional Assembly
Example: Listing le with CLIST ON: When assembling the code:
The corresponding listing le is:
8.7 DC Define Constant
Page
8.8 DCB Define Constant Block
8.9 DS Define Space
8.10 ELSE Conditional Assembly
8.11 END End Assembly
8.12 ENDIF End Conditional Assembly
8.13 ENDM End Macro Definition
8.14 EQU Equate Symbol Value
8.15 EVEN Force Word Alignment
8.16 FAIL Generate Error Message
Page
Example: The following code segment:
Generates this error message:
8.17 IF Conditional Assembly
8.18 IFCC Conditional Assembly
Page
8.19 INCLUDE Include Text from Another File
8.20 LIST Enable Listing
8.21 LLEN Set Line Length
8.22 LONGEVEN Forcing Longword Alignment
8.23 MACRO Begin Macro Definition
8.24 MEXIT Terminate Macro Expansion
8.25 MLIST List Macro Expansions
8.26 NOLIST Disable Listing
8.27 NOPAGE Disable Paging
8.28 ORG Set Location Counter
8.29 OFFSET Create Absolute Symbols
Page
8.30 PAGE Insert Page Break
Generates this listing le:
8.31 PLEN Set Page Length
8.32 SECTION Declare Relocatable Section
Page
8.33 SET Set Symbol Value
Page
8.37 XDEF External Symbol Definition
8.38 XREF External Symbol Reference
Section 9. Macros
9.1 Contents
9.2 Introduction
9.3 Macro Overview
Macros
9.4 Defining a Macro
MLIST
MEXIT
ENDM
9.5 Calling Macros
9.6 Macro Parameters
Macros
9.7 Labels Inside Macros
9.8 Macro Expansion
Page
Section 10. Assembler Listing File
10.1 Content
10.2 Introduction
10.3 Page Header
10.4 Source Listing
Page
Page
Page
Page
Page
Page
Section 11. Operating Procedures
11.1 Contents
11.2 Introduction
Page
Page
11.3 Working with Relocatable Sections
Page
Page
11.4 Initializing the Vector Table
XIRQFunc,SWIFunc,
ResetFunc
0xFFF4
XIRQFunc
VECTOR ADDRESS 0xFFF4 XIRQFunc
Page
VectorTable
XIRQInt
DummyFunc
COPResetInt
XIRQFunc
Page
Page
Page
11.5 Splitting an Application into Different Modules
Page
11.6 Using Direct Addressing Mode to Access Symbols
Page
11.7 Directly Generating an .abs File
Page
Page
Page
Page
Page
Page
Page
Section 12. Assembler Messages
12.1 Contents
Page
12.2 Introduction
Page
Page
Page
Page
Page
Page
Page
Page
Page
Page
Page
Page
Page
Page
Page
Page
Page
Page
Page
Page
Page
Page
Page
Page
Page
Page
Page
Page
Page
Page
Page
Page
Page
Page
Page
Page
Page
Page
Page
Page
Page
Page
Page
Page
Page
Page
Page
Page
Page
Page
Page
Page
Page
Page
Page
Page
Page
Example for BRCLR instruction:
Tip: If a BRSET or BRCLR has been used, replace the BRCLR instruction with this code sequence:
Page
Page
For increment and branch:
For test and branch:
Example:
Page
Page
Page
Page
Appendix A. MASM Compatibility
MASM Compatibility
A.5 Operators
A.6 Directives
Table A-2 lists directives supported by MCUez for compatibility with MASM. Table A-2. Directives
Page
Appendix B. MCUasm Compatibility
MCUasm Compatibility B.4 Set Directive
B.5 Obsolete Directives
Index
Page
Page
Page
Page
Page
Page
Page
Page
Page
Page
MCUez HC05/HC08 Debugger User's Manual MCUEZDBG0508/D Rev. 1
Easy development software from the company that knows MCU hardware best
Need to know more? Thats ez, too.