Manuel D’UtilisationTable des matièresList of Sections5Table of Contents7List of Figures19List of Tables21Section 1. General Information231.1 Contents231.2 Introduction231.3 Structure of This Manual241.4 Getting Started241.4.1 Creating a New Project251.4.2 Creating an Assembly Source File281.4.3 Assembling a Source File291.4.4 Linking an Application33Section 2. Graphical User Interface372.1 Contents372.2 Introduction372.3 Starting the Motorola Assembler382.4 Assembler Graphical Interface392.4.1 Window Title392.4.2 Content Area402.4.3 Assembler Toolbar412.4.4 Status Bar422.4.5 Assembler Menu Bar422.4.6 File Menu422.4.6.1 Editor Settings Dialog442.4.6.2 Save Configuration Dialog492.4.6.3 Assembler Menu502.4.7 View Menu502.4.7.1 Option Settings Dialog Box512.4.8 Specifying the Input File522.4.8.1 Using the Editable Combo Box in the Toolbar532.4.8.2 Using the Entry File | Assembly ...532.4.8.3 Using Drag and Drop532.5 Error Feedback53Section 3. Environment Variables553.1 Contents553.2 Introduction563.3 Paths563.4 Line Continuation573.5 Environment Variables Description583.5.1 ASMOPTIONS593.5.2 GENPATH603.5.3 ABSPATH613.5.4 OBJPATH623.5.5 TEXTPATH633.5.6 SRECORD643.5.7 ERRORFILE653.5.8 COPYRIGHT: Copyright Entry in Object File673.5.9 INCLUDETIME: Create Time in Object File683.5.10 USERNAME: User Name in Object File69Section 4. Files714.1 Contents714.2 Introduction714.3 Input Files714.3.1 Source Files724.3.2 Include Files724.4 Output Files724.4.1 Object Files724.4.2 Absolute Files734.4.3 Motorola S Files734.4.4 Listing Files744.4.5 Debug Listing Files744.4.6 Error Listing Files74Section 5. Assembler Options775.1 Contents775.2 Introduction785.3 ASMOPTIONS785.4 Assembler Options795.4.1 -CI815.4.2 -Env825.4.3 -F2 -FA2835.4.4 -H845.4.5 -L855.4.6 -Lc875.4.7 -Ld895.4.8 -Le915.4.9 -Li935.4.10 -Ms -Mb945.4.11 -MCUasm955.4.12 -N965.4.13 -V975.4.14 -W1985.4.15 -W2995.4.16 -WmsgNe1005.4.17 -WmsgNi1015.4.18 -WmsgNw1025.4.19 -WmsgFbv -WmsgFbm1035.4.20 -WmsgFiv -WmsgFim105Section 6. Sections1076.1 Contents1076.2 Introduction1076.3 Section Attributes1086.3.1 Code Sections1086.3.2 Constant Data Sections1086.3.3 Data Sections1096.4 Section Types1096.4.1 Absolute Sections1096.4.2 Relocatable Sections1116.4.3 Relocatable versus Absolute Section1146.4.3.1 Modularity1146.4.3.2 Multiple Developers1146.4.3.3 Early Development1156.4.3.4 Enhanced Portability1156.4.3.5 Tracking Overlaps1156.4.3.6 Reusability115Section 7. Assembler Syntax1177.1 Contents1177.2 Introduction1197.3 Comment Line1197.4 Source Line1197.4.1 Label Field1207.4.2 Operation Field1207.4.2.1 Instructions1217.4.2.2 Directives1287.4.2.3 Macro Name1287.4.3 Operand Fields1297.4.3.1 Inherent1307.4.3.2 Immediate1307.4.3.3 Direct1317.4.3.4 Extended1327.4.3.5 Relative1327.4.3.6 Indexed, 5-Bit Offset1347.4.3.7 Indexed, 9-Bit Offset1357.4.3.8 Indexed, 16-Bit Offset1367.4.3.9 Indexed, Indirect 16-Bit Offset1377.4.3.10 Indexed, Pre-Decrement1387.4.3.11 Indexed, Pre-Increment1397.4.3.12 Indexed, Post-Decrement1407.4.3.13 Indexed, Post-Increment1417.4.3.14 Indexed, Accumulator Offset1427.4.3.15 Indexed-Indirect, D Accumulator Offset1437.4.3.16 Indexed PC versus Indexed PC Relative Addressing Mode1447.4.4 Comment Field1457.5 Symbols1457.5.1 User-Defined Symbols1457.5.2 External Symbols1467.5.3 Undefined Symbols1477.5.4 Reserved Symbols1477.6 Constants1477.6.1 Integer Constants1487.6.2 String Constants1487.6.3 Floating-Point Constants1487.7 Operators1497.7.1 Addition and Subtraction Operators (Binary)1497.7.2 Multiplication, Division, and Modulo Operators (Binary)1497.7.3 Sign Operators (Unary)1507.7.4 Shift Operators (Binary)1507.7.5 Bitwise Operators (Binary)1517.7.6 Bitwise Operators (Unary)1517.7.7 Logical Operators (Unary)1527.7.8 Relational Operators (Binary)1527.7.9 Memory PAGE Operator (Unary)1537.7.10 Force Operator (Unary)1537.8 Expressions1557.8.1 Absolute Expressions1567.8.2 Simple Relocatable Expression1577.9 Translation Limits158Section 8. Assembler Directives1598.1 Contents1598.2 Introduction1618.2.1 Section Definition Directives1618.2.2 Constant Definition Directives1618.2.3 Data Allocation Directives1618.2.4 Symbol Linkage Directives1628.2.5 Assembly Control Directives1628.2.6 Listing File Control Directives1638.2.7 Macro Control Directives1638.2.8 Conditional Assembly Directives1648.3 ABSENTRY — Application Entry Point1658.4 ALIGN — Align Location Counter1668.5 BASE — Set Number Base1678.6 CLIST — List Conditional Assembly1688.7 DC — Define Constant1708.8 DCB — Define Constant Block1728.9 DS — Define Space1738.10 ELSE — Conditional Assembly1748.11 END — End Assembly1758.12 ENDIF — End Conditional Assembly1768.13 ENDM — End Macro Definition1768.14 EQU — Equate Symbol Value1778.15 EVEN — Force Word Alignment1788.16 FAIL — Generate Error Message1798.17 IF — Conditional Assembly1828.18 IFCC — Conditional Assembly1838.19 INCLUDE — Include Text from Another File1858.20 LIST — Enable Listing1868.21 LLEN — Set Line Length1878.22 LONGEVEN — Forcing Longword Alignment1888.23 MACRO — Begin Macro Definition1898.24 MEXIT — Terminate Macro Expansion1908.25 MLIST — List Macro Expansions1918.26 NOLIST — Disable Listing1928.27 NOPAGE — Disable Paging1938.28 ORG — Set Location Counter1938.29 OFFSET — Create Absolute Symbols1948.30 PAGE — Insert Page Break1968.31 PLEN — Set Page Length1978.32 SECTION — Declare Relocatable Section1978.33 SET — Set Symbol Value1998.34 SPC — Insert Blank Lines2008.35 TABS — Set Tab Length2008.36 TITLE — Provide Listing Title2008.37 XDEF — External Symbol Definition2018.38 XREF — External Symbol Reference202Section 9. Macros2039.1 Contents2039.2 Introduction2039.3 Macro Overview2039.4 Defining a Macro2049.5 Calling Macros2059.6 Macro Parameters2059.7 Labels Inside Macros2069.8 Macro Expansion2079.9 Nested Macros208Section 10. Assembler Listing File20910.1 Content20910.2 Introduction20910.3 Page Header21010.4 Source Listing21010.4.1 Absolute (Abs.) Listing21110.4.2 Relative (Rel.) Listing21210.4.3 Location (Loc.) Listing21310.4.4 Object (Obj.) Code Listing21410.4.5 Source Line Listing215Section 11. Operating Procedures21711.1 Contents21711.2 Introduction21811.2.1 Working with Absolute Sections21811.2.2 Defining Absolute Sections in the Assembly Source File21811.2.3 Linking an Application Containing Absolute Sections21911.3 Working with Relocatable Sections22111.3.1 Defining Relocatable Sections in the Assembly Source File22111.3.2 Linking an Application Containing Relocatable Sections22211.4 Initializing the Vector Table22411.4.1 Initializing the Vector Table in the Linker PRM File22411.4.2 Initializing Vector Table in Assembly Source Files Using a Relocatable Section22511.4.3 Initializing the Vector Table in the Assembly Source File Using an Absolute Section22811.5 Splitting an Application into Different Modules23111.6 Using Direct Addressing Mode to Access Symbols23311.6.1 Using Direct Addressing Mode to Access External Symbols23311.6.2 Using Direct Addressing Mode to Access Exported Symbols23311.6.3 Defining Symbols in the Direct Page23411.6.4 Using a Force Operator23411.6.5 Using SHORT Sections23511.7 Directly Generating an .ABS File23511.7.1 Assembler Source File23611.7.2 Assembling and Generating the Application238Section 12. Assembler Messages24312.1 Contents24312.2 Introduction24512.2.1 Warning24512.2.2 Error24512.2.3 Fatal24612.3 Message Codes24612.3.1 A1000: Conditional Directive not Closed24712.3.2 A1001: Conditional Else not Allowed Here24812.3.3 A1051: Zero Division in Expression24912.3.4 A1052: Right Parenthesis Expected24912.3.5 A1053: Left Parenthesis Expected25012.3.6 A1054: References on Non-Absolute Objects Are not Allowed When Options -FA1 or -FA2 Are En...25112.3.7 A1101: Illegal Label: Label is Reserved25212.3.8 A1103: Illegal Redefinition of Label25312.3.9 A1104: Undeclared User-Defined Symbol <symbolName>25412.3.10 A1201: Label <labelName> Referenced in Directive ABSENTRY is not Defined in Code Segment25512.3.11 A2301: Label is Missing25612.3.12 A2302: Macro Name is Missing25612.3.13 A2303: ENDM is Illegal25712.3.14 A2304: Macro Definition Within Definition25812.3.15 A2305: Illegal Redefinition of Instruction or Directive Name25912.3.16 A2306: Macro not Closed at End of Source26012.3.17 A2307: Macro Redefinition26112.3.18 A2308: Filename Expected26212.3.19 A2309: File not Found26212.3.20 A2310: Illegal Size Character26312.3.21 A2311: Symbol Name Expected26412.3.22 A2312: String Expected26412.3.23 A2313: Nesting of Include Files Exceeds 5026512.3.24 A2314: Expression Must Be Absolute26512.3.25 A2316: Section Name Required26612.3.26 A2317: Illegal Redefinition of Section Name26712.3.27 A2318: Section not Declared26812.3.28 A2320: Value too Small26912.3.29 A2321: Value too Big27012.3.30 A2323: Label is Ignored27112.3.31 A2324: Illegal Base (2, 8, 10, 16)27212.3.32 A2325: Comma or Line End Expected27312.3.33 A2326: Label is Redefined27412.3.34 A2327: ON or OFF Expected27512.3.35 A2328: Value is Truncated27512.3.36 A2329: FAIL Found27612.3.37 A2330: String is not Allowed27712.3.38 A2332: FAIL Found27812.3.39 A2333: Forward Reference not Allowed27912.3.40 A2334: Only Labels Defined in the Current Assembly Unit Can Be Referenced in an EQU Expre...28012.3.41 A2335: Exported Absolute SET Label is not Supported28112.3.42 A2336: Value too Big28212.3.43 A2338: <Message String>28312.3.44 A2341: Relocatable Section not Allowed: Absolute File is Currently Directly Generated28412.3.45 A12001: Illegal Addressing Mode28512.3.46 A12002: Complex Relocatable Expression not Supported28612.3.47 A12003: Value is Truncated to One Byte28712.3.48 A12005: Value Must Be Between 1 and 828812.3.49 A12007: Comma Expected28812.3.50 A12008: Relative Branch with Illegal Target28912.3.51 A12009: Illegal Expression29012.3.52 A12010: Register Expected29112.3.53 A12011: Size Specification Expected29212.3.54 A12102: Page Value Expected29312.3.55 A12103: Operand not Allowed29412.3.56 A12104: Immediate Value Expected29512.3.57 A12105: Immediate Address Mode not Allowed29612.3.58 A12107: Illegal Size Specification for HC12 Instruction29712.3.59 A12109: Illegal Character at the End of Line29812.3.60 A12110: No Operand Expected29912.3.61 A12201: Lexical Error in First or Second Field30012.3.62 A12202: Not an HC12 Instruction or Directive30112.3.63 A12203: Reserved Identifiers not Allowed as Instruction or Directive30112.3.64 A12401: Value Out of Range –128...12730212.3.65 A12402: Value Out of Range –32,768...32,76730412.3.66 A12403: Value Out of Range –256...25530512.3.67 A12405: PAGE with Initialized RAM not Supported30712.3.68 A12408: Code Size Per Section Is Limited to 32 Kbytes30812.3.69 A12409: In PC Relative Addressing Mode, References to Object Located in Another Section o...30912.3.70 A12411: Restriction: Label Specified in a DBNE, DBEQ, IBNE, IBEQ, TBNE, or TBEQ Instructi...310Appendix A. MASM Compatibility311A.1 Content311A.2 Introduction311A.3 Comment Line311A.4 Constants311A.5 Operators312A.6 Directives313Appendix B. MCUasm Compatibility315B.1 Contents315B.2 Introduction315B.3 Labels315B.4 Set Directive316B.5 Obsolete Directives316Index317Taille: 4,2 MoPages: 328Language: EnglishOuvrir le manuel