
9. EDITING PROGRAMS
B–63084EN/02
OPERATION
580
Unlike ordinary programs, custom macro programs are modified,
inserted, or deleted based on editing units.
Custom macro words can be entered in abbreviated form.
Comments can be entered in a program.
Refer to the section 10.1 for the comments of a program.
When editing a custom macro already entered, the user can move the
cursor to each editing unit that starts with any of the following characters
and symbols:
(a) Address
(b)# located at the start of the left side of a substitution statement
(c) /, (,=, and ;
(d)First character of IF, WHILE, GOTO, END, DO, POPEN, BPRNT,
DPRNT and PCLOS
On the CRT screen, a blank is placed before each of the above
characters and symbols.
(Example) Head positions where the cursor is placed
N
001 X–#100 ;
#1 =123 ;
N002 /2 X[12/#3] ;
N003 X–SQRT[#3/3:[#4+1]] ;
N004 X–#2 Z#1 ;
N005 #5 =1+2–#10 ;
IF[#1NE0] GOTO10 ;
WHILE[#2LE5] DO1 ;
#[200+#2] =#2:10 ;
#2 =#2+1 ;
END1 ;
When a custom macro word is altered or inserted, the first two characters
or more can replace the entire word.
Namely,
WHILE → WH GOTO → GO XOR → XO AND → AN
SIN → SI ASIN → AS COS → CO ACOS → AC
TAN → TA ATAN → AT SQRT → SQ ABS → AB
BCD → BC BIN → BI FIX → FI FUP → FU
ROUND → RO END → EN POPEN → PO BPRNT → BP
DPRNT → DP PCLOS→PC EXP → EX THEN → TH
(Example) Keying in
WH [AB [#2 ] LE RO [#3 ] ]
has the same effect as
WHILE [ABS [#2 ] LE ROUND [#3 ] ]
The program is also displayed in this way.
9.7
EDITING OF CUSTOM
MACROS
Explanations
D Editing unit
D Abbreviations of custom
macro word