Epson S5U1C62000A Manual

Epson cmos 4-bit single chip microcomputer manual
Table of Contents

Advertisement

Quick Links

MF1121 - 03a
CMOS 4 - BIT SINGLE CHIP MICROCOMPUTER
S5U1C62000A
Manual
(S1C60/62 Family Assembler Package)

Advertisement

Table of Contents
loading

Summary of Contents for Epson S5U1C62000A

  • 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 3 Configuration of product number Devices 60N01 Development tools S5U1 60R08 0A01 Packing specifications 00 : Besides tape & reel 0A : TCP BL 0B : Tape & reel BACK 0C : TCP BR 0D : TCP BT 0E : TCP BD 0F : Tape &...
  • 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...
  • Page 7: Table Of Contents

    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 ...
  • Page 8 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 EPSON (S1C60/62 FAMILY ASSEMBLER PACKAGE) S5U1C62000A MANUAL...
  • Page 9 7.5.2 Intel-HEX Format ... 108 7.5.3 Motorola-S Format ... 109 7.5.4 Conversion Range ... 109 7.6 Error/Warning Messages ... 110 7.6.1 Errors ... 110 7.6.2 Warning ... 110 7.7 Precautions ... 111 S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) ... 105 EPSON CONTENTS...
  • Page 10 9.7 Method for Executing Commands ... 136 9.7.1 Entering Commands from Keyboard ... 136 9.7.2 Executing from Menu or Tool Bar ... 138 9.7.3 Executing from a Command File ... 139 9.7.4 Log File ... 140 ... 112 EPSON S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE)
  • Page 11 9.9.9 Program Display ... 191 9.9.10 Symbol Information ... 194 9.9.11 Load File ... 195 9.9.12 ROM Access ... 197 S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) as (assemble mnemonic) ... 156 pe (program memory enter) ... 158 pf (program memory fill) ... 159 pm (program memory move) ...
  • Page 12 (record commands to a file) ... 213 log (log) ... 214 ma (map information) ... 215 otf (on-the-fly display) ... 216 tim (time or step mode) ... 217 chk (self diagnostic test) ... 218 q (quit) ... 219 EPSON S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE)
  • Page 13: Chapter 1 General

    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...
  • Page 14: Tool Composition

    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...
  • Page 15: Chapter 2 Installation

    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.
  • Page 16: Installation Method

    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.
  • Page 18: Directories And Files After Installation

    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...
  • Page 19: Chapter 3 Software Development Procedure

    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...
  • Page 20: Development Using Work Bench

    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)
  • Page 21: Creating A New Project

    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)
  • Page 23: Configuration Of Tool Options

    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...
  • Page 24: Building An Executable Object

    [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)
  • Page 25: Debugging

    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)
  • Page 26: Chapter 4 Work Bench

    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)
  • Page 27: Work Bench Windows

    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...
  • Page 28: Window Manipulation

    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...
  • Page 32: Toolbar And Buttons

    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...
  • Page 33: Build Toolbar

    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...
  • Page 34: Toolbar Manipulation

    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...
  • Page 35: Menus

    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.
  • Page 36: Edit] Menu

    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...
  • Page 37: Insert] Menu

    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.
  • Page 38: Window] Menu

    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...
  • Page 39: Project And Work Space

    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)
  • Page 40: Inserting Sources Into A Project

    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...
  • Page 41: Project] Window

    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.
  • Page 42: Files In The Work Space Folder

    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)
  • Page 43: Source Editor

    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.
  • Page 44: Loading And Saving Files

    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...
  • Page 45: Edit Function

    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...
  • Page 48: Tag Jump Function

    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)
  • Page 49: Printing

    [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...
  • Page 50: Debugging

    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...
  • Page 51: Executing Other Tools

    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...
  • Page 53: Tool Option Settings

    [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...
  • Page 54: Linker Options

    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...
  • Page 56: Debugger Options

    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...
  • Page 57: Short-Cut Key List

    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.
  • Page 58: Precautions

    (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...
  • Page 59: Chapter 5 Assembler

    ".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...
  • Page 60: Output Files

    -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...
  • Page 61: Starting Method

    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...
  • Page 62: Messages

    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.
  • Page 63: Grammar Of Assembly Source

    ; 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...
  • Page 65: Instructions (Mnemonics And Pseudo-Instructions)

    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...
  • Page 66: Labels

    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.
  • Page 68: Comments

    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)
  • Page 69: Numerical Notations

    "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...
  • Page 70: Symbols

    ... 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...
  • Page 72: Location Counter Symbol

    ... -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)
  • Page 73: Section Management

    .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...
  • Page 74: Sample Definition Of Sections

    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)
  • Page 75: Assembler Pseudo-Instructions

    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...
  • Page 76: Include Instruction (#Include)

    • 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...
  • Page 77: Define Instruction (#Define)

    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...
  • Page 79: Macro Instructions (#Macro

    • 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...
  • Page 81: Conditional Assembly Instructions (#Ifdef

    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...
  • Page 83: Section Defining Pseudo-Instructions (.Code, .Bss)

    .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...
  • Page 84: Location Defining Pseudo-Instructions (.Org, .Bank, .Page, .Align)

    ... 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...
  • Page 89: Symbol Defining Pseudo-Instruction (.Set)

    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...
  • Page 90: Data Defining Pseudo-Instruction (.Codeword)

    • 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...
  • Page 91: Area Securing Pseudo-Instructions (.Comm, .Lcomm)

    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...
  • Page 92: Global Declaration Pseudo-Instruction (.Global)

    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...
  • Page 93: List Control Pseudo-Instructions (.List, .Nolist)

    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...
  • Page 94: Comment Adding Function

    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 95: Summary Of Compatibility With The Older Tool

    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#### << >>...
  • Page 96: Relocatable List File

    INC_RAM_BLK1 LOOP .bss .org 0x000 .comm RAM_BLK1,4 EPSON ;SP init addr = 0x80 ; subroutine ; subroutine ; set SP ; initialize RAM block 1 ; increment RAM block 1 ; infinity loop S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE)
  • Page 97: Sample Executions

    LOOP ;***** RAM block ***** .bss .org 0x000 .comm RAM_BLK1, 4 .stabn 0, FileEnd S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) ;SP init addr = 0x80 ; subroutine ; subroutine ; set SP ; initialize RAM block 1 ; increment RAM block 1 ;...
  • Page 98 Error file Assembler 62 Ver x.xx Error log file MAIN.ERR Sun May 03 11:33:39 1998 Assembler 62 Ver x.xx Copyright (C) SEIKO EPSON CORP. 1998 Created preprocessed source file MAIN.MS Created relocatable list file MAIN.LST Created error log file MAIN.ERR Created relocatable object file MAIN.O...
  • Page 99: Error/Warning Messages

    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.
  • Page 100: Warning

    (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...
  • Page 101: Chapter 6 Linker

    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...
  • Page 102: Output Files

    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...
  • Page 103: Starting Method

    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...
  • Page 106: Messages

    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.
  • Page 107: Linker Command File

    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 ;...
  • Page 108: Link Map File

    ------------ --- 0x0100 ------------ --- 0x0100 ------------ --- 0x0100 ------------ --- 0x0100 ------------ --- 0x0100 ------------ --- 0x0100 ------------ --- 0x0100 ------------ --- 0x0100 ------------ --- Type File SecNbr MAIN.S ------------ --- EPSON (S1C60/62 FAMILY ASSEMBLER PACKAGE) SecNbr S5U1C62000A MANUAL...
  • Page 109: Symbol File

    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...
  • Page 110: Absolute List File

    0x2 call INC_RAM_BLK1 LOOP Source statement EPSON ;SP init addr = 0x80 ; subroutine ; subroutine ; set SP ; initialize RAM block 1 CL_AB ; increment RAM block 1 ; infinity loop S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE)
  • Page 111: Cross Reference File

    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 112: Linking

    ; Relocatable CODE section start address ; Relocatable BSS section start address ; BSS section start address of test2.o ; Output file name ; Input file 1 ; Input file 2 EPSON (.org is used.) S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE)
  • 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...
  • Page 114: Automatic Insertion/Removal/Correction Of "Pset" Instruction

    ... "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...
  • Page 115: Error/Warning Messages

    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.
  • Page 116: Precautions

    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...
  • Page 117: Chapter 7 Hex Converter

    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...
  • Page 118: Starting Method

    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...
  • Page 119: Messages

    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.
  • Page 120: Output Hex Files

    (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)
  • Page 121: Motorola-S Format

    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...
  • Page 122: Error/Warning Messages

    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...
  • Page 123: Precautions

    (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...
  • Page 124: Chapter 8 D Isassembler

    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...
  • Page 125: Starting Method

    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...
  • Page 126: Messages

    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.
  • Page 127: Disassembling Output

    0205 0206 0207 0208 0209 020a 020b 020c 020d 020e 020f S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) ; main.s ; test program (main routine) ;***** INITIAL SP ADDRESS DEFINITION ***** #define SP_INIT_ADDR 0x80 ;***** BOOT, LOOP ***** .global INIT_RAM_BLK1 .global INC_RAM_BLK1 .org...
  • Page 128 .org 0x200 label1: a,0x0 xp,a x,0x0 lbpx mx,0x0 lbpx mx,0x0 label2: a,0x0 xp,a x,0x0 a,0x0 acpx mx,a acpx mx,a acpx mx,a mx,a EPSON (S1C60/62 FAMILY ASSEMBLER PACKAGE) S5U1C62000A MANUAL...
  • Page 129 PSET CALL LABEL1 LABEL3: PSET CALL LABEL2 LABEL3 .ORG 0X200 LABEL1: A,0X0 XP,A X,0X0 LBPX MX,0X0 LBPX MX,0X0 LABEL2: A,0X0 XP,A X,0X0 A,0X0 ACPX MX,A ACPX MX,A ACPX MX,A MX,A S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) CHAPTER 8: DISASSEMBLER EPSON...
  • Page 130: Error/Warning Messages

    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...
  • Page 131: Chapter 9 D Ebugger

    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...
  • Page 132: Output Files

    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...
  • Page 133: Start-Up Format

    -Usage- db62^<parameter file name>^[startup option] Options: command file: ... specifies a command file -comX(X:1-4) ... com port, default com1 ... baud rate, 1200, 4800, 9600, 19200(default) S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) CHAPTER 9: DEBUGGER EPSON...
  • Page 134: Start-Up Messages

    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...
  • Page 135: Method Of Termination

    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...
  • Page 136: Windows

    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)
  • Page 138: Command] Window

    [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...
  • Page 139: Source] Window

    (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...
  • Page 141: Data] Window

    (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.
  • Page 142: Trace] Window

    [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...
  • Page 143: Tool Bar

    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)
  • Page 144: Break] Button

    9.5.7 [Help] Button This button displays an About dialog box for the debugger. EPSON (S1C60/62 FAMILY ASSEMBLER PACKAGE) S5U1C62000A MANUAL...
  • Page 145: Menu

    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...
  • Page 146: Break] Menu

    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...
  • Page 147: Option] Menu

    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...
  • Page 148: Method For Executing Commands

    [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.
  • Page 150: Executing From Menu Or Tool Bar

    [View | Trace] [Option | Log...] [Option | Record...] [Option | Mode Setting...] [Option | Rom Type...] EPSON (S1C60/62 FAMILY ASSEMBLER PACKAGE) Button – – – – – – – – – – – – – – – – S5U1C62000A MANUAL...
  • Page 151: Executing From A Command File

    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.
  • Page 152: Log 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...
  • Page 153: Debug Functions

    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...
  • Page 154: Source Display And Symbolic Debugging Function

    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...
  • Page 156: Displaying And Modifying Program, Data, And Register

    [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...
  • Page 158: Executing Program

    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...
  • Page 160: Break Functions

    [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...]...
  • Page 162: Trace Functions

    (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)
  • Page 165: Coverage

    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...
  • Page 166: Command Reference

    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...
  • Page 167: Reference For Each Command

    • 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...
  • Page 168: Program Memory Operation

    ... 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...
  • Page 170: Pe (Program Memory Enter)

    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)
  • Page 171: Pf (Program Memory Fill)

    [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 ...
  • Page 172: Pm (Program Memory Move)

    ... 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)
  • Page 173: Data Memory Operation

    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)
  • Page 175: De (Data Memory Enter)

    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...
  • Page 177: Df (Data Memory Fill)

    • 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 ...
  • Page 178: Dm (Data Memory Move)

    ... 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)
  • Page 179: Register Operation

    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...
  • Page 180: Rs (Register Set)

    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)
  • Page 181: Program Execution

    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...
  • Page 183: Gr (Go After Reset Cpu)

    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...
  • Page 184: S (Step)

    • 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...
  • Page 185: N (Next)

    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...
  • Page 186: Cpu Reset

    • 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...
  • Page 187: Break

    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...
  • Page 189: Bpc (Break Point Clear)

    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 ...
  • Page 190: Bd (Data Break)

    ... 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.
  • Page 192: Bdc (Data Break Clear)

    (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...
  • Page 193: Br (Register Break)

    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...
  • Page 195: Brc (Register Break Clear)

    (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...
  • Page 196: Bm (Multiple Break)

    ... "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].
  • Page 198: Bmc (Multiple Break Clear)

    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...
  • Page 199: Bl (Break Point List)

    (direct input mode) Example >bl Data Break Condition: ADDR : 100 DATA: 1*1*B Register Break Condition: X:060 PC Break List: 0: 0100 1: 0200..0300 > GUI utility None S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) R/W: * IDZC:1*0*B EPSON CHAPTER 9: DEBUGGER...
  • Page 200: Bac (Break All Clear)

    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...
  • Page 201: Be (Break Enable)

    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.
  • Page 202: Bsyn (Break Disable)

    [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...
  • Page 203: Program Display

    [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...
  • Page 204: Sc (Source Code)

    [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...
  • Page 206: Symbol Information

    • 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)
  • Page 207: Load File

    [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)
  • Page 208: Lo (Load Option)

    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...
  • Page 209: Rom Access

    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...
  • Page 210: Vp (Rom Program Verify)

    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...
  • Page 211: Rom (Rom Type)

    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) ...
  • Page 212: Trace

    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)
  • Page 213: Ta (Trace Area)

    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...
  • Page 215: Tac (Trace Area Clear)

    • 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 ...
  • Page 216: Tp (Trace Pointer)

    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...
  • Page 217: Td (Trace Data Display)

    <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)
  • Page 218 0100 000 100 0100 000 100 0100 000 100 0101 000 100 0100 R000=0 001 100 0110 R001=0 EPSON (S1C60/62 FAMILY ASSEMBLER PACKAGE) data OtherOP W07E=0 W07D=6 W001=0 W003=0 data OtherOP W003=0 R07E=0 R07F=1 W07E=0 W07D=8 W000=1 W001=0 S5U1C62000A MANUAL...
  • Page 219: Ts (Trace Search)

    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...
  • Page 221: Tf (Trace File)

    • 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) ...
  • Page 222: Cv (Coverage)

    <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...
  • Page 223: Cvc (Coverage Clear)

    (coverage clear) Function This command clears the coverage information. Format >cvc (direct input mode) GUI utility None S5U1C62000A MANUAL (S1C60/62 FAMILY ASSEMBLER PACKAGE) CHAPTER 9: DEBUGGER EPSON...
  • Page 224: Command File

    ... 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)
  • Page 225: Rec (Record Commands To A File)

    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.
  • Page 226: Log (Log)

    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...
  • Page 227: Map Information

    --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,...
  • Page 228: Mode Setting

    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...
  • Page 229: Tim (Time Or Step Mode)

    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.
  • Page 230: Self Diagnosis

    [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)
  • Page 231: Quit

    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...
  • Page 232: Error/Warning Messages

    (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...
  • Page 233: Q Uick R Eference

    S1C62 Family Assembler Package Quick Reference...
  • Page 254 EPSON HONG KONG LTD. 20/F., Harbour Centre, 25 Harbour Road Wanchai, Hong Kong Phone: +852-2585-4600 Fax: +852-2827-4346 Telex: 65542 EPSCO HX EPSON TAIWAN TECHNOLOGY & TRADING LTD. 10F, No. 287, Nanking East Road, Sec. 3 Taipei Phone: 02-2717-7360 Fax: 02-2712-9164 Telex: 24444 EPSONTB HSINCHU OFFICE 13F-3, No.
  • Page 255 S5U1C62000A Manual (S1C60/62 Family Assembler Package) ELECTRONIC DEVICES MARKETING DIVISION EPSON Electronic Devices Website http://www.epsondevice.com First issue September, 1998 Printed March, 2002 in Japan...

Table of Contents