
5.SYMBOLIC MACRO PROGRAM B-66264EN/01
- 24 -
Example
/* SYMBOL DEFINE
@COUNT1 #100
>JUMP1 100
>SKIP 200
/*
Program
O0002 ;
GOTO JUMP1 ;
IF[COUNT1 LE 0]GOTO SKIP ;
SKIP ;
JUMP1 M99 ;
→
Meaning
GOTO 100 ;
IF[#100 LE 0]GOTO 200 ;
N200 ;
N100 M99 ;
- 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.
- 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 \MCOMP30I\TOOL\SYSTEM.DEF
/*
Program
O0003 ;
CMACRO1 =5 ;
RETURN ;
→
Meaning
#8500 =5 ;
M99 ;
- Include file (\MCOMP30I\TOOL\SYSTEM.DEF)
@CMACRO1 #8500 /* Conversation MACRO - 1 MAIN
@RETURN M99 /* Return to main program.