![Panasonic PanaXSeries MN1030 Series Скачать руководство пользователя страница 318](http://html.mh-extra.com/html/panasonic/panaxseries-mn1030-series/panaxseries-mn1030-series_user-manual_262372318.webp)
Chapter 16 Notes on the Operating Environment
306 Personal Computer Versions
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.
The assembler will detect the errors, so it will generate an error file by redirection.
AS103
MAIN.ASM > ERROR
The contents of the generated error file (ERROR) are as follows.
_CODE
section
CODE, PUBLIC, 1
data
equ
-1
main
mov
0x11, D0
move
0x11, D0
mov
D0, (data)
main
end
Содержание PanaXSeries MN1030 Series
Страница 1: ...MICROCOMPUTER MN1030 MN1030 Series Cross Assembler User s Manual Pub No 13110 120E ...
Страница 2: ......
Страница 13: ...1 Chapter 1 Getting Started ...
Страница 25: ...2 Chapter 2 Program Development Flow ...
Страница 32: ...Chapter 2 Program Development Flow 20 Programming with Assembler ...
Страница 33: ...3 Chapter 3 Introduction to Operation ...
Страница 54: ...Chapter 3 Introduction to Operation 42 Conditional Assembly and Linking ...
Страница 55: ...4 Chapter 4 Optimization ...
Страница 71: ...5 Chapter 5 Using Assembler ...
Страница 95: ...6 Chapter 6 Using Linker ...
Страница 128: ...Chapter 6 Using Linker 116 Instruction RAM Support ...
Страница 129: ...7 Chapter 7 Types of Source Statements ...
Страница 138: ...Chapter 7 Type of Source Statements 126 Blank Statements ...
Страница 139: ...8 Chapter 8 Writing Source Statements ...
Страница 157: ...9 Chapter 9 Writing Machine Language Instruction Statements and Directive Statements ...
Страница 192: ...Chapter 9 Writing Machine Language Instructions and Directive Statements 180 Writing Directive Statements ...
Страница 193: ...10 Chapter 10 Writing Assembler Control Statements ...
Страница 217: ...11 Chapter 11 Writing Macro Control Statements ...
Страница 236: ...Chapter 11 Writing Macro Control Statements 224 irpc ...
Страница 237: ...12 Chapter 12 List of Machine Language Instructions ...
Страница 261: ...13 Chapter 13 Error Messages ...
Страница 276: ...Chapter 13 Error Messages 264 Linker Errors ...
Страница 277: ...14 Chapter 14 Readinig List Files ...
Страница 285: ...15 Chapter 15 Using Library Manager ...
Страница 309: ...16 Chapter 16 Notes on Operating Environment ...
Страница 321: ...17 Chapter 17 Appendix ...
Страница 338: ... 4 Index ...