Specifications
Commands - 44
FIND
Command
SYNTAX: FIND argument
PURPOSE: Used to locate variables, keywords, and labels.
REMARKS: This is a useful tool especially in long programs. The variations described below:
FIND keyword - This will list all the lines that contain the specified keyword. For example, FIND
POKE
FIND . . This will list all lines that start with labels. It will not list lines where the
labels is part of a GOSUB, etc.
FIND . . label This will list the entire subroutine that begins with a specific label name.
You must mark the end of the subroutine with a line that only has . . on the
line. Otherwise, FIND will continue to list every line until it encounters
the label symbol.
FIND variable This is probably the most valuable feature of FIND. It will list the line of
every instance of the variable name. It will help locate conflicting
variables. For example, PIT and PAT have the first letter, last letter and
the length the same. If you execute FIND PIT, then lines with PAT, PET,
PIT, POT and PUT will also be listed.
EXAMPLE: 10 MOTOR = 1
20 GOSUB . . confirm
30 PRINT “Motor OK”
40 DO
50 GOSUB .. current_test
60 UNTIL RUNAMPS > 5
70 OUT 35,43
80 COR = INP(35)
90 IF COR <= 176 THEN PRINT “Status OK”
200 . . confirm
210 CUR = INP(12)
220 IF CUR < 2 THEN F = 0 ELSE F = 1
230 RETURN
240 . .
300 . . current _test
310 RUNAMPS = 1.5*AIN(2)
320 RETURN
330 . .
>FIND RUNAMPS
60 UNTIL RUNAMPS >5
310 RUNAMPS = 1.5*AIN(2)
>FIND GOSUB