1.1 SOFTUNE Assembler
Total Page:16
File Type:pdf, Size:1020Kb
FUJITSU SEMICONDUCTOR CM41-00202-2E CONTROLLER MANUAL F2MC-16 FAMILY SOFTUNETM ASSEMBLER MANUAL for V3 F2MC-16 FAMILY SOFTUNETM ASSEMBLER MANUAL for V3 FUJITSU LIMITED PREFACE ■ Purpose of this manual and target readers This manual describes the functions and operations of the Fujitsu SOFTUNE Assembler operating on Windows 2000, and Windows XP. This manual is intended for engineers who are developing application programs using the F2MC-16 family microcontroller. Please read through this manual. Note: F2MC is the abbreviation of FUJITSU Flexible Microcontroller. ■ Trademarks Microsoft Windows, Visual C++ are registered trademarks of Microsoft Corporation in the U.S. and other countries. Adobe and Acrobat are registered trademarks of Adobe Systems Incorporated. SOFTUNE is a trademark of FUJITSU Limited. REALOS (REALtime Operating System) is a trademark of FUJITSU Limited. The company names and brand names herein are the trademarks or registered trademarks of their respective owners. ■ Configuration of this Manual This manual consists of two parts and an appendix. PART 1 OPERATION This part explains how to use the SOFTUNE assembler. PART 2 SYNTAX This part describes the syntax and format for writing assembly source programs. APPENDIX The appendix explains error messages and note restrictions that must be observed. ■ Product name abbreviation In this manual, product names are abbreviated as follows: Microsoft® Windows® 2000 Professional operating system is abbreviated Windows 2000. Microsoft® Windows® XP Professional operating system is abbreviated Windows XP. i • The contents of this document are subject to change without notice. Customers are advised to consult with FUJITSU sales representatives before ordering. • The information, such as descriptions of function and application circuit examples, in this document are presented solely for the purpose of reference to show examples of operations and uses of Fujitsu semiconductor device; Fujitsu does not warrant proper operation of the device with respect to use based on such information. When you develop equipment incorporating the device based on such information, you must assume any responsibility arising out of such use of the information. Fujitsu assumes no liability for any damages whatsoever arising out of the use of the information. • Any information in this document, including descriptions of function and schematic diagrams, shall not be construed as license of the use or exercise of any intellectual property right, such as patent right or copyright, or any other right of Fujitsu or any third party or does Fujitsu warrant non-infringement of any third-party' s intellectual property right or other right by using such information. Fujitsu assumes no liability for any infringement of the intellectual property rights or other rights of third parties which would result from the use of information contained herein. • The products described in this document are designed, developed and manufactured as contemplated for general use, including without limitation, ordinary industrial use, general office use, personal use, and household use, but are not designed, developed and manufactured as contemplated (1) for use accompanying fatal risks or dangers that, unless extremely high safety is secured, could have a serious effect to the public, and could lead directly to death, personal injury, severe physical damage or other loss (i.e., nuclear reaction control in nuclear facility, aircraft flight control, air traffic control, mass transport control, medical life support system, missile launch control in weapon system), or (2) for use requiring extremely high reliability (i.e., submersible repeater and artificial satellite). Please note that Fujitsu will not be liable against you and/or any third party for any claims or damages arising in connection with above-mentioned uses of the products. • Any semiconductor devices have an inherent chance of failure. You must protect against injury, damage or loss from such failures by incorporating safety design measures into your facility and equipment such as redundancy, fire protection, and prevention of over-current levels and other abnormal operating conditions. • If any products described in this document represent goods or technologies subject to certain restrictions on export under the Foreign Exchange and Foreign Trade Law of Japan, the prior authorization by Japanese government will be required for export of those products from Japan. Copyright© 2005-2007 FUJITSU LIMITED All rights reserved ii CONTENTS PART I OPERATION ......................................................................................................... 1 CHAPTER 1 OVERVIEW ................................................................................................... 3 1.1 SOFTUNE Assembler ......................................................................................................................... 4 1.2 Assembler Syntax ............................................................................................................................... 5 CHAPTER 2 ENVIRONMENT VARIABLES AND DIRECTORY STRUCTURE OF THE DEVELOPMENT ENVIRONMENT ................................................. 7 2.1 FETOOL ............................................................................................................................................. 8 2.2 FELANG ............................................................................................................................................. 9 2.3 TMP .................................................................................................................................................. 10 2.4 INC907 .............................................................................................................................................. 11 2.5 OPT907 ............................................................................................................................................ 12 2.6 Directory Structure of the Development Environment ...................................................................... 13 CHAPTER 3 STARTUP METHOD .................................................................................. 15 3.1 fasm907s Commands ....................................................................................................................... 16 3.2 Specifying a File ............................................................................................................................... 17 3.3 Handling of File Names .................................................................................................................... 18 3.3.1 Format for Specifying a File Name .............................................................................................. 19 3.3.2 Specifying a File Name with File Name Components Omitted .................................................... 20 3.4 Option File ........................................................................................................................................ 21 3.5 Comments Allowed in an Option File ................................................................................................ 22 3.6 Default Option File ............................................................................................................................ 23 3.7 Termination Code ............................................................................................................................. 24 CHAPTER 4 STARTUP OPTIONS .................................................................................. 25 4.1 Rules for Startup Options ................................................................................................................. 26 4.2 Startup Option List ............................................................................................................................ 27 4.3 Details of the Startup Options ........................................................................................................... 30 4.4 Options Related to Objects and Debugging ..................................................................................... 31 4.4.1 -o, -Xo .......................................................................................................................................... 32 4.4.2 -g, -Xg .......................................................................................................................................... 33 4.5 Options Related to Listing ................................................................................................................. 34 4.5.1 -l, -lf, -Xl ....................................................................................................................................... 35 4.5.2 -pl, -pw ......................................................................................................................................... 36 4.5.3 -linf, -lsrc, -lsec, -lcros .................................................................................................................. 37 4.5.4 -linc, -lexp .................................................................................................................................... 39 4.5.5 -tab .............................................................................................................................................. 40 4.6 Options Related to the Preprocessor ...............................................................................................