
B–66102E/10
5. SYMBOLIC MACRO PROGRAM
29
Example)
@COUNT1 #100
>JUMP1 100
>SKIP 200
/
:
O0002 ; ==> O0002 ;
GOTO JUMP1 ; GOTO 100 ;
IF[COUNT1 LE 0]GOTO SKIP ; IF[#100 LE 0]GOTO 200 ;
SKIP ; N200 ;
JUMP1 M99 ; N100 M99 ;
(6) Automatic conversion of hiragana and kanji codes
Hiragana and kanji, when coded in quotation marks and
parentheses as (’
’), can be auto-matically converted to internal
macro compiler codes by coding.
(’
’) ==> (:3929 3671 3872 3439
2437 245E 2439
:)
Kanji and hiragana must be coded using full-size characters, and
alphanumeric characters, spaces, special symbols must be coded
using half-size characters.
Specifying a compiling condition as -FS0 enables the characters
usable in the Series 0 to be checked. When -FS0 is specified, the
characters unusable in the Series 0 cause a compiling error.
(This specification is only effective for FAPT MACRO Compiler
Version 02.1 and later versions.)
MCOMP0 TEST -FS0
(7) Reference to external file ($INCLUDE control statement)
By using the $INCLUDE control statement, a program, symbol
definition, and so forth contained in a separate file can be referenced.
With this function, definitions and processing common to multiple
programs can be specified in a separate file so that each program file
can reference those definitions and processing.
Example)
Program file
/:
$INCLUDE \MCOMP\TOOL\SYSTEM.DEF
/
:
O0003 ; ==> O0003 ;
TAIWAP1 =5 ; #8500 =5 ;
RETURN ; M99 ;
Include file (\MCOMP\TOOL\SYSTEM.DEF)
/
:
@TAIWAP1 #8500
@RETURN M99
/
: