User ManualTable of ContentsCover1Special Attention and Precautions3About This Manual4Chapter TAble7Table of Contents81 Getting Started131.1 Purpose of This Chapter141.2 Operating Environment151.3 File Organization161.4 Installation171.5 Setup181.6 File Conversion Utility222 Program Development Flow252.1 Purpose of This Chapter262.2 Program Development Flow272.3 Programming with Assembler293 Introduction to Operation333.1 Purpose of This Chapter343.2 Files Used by Assembler and Linker353.3 Basic Operation of Assembler and Linker373.4 Assembling and Linking Multiple Sections423.5 Conditional Assembly and Linking504 Optimization554.1 Purpose of This Chapter564.2 Rules of Usage574.3 Usage Example585 Using Assembler715.1 Purpose of This Chapter725.2 Starting Assembler735.3 Command Options755.3.1 Output File Options765.3.2 Error Message Options825.3.3 Preprocessor Options885.3.4 Program Generation Options905.3.5 Other Options925.4 Operation Examples936 Using Linker956.1 Purpose of This Chapter966.2 Starting Linker976.3 Command Options1006.3.1 Output File Options1016.3.2 Error Message Options1036.3.3 Program Generation Options1096.3.4 Library File Options1156.3.5 Other Options1176.4 Instruction RAM Support1196.4.1 Structure of IRAM Support Executable File1206.4.2 IRAM Support Options1236.4.3 Operation Examples1267 Types of Source Statements1297.1 Purpose of This Chapter1307.2 Program Format1317.3 Machine Language Instruction Statements and Directive Statements1337.4 Assembler Control Statements1347.5 Macro Control Statements1357.6 Comment Statements1367.7 Blank Statements1378 Writing Source Statements1398.1 Purpose of This Chapter1408.2 Permitted Characters1418.3 Numbers1428.4 Character Constants1458.5 Address Constants1478.6 Location Counter1488.7 Expressions1498.7.1 Operators1508.7.2 Expression Evaluation1528.7.3 Expression Syntax1538.7.4 Expression Attributes1548.8 Reserved Words1569 Writing Machine Language Instruction Statements and Directive Statements1579.1 Purpose of This Chapter1589.2 Instruction Statement Fields1599.2.1 Writing Label Field1609.2.2 Writing Operation Field1619.2.3 Writing Operand Field1629.2.4 Writing Comment Field1639.3 Writing Machine Language Instruction Statements1649.4 Writing Directive Statements1659.4.1 section1669.4.2 align1689.4.3 end1709.4.4 listoff, liston1719.4.5 notation1729.4.6 org1749.4.7 opt1759.4.8 page1769.4.9 radix1779.4.10 dc1789.4.11 ds1799.4.12 dw1819.4.13 dd1829.4.14 equ1839.4.15 global1859.4.16 tit1879.4.17 xlistoff, xliston1889.4.18 funcinfo1899.4.19 assign19110 Writing Assembler Control Statements19310.1 Purpose of This Chapter19410.2 File Inclusion19510.2.1 #include19610.3 Identifier Definement19810.3.1 #define19910.3.2 #undef20010.4 Conditional Assembly20110.4.1 #ifdef, #ifndef20310.4.2 #if, #ifn20510.4.3 #ifeq, #ifneq20710.4.4 #iflt, #ifle21010.4.5 #ifgt, #ifge21210.4.6 #ifb, #ifnb21411 Writing Macro Control Statements21711.1 Purpose of This Chapter21811.2 Macro Definitions (macro, endm)21911.3 Macro Calls and Expansion22111.4 Macro Operators22311.5 Local Symbol Declaration (local)22511.6 Forced Termination of Macro Expansion (exitm)22711.7 Purging Macro Definitions (purge)22911.8 rept23011.9 irp23211.10 irpc23412 List of Machine Language Instructions23712.1 Purpose of This Chapter23812.2 Addressing Modes23912.3 List of Machine Language Instructions24312.3.1 Data Move Instructions24412.3.2 Arithmetic Instructions24912.3.3 Logical Instructions25112.3.4 Bit Manipulation Instructions25312.3.5 Branching Instructions25512.3.6 User-Defined Instructions25912.3.7 Other Instructions26013 Error Messages26113.1 Purpose of This Chapter26213.2 Assembler Errors26313.2.1 Warning Messages26413.2.2 Error Messages26613.2.3 Fatal Error Messages26913.3 Linker Errors27013.3.1 Warning Messages27113.3.2 Error Messages27213.3.3 Fatal Error Messages27414 Readinig List Files27714.1 Purpose of This Chapter27814.2 Reading List Files27914.2.1 Output Format of Machine Language Code28014.2.2 Symbol Table28315 Using Library Manager28515.1 Purpose of This Chapter28615.2 Starting Library Manager28715.3 Command Options28815.3.1 Error Message Options28815.3.2 Program Generation Options29415.3.3 Functional Options29615.3.4 Other Options30215.4 Error Messages30415.4.1 Warning Messages30515.4.2 Error Messages30615.4.3 Fatal Error Messages30816 Notes on Operating Environment30916.1 Purpose of This Chapter31016.2 Personal Computer Versions31116.2.1 Operating Environment31216.2.2 Files31316.2.3 Installation31416.2.4 Environment Settings31516.2.5 Differences From Workstation Versions31716.2.6 Error Correction Using Tag Jumps31817 Appendix32117.1 Numeric Restrictions32217.2 List of Command Options32317.2.1 List of Assembler Command Options32417.2.2 List of Linker Command Options32717.3 List of Assembler Directives33017.4 List of Assembler Control Statements333Index335Colophon339Sales Offices340Size: 1010 KBPages: 340Language: EnglishOpen manual