iv EPSON S5U1C62000A MANUAL
(S1C60/62 FAMILY ASSEMBLER PACKAGE)
CONTENTS
4.7 Source Editor ...............................................................................................31
4.7.1 Creating a New Source or Header File...................................................... 31
4.7.2 Loading and Saving Files .......................................................................... 32
4.7.3 Edit Function ............................................................................................. 33
4.7.4 Tag Jump Function..................................................................................... 36
4.7.5 Printing ...................................................................................................... 37
4.8 Build Task..................................................................................................... 37
4.8.1 Preparing a Build Task.............................................................................. 37
4.8.2 Building an Executable Object .................................................................. 37
4.8.3 Debugging.................................................................................................. 38
4.8.4 Executing Other Tools................................................................................ 39
4.9 Tool Option Settings..................................................................................... 41
4.9.1 Assembler Options ..................................................................................... 41
4.9.2 Linker Options ........................................................................................... 42
4.9.3 Debugger Options...................................................................................... 44
4.9.4 HEX Converter Options............................................................................. 44
4.10 Short-Cut Key List........................................................................................ 45
4.11 Error Messages............................................................................................ 45
4.12 Precautions .................................................................................................. 46
CHAPTER 5ASSEMBLER ............................................................................................ 47
5.1 Functions...................................................................................................... 47
5.2 Input/Output Files........................................................................................ 47
5.2.1 Input File.................................................................................................... 47
5.2.2 Output Files................................................................................................ 48
5.3 Starting Method............................................................................................ 49
5.4 Messages...................................................................................................... 50
5.5 Grammar of Assembly Source...................................................................... 51
5.5.1 Statements .................................................................................................. 51
5.5.2 Instructions (Mnemonics and Pseudo-instructions) .................................. 53
5.5.3 Labels......................................................................................................... 54
5.5.4 Comments................................................................................................... 56
5.5.5 Blank Lines ................................................................................................ 56
5.5.6 Register Names .......................................................................................... 56
5.5.7 Numerical Notations ..................................................................................57
5.5.8 Symbols ...................................................................................................... 58
5.5.9 Operators ...................................................................................................58
5.5.10 Location Counter Symbol "$" ..................................................................60
5.6 Section Management.................................................................................... 61
5.6.1 Definition of Sections................................................................................. 61
5.6.2 Absolute and Relocatable Sections ............................................................61
5.6.3 Sample Definition of Sections ....................................................................62
5.7 Assembler Pseudo-Instructions.................................................................... 63
5.7.1 Include Instruction (#include).................................................................... 64
5.7.2 Define Instruction (#define)....................................................................... 65
5.7.3 Macro Instructions (#macro ... #endm)...................................................... 67
5.7.4 Conditional Assembly Instructions
(#ifdef ... #else ... #endif, #ifndef... #else ... #endif) ................................... 69
5.7.5 Section Defining Pseudo-Instructions (.code, .bss) ................................... 71
5.7.6 Location Defining Pseudo-Instructions (.org, .bank, .page, .align) ..........72
5.7.7 Symbol Defining Pseudo-Instruction (.set) ................................................77
5.7.8 Data Defining Pseudo-Instruction (.codeword)......................................... 78
5.7.9 Area Securing Pseudo-Instructions (.comm, .lcomm)................................ 79