Error Correction Using Tag Jumps - Panasonic PanaXSeries MN1030 Series User Manual

Panasonic microcomputer user's manual
Table of Contents

Advertisement

Chapter 16 Notes on the Operating Environment

16.2.6 Error Correction Using Tag Jumps

This section describes a convenient way to fix errors. When code mistakes, syntax errors, or other
errors and warnings occur in a source file, further development cannot proceed unless they are fixed.
In long source files, it can be a lot of work to find the source statements in which errors and warnings
were detected.
The error correction method described in this section uses the tag jump function of editors such as
MIFES, etc.
This assumes the necessity of an error file that incorporates tag jumps.
Assembler error messages implement the tag jump function. When the assembler detects an error, it
outputs an error message to the display. It will also output error messages to the list file if the 1 option
was specified.
When the 1 option has not been specified and the assembler detects errors, you can assemble again
such that errors are not displayed to the screen but are redirected to an error files that the assembler
generates. The list file will include correct source statements in which errors were not detected, while
the file created by redirection will consist only of source statements in which errors were detected. It is
accordingly faster to access the file created by redirection when the source file is large.
Generate error file
The example below shows the generation of an error of an error file (ERROR9 by redirection. This
example assembles MAIN.ASM and outputs error messages to the file ERROR instead of the screen.
First assemble a file that actually includes errors and generate an error file. The following source file
(MAIN.ASM) includes two errors.
_CODE
data
main
main
The assembler will detect the errors, so it will generate an error file by redirection.
AS103
The contents of the generated error file (ERROR) are as follows.
306 Personal Computer Versions
section
CODE, PUBLIC, 1
equ
-1
mov
0x11, D0
move
0x11, D0
mov
D0, (data)
end
MAIN.ASM > ERROR

Advertisement

Table of Contents
loading

Table of Contents