CHAPTER 13 S1C88 FAMILY DEBUGGER
172
EPSON
S5U1C88000C MANUAL II
WORKBENCH/DEV TOOLS/OLD ASSEMBLER
sc
(source code)
Function
This command displays the contents of the program source file in the [Source] window.
Format
>sc [<address>]
↵
(direct input mode)
<address>: Start address for display; hexadecimal or symbol (IEEE-695 format only)
Condition: 0
≤
address
≤
last program memory address (0x7fffff)
Display
(1) When [Source] window is opened
If <address> is not specified, display in the [Source] window is changed to the source display mode.
If <address> is specified, display in the [Source] window is changed to the source display mode. At
the same time, code is displayed beginning with <address>.
(2) When [Source] window is closed
The 17 lines of source code are displayed in the [Command] window. The system then waits for a
command input.
If <address> is not specified, this display begins with the current PC. If <address> is specified, the
display begins with <address>.
>sc
↵
{
#pragma asm
GLOBAL
__START
__START:
;========================================================================
;=================== system initialization ============================
;========================================================================
LD
SP,#@DOFF(__lc_es)
; stack pointer initialize
LD
BR,#0FFh
; BR register initialize to I/O area
;--------------- bus mode setting -------------------------------------
; MCU & MPU mode
LD
[BR:00h],#0
; Single Chip mode
; /CE0,/CE2,/CE3,/CE1:disenabled
>