488 CONTROLLER
46
If macro #1, in the previous example, was invoked multiple times, each time the loop counts will be reported
as described. This is due to the fact that looping is a re-invocation of the looped macro.
This command is only valid when contained within a macro. Execution outside of a macro will generate an
“INVALID COMMAND” error.
SYNTAX
COUNT
RESPONSE
numeric loop count (1 to 255) of last invoked macro buffer
MODE
Any
BUS STATES
None
EXAMPLE:
10
PRINT #l,"MACRO"
Build macro #0
20
PRINT #l,"COMMENT 'Loop Number =\' "
30
PRINT #l,"COUNT"
40
PRINT #l,"ENDM"
50
PRINT #l,"DOMACRO0,5"
Execute the macro five times
60
FOR N=1 TO 5
70
INPUT #l,L$:PRINT L$
Read Comment & Count
80
NEXT N
COMMENT Command
The COMMENT command is provided to allow the user to place comment lines in a macro buffer. The
COMMENT string is enclosed in either apostrophes (') or quotation marks ("). When the macro is
executed, the COMMENT string is sent to the serial host, with the serial output terminators appended. The
serial output terminators may be suppressed by including a back-slash [\] as the last character of the string.
SYNTAX
COMMENT [;] 'data' or COM [;] 'data'
'data'
is an ASCII string delimited by apostrophes or quotation marks.
RESPONSE
data
is returned to the serial host
MODE
Any
BUS STATES
None
EXAMPLES:
PRINT #1,"COMMENT 'This is a test comment' "
INPUT #1, C$
Read the comment string
PRINT C$
Print it to the screen
PRINT #1,"COMMENT 'Available Memory = \' "
PRINT #1,"MEMORY"
INPUT #1, C$
Read the comment string with suppressed serial output terminators
and appended memory value
PRINT C$
Print it to the screen