Sc (Source Code) - Epson S5U1C63000A User Manual

Cmos 4-bit single chip microcomputer manual
Table of Contents

Advertisement

CHAPTER 8: DEBUGGER
sc
(source code)
Function
This command displays the contents of the program source file in the [Source] window. The display
contents are as follows:
• Line number in the source file
• Source code
Format
>sc [<address>]
<address>: Start address for display; hexadecimal or symbol (IEEE-695 format only)
Condition: 0
address
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 16 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 (displayed in the [Register]
window). If <address> is specified, the display begins with <address>.
>sc
ldb
%ba,SP1_INIT_ADDR
ldb
%sp1,%ba
ldb
%ba,SP2_INIT_ADDR
ldb
%sp2,%ba
calr INIT_RAM_BLK1
LOOP:
ldb
%ext,INC_RAM_BLK1@rh
calr INC_RAM_BLK1@rl
ldb
%ext,LOOP@rh
jr
LOOP@rl
>
202
(direct input mode)
last program memory address
; set SP1
; set SP2
; initialize RAM block 1
; increment RAM block 1
; infinity loop
EPSON
S5U1C63000A MANUAL
(S1C63 FAMILY ASSEMBLER PACKAGE)

Advertisement

Table of Contents
loading

Table of Contents