beautypg.com

3 generating a cross-reference table, 2 selecting auto-page-set function – Epson S1C62 Family User Manual

Page 35

background image

CROSS ASSEMBLER ASM62XX

S1C62 FAMILY

EPSON

III-5

DEVELOPMENT TOOL REFERENCE MANUAL

3.2 Selecting Auto-Page-Set Function

After the start-up message, the following message is displayed, prompting the user to select the auto-page-
set function.

DO YOU NEED AUTO PAGE SET?(Y/N)

Press the "Y" key if selecting the auto-page-set function, or the "N" key if not selecting it. At this stage, the
user can also return to the DOS command level by entering "CTRL" + "C" key.

Auto-page-set function

When the program branches to another page through a branch instruction such as JP, the branch-
destination page must be set using the PSET instruction before executing the branch instruction.
The auto-page-set function automatically inserts this PSET instruction. It checks whether the branch
instruction page is the same as the branch-destination one. If the page is different, the function inserts
the "PSET" instruction. If the page is the same, the function performs no operation.
Therefore, do not select the auto-page-set function if "PSET" instructions have been correctly included
in the source file.

Note

When auto-page-set is selected, there are restricted items related to source programming. See
"4.3.1 Label".

3.3 Generating a Cross-Reference Table

After the auto-page-set function has been selected, the following message is output, prompting the user to
select cross-reference table generation.

DO YOU NEED CROSS REFERENCE TABLE?(Y/N)

Press the "Y" key if generating the cross-reference table, or the "N" key if not generating it. At this stage,
the user can also return to DOS command level by entering "CTRL" + "C" key.

Note

If the assembly listing file output destination (p option) is specified as Z (listing not generated) at the
start of ASM62XX, the above message is not output and the cross-reference table is not generated.

Cross-reference table

The cross-reference table lists the symbols and their locations in the source file, and is output at the end
of the assembly listing file in the following format:

CROSS REFERENCE TABLE PAGE X- 1
LABEL1 4# 29 36 ....
LABEL2 15# 40
: : :

Symbol

Number of the program statement
(# indicates the number of the statement at which the symbol was defined)

This table should be referenced during debugging. An error such as duplicate definition of a symbol can
be easily detected.