55
CHAPTER 5: Command Descriptions
SYNTAX
MACRO[;][number]
[command list]
ENDM
or
MA[;][number]
[command list]
ENDM
number is a macro buffer number from 0 to 99. If no number is specified, Macro 0 is
assumed.
RESPONSE
Dependent on the included command list
MODE
Any
BUS STATES
Defined by the included command list
EXAMPLE:
10
PRINT #1,"MACRO 10"
Build Macro #10
20
PRINT #1,"OUTPUT16;Q00B1X"
30
PRINT #1,"COMMENT 'Memory Left =\"
40
PRINT #1,"MEMORY"
50
PRINT #1,"TRIGGER16/10"
60
PRINT #1,"ENTER16"
70
PRINT #1,"ENTER10"
80
PRINT #1,"ENDM"
End Macro Mode
90
PRINT #1,"DOMACRO 10"
Execute the Macro
100
INPUT #1,M$:PRINT M$
Read Comment & Memory
110
INPUT #1,R$:PRINT R$
Read data from 'ENTER16'
120
INPUT #1,R$:PRINT R$
Read data from 'ENTER10'
130
PRINT #1,"DOMACRO 10;8
Execute it 8 more times
140
FOR N = 1 TO 8
Read data 8 times
150
INPUT #1,M$:PRINT M$
Read Comment & Memory
160
INPUT #1,R$:PRINT R$
Read data from 'ENTER16'
170
INPUT #1,R$:PRINT R$
Read data from 'ENTER10'
180
NEXT N
190
PRINT #1,"READ 10"
Request a copy of Macro
200
WHILE NOT EOF(1)
Loop until entire Macro
210
MA$=MA$+INPUT$(1,#1)
Buffer has been received
220
WEND
230
PRINT MA$
MASK Command
The MASK command is used to mask the high bit (MSB) of serial input data. Some serial host computers set
the most significant bit when using eight-bit serial data lengths. When the MASK ON command is issued,
each serial character received is logically ANDed with &H7F (127 decimal).
MASK OFF is the power-on default. In default operation, all serial input data is automatically masked with
&H7F. The exception to this is any data which follows a semicolon (;), an apostrophe ('), or a quotation
mark ("). After a MASK ON command, all characters are masked.