Page 1
MF1121 - 03a CMOS 4 - BIT SINGLE CHIP MICROCOMPUTER S5U1C62000A Manual (S1C60/62 Family Assembler Package)
Page 2
No part of this material may be reproduced or duplicated in any form or by any means without the written permission of Seiko Epson. Seiko Epson reserves the right to make changes to this material without notice. Seiko Epson does not assume any...
Page 5
Chapters 4 to 9 explain the details of each tool. Refer to it if necessary. Once familiar with this package Refer to the listings of instructions and commands contained in Quick Reference. S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) ® ®...
Page 6
Items enclosed in { } and separated with | indicate that you should choose an item. For example, {A | B} needs to have either A or B selected. EPSON (S1C60/62 FAMILY ASSEMBLER PACKAGE) ® 95. These S5U1C62000A MANUAL...
4.6.2 Inserting Sources into a Project ... 28 4.6.3 [Project] Window ... 29 4.6.4 Opening and Closing a Project ... 29 4.6.5 Files in the Work Space Folder ... 30 S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) Contents ... 3 ... 7 ROCEDURE ...
Complete compatibility with old syntax sources By supporting old syntax together with the new syntax, an existing ".dat" sources written for old 62 tools are available with these new tools. S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) EPSON CHAPTER 1: GENERAL...
This software provides an integrated development environment with Windows GUI. Creating/ editing source files, selecting files and major start-up options, and the start-up of each tool can be made with simple Windows operations. EPSON (S1C60/62 FAMILY ASSEMBLER PACKAGE) S5U1C62000A MANUAL...
To debug the target program, the optional In-Circuit Emulator ICE (S5U1C62000H) and an Evaluation Board (S5U1C62xxxE) are needed as the hardware tools. The evaluation board is prepared for each S1C62 model. S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) CHAPTER 2: INSTALLATION 600 dots or more is necessary.
Choose Destination Location A dialog box appears for specifying the installation directory. (5) Click [Next>] if the default directory "C:\EPSON\S1C62" is not changed to another directory. To install the tools to another directory Open the [Choose Folder] dialog box by clicking [Browse...] and then enter the path name or choose...
Page 17
The dialog boxes that appear during installation have a [Cancel] button. To discontinue installation, click [Cancel] when a dialog box appears. To uninstall the tools Use [Add/Remove Programs] in the control panel to uninstall the tools. S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) CHAPTER 2: INSTALLATION InstallShield Wizard Complete (6) Click [Finish] to terminate the installer.
CHAPTER 2: INSTALLATION 2.3 Directories and Files after Installation The installer copies the following files in the specified directory (default is "C:\EPSON\S1C62"): [Specified folder] README.TXT [bin] WB62.EXE AS62.EXE LK62.EXE HX62.EXE DS62.EXE DB62.EXE IEEE695.DLL HEXLIB.DLL AS62.DLL CORE62.DLL ICE62.DLL MSVCRT.DLL OLEPRO32.DLL SPAWNEX.EXE...
Refer to the respective chapter for details of each tool. The part indicated as "Development tools for each model" is not covered in this manual. For details, refer to the tool manual associated with each specific model. S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) CHAPTER 3: SOFTWARE DEVELOPMENT PROCEDURE...
This section shows a basic development procedure using the work bench wb62. Refer to Chapter 4, "Work Bench", for operation details. 3.2.1 Starting Up the Work Bench Start up the work bench by choosing "WorkBench62" from the program menu. EPSON S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE)
1. Select [New] from the [File] menu (or click the [New] button). [New] button The [New] dialog box appears. 2. Select [E0C Assembly Source File] and click [OK]. S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) CHAPTER 3: SOFTWARE DEVELOPMENT PROCEDURE Created project...
Page 22
A new edit window appears. [Edit] window 3. Enter source codes in the [Edit] window. 4. Save the source in a file by selecting [Save] from the [File] menu (or clicking the [Save] button). [Save] button EPSON S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE)
Check box items can be selected by clicking. Items in the list can be toggled or entered by double- clicking. Refer to Chapter 4, "Work Bench", for details of the [Settings] dialog box. S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) CHAPTER 3: SOFTWARE DEVELOPMENT PROCEDURE...
[Rebuild All] button To invoke the assembler only to correct syntax errors, select [Assemble] in the [Built] menu (or click the [Assemble] button). [Assemble] button Linked with the corresponding source line [Output] window EPSON S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE)
Note: Make sure that the ICE is ready to debug before invoking the debugger. Refer to the ICE hardware manual for settings and startup method of the ICE. For the debugging functions and operations, refer to Chapter 9, "Debugger". EPSON S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE)
If "WorkBench62" is not registered in the [Program] menu, it means that the installation was not suc- cessful. Therefore, reinstall the tools by referring to Chapter 2, "Installation". When the work bench starts up, the window shown below appears. EPSON S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE)
This window shows the currently opened work space folder and lists all the source files in the project, with a structure similar to Windows Explorer. Double-clicking a source file icon opens the source file in the [Edit] window. S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) Toolbar...
The floating window will be restored to a docking window by double clicking the window's title bar or dragging the title bar towards an edge of the work bench window. Double click EPSON (S1C60/62 FAMILY ASSEMBLER PACKAGE) S5U1C62000A MANUAL...
Page 29
The [Edit] windows being opened can be arranged similar to standard Windows applications. 1 Cascade windows Select [Cascade] from the [Window] menu or click the [Cascade Windows] button. [Cascade Windows] button S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) CHAPTER 4: WORK BENCH The [Edit] window area can be...
Page 30
To tile windows vertically, select [Tile Vertically] from the [Window] menu or click the [Tile Vertically] button. [Tile Vertically] button To tile windows horizontally, select [Tile Horizontally] from the [Window] menu or click the [Tile Horizontally] button. [Tile Horizontally] button EPSON (S1C60/62 FAMILY ASSEMBLER PACKAGE) S5U1C62000A MANUAL...
Page 31
The arrow keys can also be used. Showing and hiding the status bar The status bar can be shown or hidden by selecting [Status Bar] from the [View] menu. S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) CHAPTER 4: WORK BENCH...
Prints the document in the active [Edit] window. A standard print dialog will appear allowing a specific print condition. [Help] button Displays a dialog box showing the version of the work bench. EPSON (S1C60/62 FAMILY ASSEMBLER PACKAGE) Window toolbar S5U1C62000A MANUAL...
This tool bar has the following buttons used in window manipulation: [Cascade] button Cascades the opened [Edit] windows. [Tile Horizontally] button Tiles the opened [Edit] window horizontally. [Tile Vertically] button Tiles the opened [Edit] window vertically. S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) CHAPTER 4: WORK BENCH EPSON...
When a source file (.s, .ms or .dat) is opened, the [Insert into project] button appears on the [Edit] win- dow. It can be used to insert the source file into the current opened project. For other file types, the [Edit] window opens without the [Insert into project] button. EPSON (S1C60/62 FAMILY ASSEMBLER PACKAGE) S5U1C62000A MANUAL...
The file names listed in this menu are recently used source and project files. Selecting one opens the file. S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) [New...] ([Ctrl]+[N]) Creates a new document. A dialog box will appear allowing selection from among three document types: E0C62 assembly source, E0C62 assembly header and project.
Opens or closes the [Project] window. [Build Bar] Shows or hides the build toolbar. [Window Bar] Shows or hides the window toolbar. [Full Screen] Maximizes the [Edit] window area to the full screen size. EPSON (S1C60/62 FAMILY ASSEMBLER PACKAGE) S5U1C62000A MANUAL...
4.5.4 [Insert] Menu 4.5.5 [Build] Menu 4.5.6 [Tools] Menu S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) [File...] Inserts the specified file to the current cursor position in the [Edit] window or replaces the selected text with the contents of the specified file. A dialog box will appear allowing selection of the file to be inserted.
Selecting one activates the [Edit] window. [Close All] Closes all the [Edit] windows opened. 4.5.8 [Help] Menu [About WB62...] Displays a dialog box showing the version of the work bench. EPSON (S1C60/62 FAMILY ASSEMBLER PACKAGE) S5U1C62000A MANUAL...
Thus you can specify a folder in which sources are created. The specified project name will also be used for the absolute object and other files. S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE)
To remove a source file from the project, select the source in the [Project] window and then press the [Delete] key. This removes only the source information, and does not delete the actual source file. EPSON (S1C60/62 FAMILY ASSEMBLER PACKAGE) S5U1C62000A MANUAL...
If [Yes] (save) is selected in this dialog box, all the modification items includ- ing sources, tool settings and window configuration will be saved. S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) structure.
Intel HEX files (generated by the Hex converter when this format is specified in the work bench) <file>.hsa, <file>.lsa Motorola S files (generated by the HEX converter when this format is speci- fied in the work bench) ;output file : absolute object EPSON ;ICE parameter file S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE)
An [Edit] window appears. Enter source codes in this window. The [New] dialog box allows selection of the [E0C Header File]. Select it when creating a header file for constant definitions. S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) CHAPTER 4: WORK BENCH [Edit] window Enter source codes here.
The [Open] dialog box appears. 2. Choose a source file to be opened after selecting the file type (*.s, *.ms, *.dat) and click [OK]. An [Edit] window opens and shows the contents of the source file. EPSON (S1C60/62 FAMILY ASSEMBLER PACKAGE) S5U1C62000A MANUAL...
Any words can be searched in the active [Edit] window. Find To find a word, select [Find...] from the [Edit] menu or click the [Find] button. [Find] button The [Find] dialog box appears. S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) CHAPTER 4: WORK BENCH EPSON...
Page 46
If not, only the part of word that matches the specified word will be searched. [Match case] check box If this option is specified, a case-sensitive search is performed. If not, a case-insensitive search is performed. EPSON (S1C60/62 FAMILY ASSEMBLER PACKAGE) S5U1C62000A MANUAL...
Page 47
To insert a file such as a header file and another source at the cursor position of the current source, select [File...] from the [Insert] menu. A dialog box will appears allowing selection of the file to be inserted. S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) CHAPTER 4: WORK BENCH...
In this case, you can go to the source line in which an error has occurred by double-clicking the error message in the [Output] window. However, this function is available only when the error message contains a source line number. Linked with the corresponding source line EPSON S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE)
[Rebuild All] button. [Rebuild All] button The build task can be suspended by selecting [Stop Build] from the [Build] menu or clicking the [Stop Build] button. [Stop Build] button S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) CHAPTER 4: WORK BENCH EPSON...
When the building process is performed again after invoking the debugger, the debugger will reload the object file if its window can be activated. Refer to Chapter 9, "Debugger", for operating the debugger. EPSON (S1C60/62 FAMILY ASSEMBLER PACKAGE) S5U1C62000A MANUAL...
After selecting an absolute object and options, click the [Open] button. The HEX converter starts up and converts the selected object into the specified format. The messages delivered from the HEX converter are displayed in the [Output] window. S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) CHAPTER 4: WORK BENCH...
Page 52
After selecting an executable object and options, click the [Open] button. The disassembler starts up and converts the selected object into the source file. The messages delivered from the disassembler are displayed in the [Output] window. EPSON (S1C60/62 FAMILY ASSEMBLER PACKAGE) S5U1C62000A MANUAL...
[Debug info] Addition of debugging information to the relocatable object (No: Not added, Yes: Added) [List file] Output of the relocatable list file (No: Not output, Yes: Output) [Defines] Name definition for conditional assembly (Enter a define name.) S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) CHAPTER 4: WORK BENCH EPSON...
Double-click here. It will be changed to Yes. Debug info List file Defines Double-click here to change default CODE section start address, then type an address. EPSON Double-click here, then type a define name. S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE)
Page 55
Select this option to generate the symbol file. [Output cross reference file] check box Select this option to generate the cross reference file. Refer to Chapter 6, "Linker", for details of the linker options. S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) 0x200 EPSON...
0xFF. [Output error log file] check box Select this option to generate the error log file of the HEX converter. Refer to Chapter 7, "HEX Converter", for details of the HEX converter options. EPSON (S1C60/62 FAMILY ASSEMBLER PACKAGE) S5U1C62000A MANUAL...
Cannot open file : <filename> You cannot close workspace while a build is in progress. Select the Stop Build command before closing. Would you like to build it ? S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) CHAPTER 4: WORK BENCH Function Description The currently opened file is modified by another editor.
(3) The work bench can create a make, linker command and debugger command files, note, however, that these files or settings created with another editor cannot be input into the work bench. EPSON (S1C60/62 FAMILY ASSEMBLER PACKAGE) S5U1C62000A MANUAL...
".s" source, while in a ".dat" source it is regarded as an absolute section and ".org 0" is placed at the beginning of the source by preprocessing. S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) Assembly source file file.s...
-o option.) Output destination: Current directory Description: File delivered when the start-up option (-e) is specified. It records error messages and other information which the assembler delivers via the Standard Output (stdout). EPSON (S1C60/62 FAMILY ASSEMBLER PACKAGE) S5U1C62000A MANUAL...
The options can be specified in any order. It is also possible to enter options after the source file name. Example: c:\e0c62\bin\as62 -g -e -l -d TEST1 -d TEST2 test.s S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) CHAPTER 5: ASSEMBLER...
Start-up message The assembler outputs only the following message when it starts up. Assembler 62 Ver x.xx Copyright (C) SEIKO EPSON CORP. 199x End message The assembler outputs the following messages to indicate which files have been created when it ends normally.
; execute initial routine reti .org 0x110 INIT: The example given above is an ordinary source description method. For increased visibility, the elements composing each statement are aligned with tabs and spaces. S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) Operand (;comment) Parameter (;comment) (;comment)
Page 64
(A–Z) characters, lowercase (a–z) characters, or both. For example, "ld", "LD", and "Ld" are all accepted as "ld" instructions. For purposes of discrimination from symbols, this manual uses lowercase characters for the reserved words. b,0x0 EPSON (S1C60/62 FAMILY ASSEMBLER PACKAGE) S5U1C62000A MANUAL...
An instruction containing a parameter needs to be separated into the instruction and the parameter with one or more tabs or spaces. If an instruction requires multiple parameters, they are separated from each other with an appropriate delimiter. S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) 0x100...
An actual address value should be determined in the linking process, except in the case of absolute sections. Examples: LABEL1: LABEL1 .comm .code a,BUF&0b11110000 xh,a b,BUF&0b00001111 xl,b ... Jumps to the LABEL1 location. 0x04 ... The address defined in BUF is loaded to X register. EPSON S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE)
Page 67
• Since labels are case sensitive, uppercase and lowercase are discriminated. When referencing a defined label, use the symbol exactly the same as the defined label. Examples: _Abcd: S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) ... Global declaration of a label which is to be defined in this file.
YL sp or SP sph or SPH spl or SPL mx or MX my or MY m0–mf or M0–MF f or F c or C nc or NC z or Z nz or NZ S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE)
"nnnnB" (binary numbers) and "nnnnH" (hexadecimal numbers) are converted into the new format ("0bnnnn" and "0xnnnn") in the preprocessing stage. "nnnnO" and "nnnnQ" (octal numbers) are converted into hexadecimal numbers ("0xnnnn") in the preprocessing stage. S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) CHAPTER 5: ASSEMBLER Decimal Hexadecimal 0–31...
... Will be expanded into "ld a, 0xf". Examples +0xff, 1+2 -1+2, 0xff-0b111 0xf*5 0x123/0x56 0x123%0x56 1>>2 0x113<<3 0x1234^H 0x1234^L 1+(1+2*5) Examples 0b1101&0b111 0b123|0xff 12^35 ~0x1234 EPSON Old operators (for asm62XX) HIGH not available Old operators S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE)
Page 71
They have the same priority as the corresponding new-type operators. Consequently, it is possible to use sources created for the older tools. The old-type operators are converted into the new format in the preprocessing stage. S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) Examples...
... -2>>1 = -1 (0xffff) ... Jumps to this address (means endless loop)..Jumps to two words after this address..Jumps to 10 words before this address..Operators and defined symbols can be used. EPSON S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE)
.org, .page or .bank pseudo-instruction in the source is an absolute section, while the section whose absolute address is not specified is an relocatable section. Absolute addresses of relocatable sections will be fixed by the linker. Both types of sections can be included in one source. S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) CHAPTER 5: ASSEMBLER...
Examples: .code .comm BUF 16 .bss • One section cannot cross over a bank or page boundary..Warning; A new bss section begins ... Warning; A new code section begins EPSON S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE)
The assembler supports the old-type pseudo-instructions shown above. They are converted into the new format in the preprocessing stage. The LOCAL pseudo-instruction is removed in the preprocessing stage. The END pseudo-instruction functions the same as the older tool. S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) CHAPTER 5: ASSEMBLER...
• Only files created in text file format can be inserted. • The #include instruction can be used in the including files. However, nesting is limited up to 10 levels. If this limit is surpassed, an error will result. EPSON (S1C60/62 FAMILY ASSEMBLER PACKAGE) S5U1C62000A MANUAL...
If a Define name defined appears in the source, the assembler substitutes a defined character string for that Define name. Sample expansion: #define INT_F1 #define INT_F1_RST INT_F1^0xf #define MEMORY_X ldpx MEMORY_X,INT_F1_RST S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) CHAPTER 5: ASSEMBLER ... Error Comma (,) cannot be used..Expanded to "ldpx mx, 0". EPSON...
Page 78
• The internal preprocess part of the assembler does not check the validity of a statement as the result of the replacement of the character string..Expanded to "ldpx mx, my"..Replaced with "ld a, LABEL[7:4]"..Replaced with "ld b, LABEL[3:0]". EPSON (S1C60/62 FAMILY ASSEMBLER PACKAGE) S5U1C62000A MANUAL...
• The same symbols as for a macro name are available. Sample definition: #define C_RESET 0b1101 #macro WAIT COUNT a,COUNT f,C_RESET LOOP: nop5 LOOP #endm S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) [<Dummy parameter>] [,<Dummy parameter>] ... EPSON CHAPTER 5: ASSEMBLER...
Page 80
• The maximum number of parameters and internal branch labels are limited according to the free memory space. • "__Lnnnn" used for the internal branch labels should not be employed as other label or symbol. ;WAIT EPSON (S1C60/62 FAMILY ASSEMBLER PACKAGE) S5U1C62000A MANUAL...
When a name is going to be used only in conditional assembly, no substitute character string needs to be specified. S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) CHAPTER 5: ASSEMBLER (#ifdef ... #else ... #endif, #ifndef... #else ... #endif)
Page 82
Precaution A name specified in the condition is evaluated with discrimination between uppercase and lowercase. The condition is deemed to be satisfied only when there is the same Define name defined. EPSON (S1C60/62 FAMILY ASSEMBLER PACKAGE) S5U1C62000A MANUAL...
.bank pseudo-instruction, or by 2 .align pseudo-instruction, but only the .org and .align pseudo-instructions are applicable to BSS sections to define completely absolute location. S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) CHAPTER 5: ASSEMBLER...
... Starts new absolute CODE section from address 0x100. .org 0x100 ... This section is relocatable not affected by the ".org" pseudo-instruction. .bss ... This section is also relocatable not affected by the ".org" pseudo-instruction. .code EPSON (S1C60/62 FAMILY ASSEMBLER PACKAGE) words S5U1C62000A MANUAL...
Page 85
... The another kind (BSS) of section which is not affected by the .bss previous ".org" pseudo-instruction in the CODE section..This will be an relocatable CODE section not affected by the .code previous ".org" pseudo-instruction. S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) CHAPTER 5: ASSEMBLER EPSON...
Page 86
... The another kind (BSS) of section which is not affected by the .bss previous ".page" pseudo-instruction in the CODE section..This will be an relocatable CODE section not affected by the .code previous ".page" pseudo-instruction. EPSON (S1C60/62 FAMILY ASSEMBLER PACKAGE) S5U1C62000A MANUAL...
Page 87
... The another kind (BSS) of section which is not affected by the .bss previous ".bank" pseudo-instruction in the CODE section..This will be an relocatable CODE section not affected by the .code previous ".bank" pseudo-instruction. S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) CHAPTER 5: ASSEMBLER EPSON...
Page 88
... The another kind (BSS) of section which is not affected by the .bss previous ".align" pseudo-instruction in the CODE section. .code ... This will be an relocatable CODE section not affected by the previous ".align" pseudo-instruction. value. EPSON (S1C60/62 FAMILY ASSEMBLER PACKAGE) S5U1C62000A MANUAL...
When the defined symbol is used as an operand, the defined value is referred as is. Therefore, if the value exceeds the valid range of the operand, an error will result. Example: .set DATA1 0xf0 x,DATA1 y,DATA1 a,DATA1 S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) ... OK ... OK ... Error EPSON CHAPTER 5: ASSEMBLER...
• A comma (,) is necessary between one data and another. Sample description: .code .codeword 0xa,0xa40,0xff3 Function Defines the 12-bit data to be written to the program ROM. Precaution The .codeword pseudo-instruction can be used only in a CODE section. EPSON (S1C60/62 FAMILY ASSEMBLER PACKAGE) S5U1C62000A MANUAL...
The symbols created by the .lcomm pseudo-instruction are local symbols, which cannot be referred to from other modules. Precaution The .comm and .lcomm pseudo-instructions can only be described in BSS sections. S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) CHAPTER 5: ASSEMBLER EPSON...
Prior to making refer- ence, declaration has to be made by this instruction on the side of the file that is going to make the reference. EPSON (S1C60/62 FAMILY ASSEMBLER PACKAGE) S5U1C62000A MANUAL...
When the -g option is specified as a start option, the preprocess stage of the assembler will insert debugging pseudo-instructions in the preprocessed file. Therefore, you do not have to describe these pseudo-instructions in creating source files. S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) CHAPTER 5: ASSEMBLER...
3. Define instruction (#define), include instruction (#include), and macro instruction (#macro) cannot be described within a macro definition. 4. Define name definitions are expanded with priority over macro definitions. ;load memory to A reg. EPSON (S1C60/62 FAMILY ASSEMBLER PACKAGE) ;load memory to A reg. S5U1C62000A MANUAL...
Page location definition SECTION Section alignment End definition MACRO–ENDM Macro definition LOCAL Local symbol declaration Location counter S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) CHAPTER 5: ASSEMBLER 0b#### 0x#### (the base is converted) 0x#### (the base is converted) 0x#### << >>...
Second definition of symbol <symbol> Unknown label <label> Unknown mnemonic <name> Unknown symbol mask <name> Unsupported directive <directive> S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) CHAPTER 5: ASSEMBLER Description The specified file cannot be opened. The specified file cannot be read.
(3) Other limitations such as the number of sections depend on the free memory space. Description The symbol is multiply defined by #define. There is no section definition. The result of the expression is out of the effective range. EPSON (S1C60/62 FAMILY ASSEMBLER PACKAGE) S5U1C62000A MANUAL...
Description: File to specify the memory mapping and unsupported instruction information of each S1C62 Family model. This file is supplied in the development tools for each model and commonly used with the debugger, HEX converter and disassembler. S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) from Assembler...
File name: <File name>.err Output destination: Current directory Description: File delivered when the start-up option (-e) is specified. It records the information which the linker outputs to the Standard Output (stdout), such as error messages. EPSON (S1C60/62 FAMILY ASSEMBLER PACKAGE) S5U1C62000A MANUAL...
Explanation: Disables PSET insertion only among full PSET optimization (insertion/deletion/ correction). Default: If this option is not specified, the automatic insertion will be enabled when the automatic page correction function is specified. S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) EPSON CHAPTER 6: LINKER...
Page 104
• The address should be described in hexadecimal format (0x####). Default: If this option is not specified, the CODE section will begin from the program ROM physical start address specified with the ICE parameter file. Sample description: -code 0x100 EPSON (S1C60/62 FAMILY ASSEMBLER PACKAGE) S5U1C62000A MANUAL...
Page 105
When inputting an option in the command line, one or more spaces are necessary before and after the option. Example: c:\e0c62\lk62 -g -e -s -m test1.o test2.o -o test.abs ics62xxp.par S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) EPSON CHAPTER 6: LINKER...
Start-up message The linker outputs only the following message when it starts up. Linker 62 Ver x.xx Copyright (C) SEIKO EPSON CORP. 199x End message The linker outputs the following messages to indicate which files has been created when it ends normally.
Blank line A blank line carrying only blank characters and a line feed will be ignored. It need not be converted to a comment using a semicolon. S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) ; Generate error file ; Add debug information ;...
Address Indicates the absolute address defined for the label. Indicates the scope of the label: Global or Local. Type File Indicates the object file in which the labal has been defined. S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) Symbol Symbol EPSON...
Address Indicates the address where the label is referred. Indicates the object file in which the label is referred. File Indicates the type of section that contains the address where the label is referred. Type S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) "MAIN.O" BSS, Global "MAIN.O"...
Page 113
A section cannot be overlapped to other sections, therefore an error will occur if there is no free area larger than the section size. For example, an error will occur if CODE2 is larger than 0x110 words. S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) test.abs...
... "pset YY" is removed if unnecessary. Even when "pset YY" is necessary, YY is checked and corrected if wrong. If both the subroutine and current section are absolute and are in different banks, an error will result. EPSON (S1C60/62 FAMILY ASSEMBLER PACKAGE) S5U1C62000A MANUAL...
Warning message Cannot create <file kind> file <FILE NAME> Cannot open <file kind> file <FILE NAME> Second definition of label <label> in <FILE NAME> S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) Description The call instruction calls a subroutine in another bank.
It must be specified to create the same object as one that is created with the asm62XX. (3) To load the absolute object file created by the linker to the debugger, the same ICE parameter file must be specified when the debugger is invoked. EPSON (S1C60/62 FAMILY ASSEMBLER PACKAGE) S5U1C62000A MANUAL...
Output destination: Current directory Description: File that is delivered when the start-up option (-e) is specified. It records information that the hex converter outputs to the Standard Output (stdout), such as error messages. S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) ONVERTER from Linker Absolute file.abs...
Default: The input file name is used for the output files. When entering an option in the command line, one or more spaces are necessary before and after the option. Example: c:\e0c62\bin\hx62 -e test.abs ics62xxp.par EPSON (S1C60/62 FAMILY ASSEMBLER PACKAGE) S5U1C62000A MANUAL...
The hex converter outputs only the following message when it starts up. Hex converter 62 Ver x.xx Copyright (C) SEIKO EPSON CORP. 199x End message The hex converter outputs the following messages to indicate which files have been created when it ends normally.
(16 bytes max.): The object codes are placed here. This is not included in the end record. This is a checksum (2's complement) from "Data volume" to the last data. sum (1 byte): The end records are always "00000001FF". data EPSON S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE)
When the -b option is specified, the hex converter does not deliver data in unused addresses of the absolute object file. This allows minimization of the output hex files. Note, however that the hex files generated in this format cannot be used for creating the mask data. S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) CHAPTER 7: HEX CONVERTER...
The input file is not an object file in IEEE-695 format. Cannot secure memory space. Description Two or more file names with the same extension have been specified. The last one is used. EPSON (S1C60/62 FAMILY ASSEMBLER PACKAGE) S5U1C62000A MANUAL...
(3) If an 8-character output file name (DOS file name) without extension is specified for the Intel HEX files, it will be changed to a long file name because "l.hex" or "h.hex" is added to the file name. S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) Table 7.7.1 ROM offset address...
ICE parameter file fileh.hex Intel-HEX file.abs filel.hex files Disassembler ds62 file.ms Preprocessed source file Fig. 8.2.1 Flow chart (A path can also be specified.) (A path can also be specified.) EPSON (S1C60/62 FAMILY ASSEMBLER PACKAGE) file.par file.err Error file S5U1C62000A MANUAL...
Default: If this option is not specified, the disassembled source will begin with address 0. When entering an option in the command line, one or more spaces are necessary before and after the option. Example: c:\e0c62\ds62 -e -cl test.abs ics62xxp.par S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) CHAPTER 8: DISASSEMBLER EPSON...
The hex converter outputs only the following message when it starts up. Disassembler 62 Ver x.xx Copyright (C) SEIKO EPSON CORP. 199x End message The hex converter outputs the following messages to indicate which files have been created when it ends normally.
An illegal option is specified. ICE parameter file is not specified. Cannot secure memory space. Description Two or more file names with the same extension have been specified. The last one is used. EPSON (S1C60/62 FAMILY ASSEMBLER PACKAGE) S5U1C62000A MANUAL...
Description: This is an object file generated by the linker. This file is read into the debugger by the lf command. By reading a file in the IEEE-695 format that contains debug information, source display and symbolic debugging can be performed. S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) from Linker...
File name: <file name>.trc (An extension other than ".trc" can also be used.) Description: This file contains the specified range of trace information. Output of this file can be con- trolled by the tf command. EPSON (S1C60/62 FAMILY ASSEMBLER PACKAGE) S5U1C62000A MANUAL...
When Debugger db62 starts up, it outputs the following message in the [Command] window. (Refer to the next section for details about windows.) Debugger for E0C62 Ver x.x Copyright (C) SEIKO EPSON CORP. 199x Connecting COMx with xxxxx baud rate...done Parameter file: XXXXX.par...
9.3.5 Method of Termination To terminate the debugger, select [Exit] from the [File] menu. You can also input the q command in the [Command] window to terminate the debugger. >q S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) CHAPTER 9: DEBUGGER EPSON...
Depending on the computer used, the windows may differ from the above display depending on the screen resolution, the number of dots in system font, etc. Adjust the size of each window to suit needs. EPSON S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE)
Page 137
• If the driver allows selection of extended function such as acceleration, turn the functions off. • If the problem is not fixed using the above, try the standard driver supplied with Windows95 (NT). S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE)
[Command] window. When writing to a log file, the content of the write data is displayed in the window. (Refer to the description for log command.) Note: The [Command] window cannot be closed. EPSON (S1C60/62 FAMILY ASSEMBLER PACKAGE) S5U1C62000A MANUAL...
(as, pe, pf, or pm command), the display contents are updated. In this case the [Source] window updates its display contents so that the current PC address can always be displayed. The display contents are also updated when the display mode is changed. S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) CHAPTER 9: DEBUGGER...
Page 140
Any labels and words can be found using the [Search Label] pull-down list box or the [Find] button on the [Source] window. [Find] button mark at the beginning of the line. [Search Label] pull-down list box EPSON (S1C60/62 FAMILY ASSEMBLER PACKAGE) S5U1C62000A MANUAL...
(highlight) the data to be modified and type a hexadecimal number (0–9, a–f), then press [Enter]. The register data will be modified with the entered number. S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) (1) Displaying data memory contents The [Data] window displays the memory dump results in hexadecimal numbers.
[Trace] window does not accept scrolling and resizing operations. To display the latest contents of this window, execute the td command or temporarily close the [Trace] window and then reopen it. EPSON (S1C60/62 FAMILY ASSEMBLER PACKAGE) S5U1C62000A MANUAL...
Selecting a break address by clicking on the address line is valid for only the lines that have actual code, and is invalid for the source-only lines. S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE)
It performs the same function when the com command is executed. [Reset CPU] This menu item resets the CPU. It performs the same function when the rst command is executed. S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) CHAPTER 9: DEBUGGER EPSON...
These sub menu items perform the same functions as execut- ing the u, sc, and m command, respectively. [Data Dump] This menu item opens or activates the [Data] window and displays the data memory contents from the memory start address. EPSON (S1C60/62 FAMILY ASSEMBLER PACKAGE) S5U1C62000A MANUAL...
This menu shows the currently opened window names. Selecting one activates the window. 9.6.9 [Help] Menu [Contents...] This menu item displays the contents of help topics. [About Db62...] This menu item displays an About dialog box for the debugger. S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) CHAPTER 9: DEBUGGER EPSON...
[Enter] key is pressed without entering a parameter in some guidance session of a command, the system assumes the command is canceled and does not execute it..Input data according to the guidance (underlined part). EPSON (S1C60/62 FAMILY ASSEMBLER PACKAGE) S5U1C62000A MANUAL...
Page 149
Step execution using the [Enter] key When the [Enter] key is pressed without entering any command, the debugger single steps the instruction at the current PC address if a program has been loaded. S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) ... Command to modify data memory.
Creating a command file Create a command file as a text file using an editor. Although there are no specific restrictions on the extension of a file name, Seiko Epson recommends using ".cmd". Command files can also be created using the rec command. The rec command creates a command file and saves the executed commands to the file.
[Command] window except for the program display commands (u, sc, m), regardless of whether operation is in log mode or normal mode. For the display format in the [Command] window, refer to each command description. output turned off in normal mode). EPSON (S1C60/62 FAMILY ASSEMBLER PACKAGE) S5U1C62000A MANUAL...
To debug a program using the source display and symbols, the object file must be in IEEE-695 format read into the debugger. If any other program file is read, only the unassemble display is produced. S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) Table 9.8.1.1 Files and load commands...
This mode is available only when an absolute object file that contains source debugging information has been loaded. Menu [View | Program | Unassemble] [View | Program | Source Display] [View | Program | Mix Mode] EPSON (S1C60/62 FAMILY ASSEMBLER PACKAGE) Button S5U1C62000A MANUAL...
Page 155
>bp @SUB1@test.s (3) Displaying symbol list All symbols used in the program and the defined addresses can be displayed in the [Command] window. Table 9.8.2.2 Command to display symbol list S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) Function Command Displaying symbol list...
[Data] window. (3) Rewriting specified area An entire specified area is rewritten with specified data. (4) Copying specified area The content of a specified area is copied to another area. EPSON Menu – – – S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE)
Page 157
0.5 seconds by the on-the-fly function. (2) Modifying register values The contents of the above registers can be set to any desired value. The register values can be directly modified on the [Register] window. S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) Function Command...
When the program does not stop, use this button to forcibly stop it. 65535 µsec = 425.9775 msec, error = 6.5 µsec 65535 steps, error = 1 step EPSON Menu Button [Run | Go] S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE)
Page 159
Because the PC is set to 0x0100, the [Source] window is redisplayed beginning with that address. The PC value in the [Register] window is redisplayed. The data memory contents are not modified. S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) CHAPTER 9: DEBUGGER...
[Break | Breakpoint Set...] and then the [Break] button cancels the Function Command [Break | Data Break...] [Break | Data Break...] EPSON Button as they are displayed in the [Source] mark will be placed at the Menu S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE)
Page 161
"Middle" is selected as the trace condition, the target program temporarily breaks when the set break condition is met but restarts for sampling trace information. The program execution is terminated after the trace information is completely sampled. S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) Command Menu [Break | Register Break...]...
(1) Trace area Multiple program address ranges can be specified as the trace areas. The debugger samples trace information from the set areas only. Command Menu [Trace | Trace Area...] [Trace | Trace Condition...] EPSON (S1C60/62 FAMILY ASSEMBLER PACKAGE) S5U1C62000A MANUAL...
Page 163
The trace information can be displayed beginning from a specified cycle. The display contents are as described above. Table 9.8.6.2 Command/menu item to display trace information Display trace information S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) Break point 8,192 cycles Trace sampling range...
Page 164
Table 9.8.6.4 Command/menu item to save trace information Save trace information Function Command [Trace | Trace Search...] Function Command [Trace | Trace File...] EPSON Menu Menu S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE)
Because the executed address range is displayed as shown below, it is possible to know which areas have not been executed. Coverage Information: 0: 0100..0108 1: 0200..020f S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) Table 9.8.7.1 Coverage commands Function Command Display coverage information...
Record commands to a command file Turn log output on or off Display map information Turn on-the-fly display on or off Set time or step measurement mode Report results of ICE self diagnostic test Quit debugger EPSON (S1C60/62 FAMILY ASSEMBLER PACKAGE) Function Page S5U1C62000A MANUAL...
• The input commands are case-insensitive, you can use either upper case or lower case letters or even mixed. • An error results if the number of parameters is not correct when you input a command using direct input mode. Error : number of parameter. S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) CHAPTER 9: DEBUGGER EPSON...
... Address is input..Mnemonic is input. : LD A,0xF ... Ignored : LD B,0xA ... Command is terminated. : JP LOOP EPSON ... Symbol is used..Source file name is input. S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE)
Page 169
"q " is input to terminate the command in mix display mode. • Although the contents of the unassemble display are modified by rewriting code, those of source display remain unchanged. GUI utility None S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) CHAPTER 9: DEBUGGER EPSON...
GUI utility None (guidance mode) last program memory address, 0 input code ... Address is input..Code is input..Address 0x101 is skipped..Command is terminated. EPSON 0xfff S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE)
[Source] window are updated automatically. • Although the contents of the unassemble display are modified by rewriting code, those of source display remain unchanged. GUI utility None S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) (direct input mode) (guidance mode) address2 last program memory address, 0 ...
... Copies the codes within the range from address 0x200 to address 0x2ff to the area from address 0x280..Source area start address is input..Source area end address is input..Destination area start address is input. EPSON S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE)
00f0:!0!0!0!0!0 / / / > "/" indicates an unused address. "!" indicates that the address contains write-only bits or read-only bits. S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) (direct input mode) last data memory address If both <address1> and <address2> are not defined, the [Data] window is redisplayed beginning with address 0x000.
Page 174
0 0 0 0 0 0 0 0 / / / / / / / / 0 0 0 0 0 / / / 8 9 A B C D E F 0 0 0 0 0 0 0 0 EPSON S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE)
Error : Data out of range, use 0-0xf. • When the contents of the data memory is modified using the de command, the displayed contents of the [Data] window are updated automatically. S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) (direct input mode)
Page 176
GUI utility [Data] window The [Data] window allows direct modification of data. Click the [Data] window and select the dis- played data to be modified then enter a hexadecimal number. EPSON (S1C60/62 FAMILY ASSEMBLER PACKAGE) S5U1C62000A MANUAL...
• When the contents of the data memory is modified using the df command, the displayed contents of the [Data] window are updated automatically. GUI utility None S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) (direct input mode) (guidance mode) last data memory address, 0 ...
... Copies data within the range from address 0x200 to address 0x2ff to the area from address 0x280..Source area start address is input..Source area end address is input..Destination area start address is input. EPSON address3 last data memory address S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE)
GUI utility [View | Register] menu item When this menu item is selected, the [Register] window opens or becomes active and displays the current register contents. S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) Program counter A register B register...
The [Register] window allows direct modification of data. Click the [Register] window, select the displayed data to be modified and enter a value then press [Enter]..Sets PC to 0x0110 and resets all the flags. EPSON (direct input mode) (guidance mode) S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE)
An error results if the input one is not a hexadecimal number or a valid symbol. Error : invalid value. An error results if the limit is exceeded. Error : Program address out of range. S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) CHAPTER 9: DEBUGGER EPSON...
Page 182
When this menu item or button is selected after placing the cursor to the temporary break address line in the [Source] window, the g command with a temporary break is executed. The program execution will be suspended after executing the address at the cursor position. [Go to Cursor] button EPSON (S1C60/62 FAMILY ASSEMBLER PACKAGE) S5U1C62000A MANUAL...
GUI utility [Run | Go from Reset] menu item, [Go from Reset] button When this menu item or button is selected, the gr command is executed. [Go from Reset] button S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) CHAPTER 9: DEBUGGER EPSON...
• The s command (one step) is also executed by pressing [Enter] at the command prompt ">". GUI utility [Run | Step] menu item, [Step] button When this menu item or button is selected, the s command without step count is executed. [Step] button EPSON (S1C60/62 FAMILY ASSEMBLER PACKAGE) S5U1C62000A MANUAL...
GUI utility [Run | Next] menu item, [Next] button When this menu item or button is selected, the n command without step count is executed. [Next] button S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) call _test1 call _test1...
• The debug status, such as memory contents and break conditions, is not reset. GUI utility [Run | Reset CPU] menu item, [Reset] button When this menu item or button is selected, the rst command is executed. [Reset] button EPSON (S1C60/62 FAMILY ASSEMBLER PACKAGE) S5U1C62000A MANUAL...
Error : end address < start address. • When clearing PC break points, the specified addresses or areas that have not been set as PC breakpoints are ignored. The break points within the specified area are cleared. S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) (direct input mode) (guidance mode) ...
Page 188
To clear a breakpoint, select the [Clear] button of the address to be cleared. The [Clear All Breakpoint] button clears all the set breakpoints at the beginning of the address lines in the [Source] window. EPSON (S1C60/62 FAMILY ASSEMBLER PACKAGE) S5U1C62000A MANUAL...
If the address has not been set as a PC breakpoint, this button sets a new PC breakpoint at the address. [Break] button S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) (direct input mode) ... Break points that have been set ...
... Break address is set to 0x100..Data pattern is set to 0b1*1*..R/W condition is set for read and write access. R/W: * ... "2. clear" is selected..? 2 ... Terminated by [Enter] key..? EPSON S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE)
Page 191
GUI utility [Break | Data Break …] menu item When this menu item is selected, a dialog box appears for setting a data break condition. S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) CHAPTER 9: DEBUGGER To set a data break condition, enter an address and a data pattern in the text box, and select R/W condition from the radio buttons.
(direct input mode) GUI utility [Break | Data Break …] menu item When this menu item is selected, a dialog box appears for clearing the set data break condition. (See the bd command.) EPSON (S1C60/62 FAMILY ASSEMBLER PACKAGE) S5U1C62000A MANUAL...
1. set 2. clear >br Register break: None 1. set 2. clear S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) …? <1 | 2> (Command is completed when "2" is selected.) ... "1. set" is selected..? 1 ... Data 0xa is set for A register condition.
Page 194
However, if there is a register of which the condition has not been set (indicated with "---"), no register break condition is set. To clear the register break conditions, click [Clear]. EPSON (S1C60/62 FAMILY ASSEMBLER PACKAGE) S5U1C62000A MANUAL...
(direct input mode) GUI utility [Break | Register Break …] menu item When this menu item is selected, a dialog box appears for clearing the register break conditions. (See the br command.) S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) CHAPTER 9: DEBUGGER EPSON...
... "1. set" is selected..PC condition is input..Data memory address is input..Data pattern is input.."*" masks the condition..Register condition is input.."2. clear" is selected. S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE)
Page 197
GUI utility [Break | Multiple Break …] menu item When this menu item is selected, a dialog box appears for setting multi break conditions. S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) CHAPTER 9: DEBUGGER To set a multiple break, enter each condition in the box and select a R/W condition from the radio buttons, then click [OK].
Format >bmc (direct input mode) GUI utility [Break | Multi Break …] menu item When this menu item is selected, a dialog box appears for clearing multi break conditions. (See the bm command.) EPSON (S1C60/62 FAMILY ASSEMBLER PACKAGE) S5U1C62000A MANUAL...
This command clears all break conditions set by the bp, bd, br and/or bm commands. Format >bac (direct input mode) GUI utility [Break | Break All Clear] menu item When this menu item is selected, the bac command is executed. EPSON (S1C60/62 FAMILY ASSEMBLER PACKAGE) S5U1C62000A MANUAL...
Set to break enable mode. GUI utility [Option | Mode Setting …] menu item When this menu item is selected, a dialog box appears for setting break enable mode. S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) CHAPTER 9: DEBUGGER Select the [Break Enable] button.
[Option | Mode Setting …] menu item When this menu item is selected, a dialog box appears for setting break disable mode. Select the [Break Disable] button in the dialog box. (See the be command.) EPSON (S1C60/62 FAMILY ASSEMBLER PACKAGE) S5U1C62000A MANUAL...
[View | Program | Unassemble] menu item, [Unassemble] button When this menu item or button is selected, the [Source] window opens or activates and displays the program from the current PC address. [Unassemble] button S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) (direct input mode) EPSON...
[View | Program | Source Display] menu item, [Source] button When this menu item or button is selected, the [Source] window opens or activates and displays the program from the current PC address. [Source] button EPSON (S1C60/62 FAMILY ASSEMBLER PACKAGE) S5U1C62000A MANUAL...
Page 205
[View | Program | Mix Mode] menu item, [Mix] button When this menu item or button is selected, the [Source] window opens or activates and displays the program from the current PC address. [Mix] button S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) CHAPTER 9: DEBUGGER EPSON...
• The symbol list can only be displayed when the object file in IEEE-695 format has been read. • The specification of keyword conforms to which defined for assembler tools. GUI utility None (direct input mode) (direct input mode) (direct input mode) EPSON S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE)
[File | Load File …] menu item, [Load File] button When this menu item or button is selected, a dialog box appears allowing selection of an object file to be loaded. [Load File ...] button S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) (direct input mode) (guidance mode)
When this menu item or button is selected, a dialog box appears allowing selection of a hex file to be loaded. [Load Option] button Not used in some microcomputer models (direct input mode) (guidance mode) ... Loads the program files testl.hex and testh.hex..Loads a segment option file. EPSON (S1C60/62 FAMILY ASSEMBLER PACKAGE) S5U1C62000A MANUAL...
Error : no high and low ROM. • An error results when an undefined code is detected, and the execution is terminated. Error : undefined code detected. GUI utility None S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) CHAPTER 9: DEBUGGER EPSON...
ROM. It is checked when loading program from ROM by rp command. • If many non-agreeing data are detected, the display can be interrupted by pressing the [Esc] key. GUI utility None EPSON (S1C60/62 FAMILY ASSEMBLER PACKAGE) S5U1C62000A MANUAL...
Error : Incorrect ROM type (64/128/256/512). GUI utility [Option | ROM Type …] menu item When this menu item is selected, a dialog box appears allowing selection of a ROM type. S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) (direct input mode) (guidance mode) ...
When this menu item is selected, a dialog box appears allowing selection of a trace condition. (direct input mode) (guidance mode) ... "Start" is specified. 3. end ...? 2 Select a condition using the radio button. EPSON S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE)
Trace area: 0100..014f 0250..02ff 1. set 2. clear 3. clear all > S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) (direct input mode) (direct input mode) (guidance mode) endaddr(1–4) last program memory address ... Sets a trace area from address 0x400 to 0x600.
Page 214
When the [Clear] button is clicked, the entered address ranges are cleared. The [Trace All] button set the entire program memory to be traced. EPSON (S1C60/62 FAMILY ASSEMBLER PACKAGE) S5U1C62000A MANUAL...
• You can use this command for multiple times to clear address ranges from trace area. GUI utility [Trace | Trace area …] menu item When this menu item is selected, a dialog box appears for clearing trace areas. (See the ta command.) S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) (direct input mode) endaddr(1–4) last program memory address ...
This command displays the current location of the trace pointer. The pointer points to the location in the trace memory into which the last trace information has been stored. Format >tp (direct input mode) Example >tp ... Current trace pointer value LOC=2058 > GUI utility None EPSON (S1C60/62 FAMILY ASSEMBLER PACKAGE) S5U1C62000A MANUAL...
<num>, the trace data starting from <num> is displayed in the [Trace] window. The display contents of the [Trace] window is updated after an execution of the target program. All trace data can be displayed by scrolling the window. S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) (direct input mode) (guidance mode)
When command execution results are being output to a log file by the log command, the search results are displayed in the [Command] window as well as output to the log file even when the [Trace] window is opened. S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) (direct input mode)
Page 220
[Trace | Trace Search …] menu item When this menu item is selected, a dialog appears for setting a search condition. Select a option using the radio button and enter an address in the text box, then click [OK]. EPSON (S1C60/62 FAMILY ASSEMBLER PACKAGE) S5U1C62000A MANUAL...
• The default value of <num1> is "0", the default value of <num2> is the last location. GUI utility [Trace | Trace File …] menu item When this menu item is selected, a dialog box appears allowing specification of the parameters. S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) (direct input mode) (guidance mode) ...
<address1> is specified, the end address is treated as the maximum program address and coverage information within that range is displayed. GUI utility None (direct input mode) last program memory address EPSON (S1C60/62 FAMILY ASSEMBLER PACKAGE) S5U1C62000A MANUAL...
... 2 sec. of interval is inserted after each command execution. Enter an interval and a file name, then click [OK]. The file name can be selected using a standard file selection dialog box that appears by clicking [Browse...]. EPSON ...? 2 S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE)
A new recording file can also be specified using the [New...] button. S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) ... See Examples for guidance..Displayed if the file is already exists.
A new log file can also be specified using the [New...] button..See Examples for guidance..Displayed if the file is already exists..? 2 ... Logging function toggles when log is input. EPSON (S1C60/62 FAMILY ASSEMBLER PACKAGE) S5U1C62000A MANUAL...
--Segment Area List :0050..007f, Read Only Area :0091, Write Only Area :0450..047f Read & Write Area :0080, Unused Area :0082..008f, > GUI utility None S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) :0080..00ff, 0180..01ff, 0450..047f 0095, 00c9, 00ca, 0081, 00c1, 00c4..00c6, 0093, 0097..009f,...
GUI utility [Option | Mode Setting…] menu item When this menu item is selected, a dialog box appears allowing selection of the on-the-fly display option. Use the [On-the-fly Display] check box for this selection. EPSON (S1C60/62 FAMILY ASSEMBLER PACKAGE) S5U1C62000A MANUAL...
GUI utility [Option | Mode Setting…] menu item When this menu item is selected, a dialog box appears allowing selection of a measurement mode. S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) ... This command toggles the measurement mode. Use the radio buttons for this selection.
[Option | Self Diagnosis] menu item When this menu item is selected, the chk command is executed..normal value: 5F; error value: FF ... address: 110; normal value: 5; error value: F 5 => F. EPSON S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE)
9.9.20 Quit (quit) Function This command quits the debugger. Format >q (direct input mode) GUI utility [File | Exit] menu item Selecting this menu item terminates the debugger. S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) CHAPTER 9: DEBUGGER EPSON...
(All symbol support commands) The chip with the used parameter file cannot support this option function. (lo) Undefined code is detected when loading file. (rp) This data address is read only, cannot be written to. (de) EPSON (S1C60/62 FAMILY ASSEMBLER PACKAGE) S5U1C62000A MANUAL...