Parker Products OPS1200 Video Game Keyboard User Manual


 
Chapter 2, OPS1200 Firmware Command Set
19
ON MENU GOTO (OPS1200 Display and Keyboard Only)
Sets up the keypad for GOTO statement
Format: ON MENU GOTO {list of 9 line numbers separated by commas}
Group: Character I/O
Units: none
See also: ON MENU GOSUB
This command will automatically wait for the operator to press the function (F1 thru
F9) or ABORT keys on the OPS1200 front panel. Then, depending on the key
depressed, a GOTO will be done to the corresponding line number specified in the list
of line numbers. If the ABORT key or any other key except F1 thru F9 is depressed,
the control will transfer to the NEXT line in the program. Even if the user is only
trying to sense 2 or 3 keys, he or she must specify the entire list of 9 line numbers.
This command will only work if the OPS: device has been opened using the OPEN
command.
The following example shows a program using the ON MENU GOTO command and
setup.
Usage example:
10 ON MENU GOTO (100,200,300,400,500,600,700,800,900)
20 ? “ABORT”
30 END
70 ? ”FINISHED”
80 GOTO 70
100 ? “100 OK”
110 GOTO 70
200 ? “200 OK”
210 GOTO 70
300 ? “300 OK”
310 GOTO 70
400 ? “400 OK”
410 GOTO 70
500 ? “500 OK”
510 GOTO 70
600 ? “600 OK”
610 GOTO 70
700 ? “700 OK”
710 GOTO 70
800 ? “800 OK”
810 GOTO 70
900 ? “900 OK”
910 GOTO 70