8
Delete last specified macro.
9
Make last specified macro temporary.
10
Make last specified macro pennanent.
Example: Macros
The following program loads and runs a macro. The macro moves an inch
and a half right and down three inches from the top left comer of the page,
where it prints a 25 percent gray-scale bar. It then ejects the paper.
100 LPRINT CHR$(27);"&f6Xn
200 LPRINT CHR$(27);"&flY"
300 LPRINT CHR$(27);"&fOX"
400 LPRINT CHR$(27);"*p450~12OOY";
500 LPRINT CHR$(27);"*c18Oh72OOV";
600 LPRINT CHR$(27);"*c25Gn;
700 LPRINT CHR$(27);"*c2Pn;
800 LPRINT CHR$(l2)
900 LPRINT CHR$(27);"&flX";
1000 LPRINT CHR$(27);"&f2X";
1100 END
Line 100 clears any existing macros, then line 200 specifies that this will be
macro ID number 1. Line 300 starts downloading the macro.
Line 400 moves the print position to a spot 450 dots right and 1200 dots down
from the top left comer of the page.
Lines 5OOthmugh 700 select the 180-dot deep and 7200-dot wide pattern and
print it. Line 800 does the form feed that forces the actual printing. Line 900
ends the downloading process.
At the two line we select our macro and actually run it.
118