Programming instructions

165
Intermec Fingerprint 6.13 – Programmer's Guide
Continued!
ERRHAND.PRG Utility Program, cont'd.
At line 200,000
Error-handling routines, which can be called from routines where
error may occur, e.g.:
IF EFLAG% < > 0 THEN GOSUB 200000
The error-handling routine can be modified to handle other errors
than those previously mentioned.
At line 400,000
The FEED-routine executes a FORMFEED with error-checking.
Called by the statement GOSUB 400000.
At line 500,000
The PRINT-routine executes a PRINTFEED with error-checking.
Called by the statement GOSUB 500000.
At line 600,000
This subroutine clears the printer's display and makes the display
texts stored in the variables DISP1$ and DISP2$ appear on the
first and second line respectively in the display. Called by the
statement GOSUB 600000.
At line 700,000
The Init routine initiates error-checking, opens the console for
output and displays the main display texts (NORDIS1$ and
NORDIS2$). It also sets up the some of the keys on the keyboard
(if any) and assigns subroutines to each key. Called by the
statement GOSUB 700000.
At line 1,500,000
The <Pause> key (key No. 15) interrupts the program until the
same key is pressed a second time. Called by the statement
GOSUB 1500000.
At line 1,700,000
Routine for the <Print> key (key No. 17), that calls subroutine
500,000. Called by the statement GOSUB 1700000.
At line 1,800,000
Routine for the <Setup> key (key No. 18). Enters the Setup Mode
of the printer. Not suited for printers without a keyboard! Called
by the statement GOSUB 1800000.
At line 1,900,000
Routine for the <Feed> key (key No. 19), that calls subroutine
400,000. Called by the statement GOSUB 1900000.
For more information, refer to the complete listing that follows.
16. ERROR-HANDLING, cont'd.
4. Error-Handling
Program, cont'd.