Intermec 6100 Reference Guide

Page of 328
SECTION 6
Conversions and Interfaces
PEN*KEY
R
 6100 Computer Programmer’s Reference Guide    6-11
EXAMPLE:
EXTERNALS
++ifdef 6000
NUMERIC FUNCTION  FILECOMMIT = IPFCMT6
++endif
LOCAL VARIABLES
01 RESULT
BINARY WORD
. . .
++ifdef 6000
;Commit files to disk when transaction is complete
PERFORM FILE_COMMIT
++endif
. . .
++ifdef 6000
PROCEDURE FILE_COMMIT
RESULT = FILECOMMIT
 
IF RESULT THEN
OUT (KBD) (KB_HOME) 
 & 
 
‘FILE COMMIT’,
&  ‘FAILED!’,
&  ‘DOS ERROR #’, RESULT,
&  ‘DISK MAY BE’,
&  ‘CORRUPT.  NOTIFY’,
&  ‘SUPERVISOR’, BEL, BEL
;Do not allow user to continue
REPEAT
RESULT = INPUT(E)
UNTIL 0
ENDIF
END; OF FILE_COMMIT
++endif
Power Management BIOS Interfaces: ELANAPM.EXE
Overview
This paragraph describes the register interfaces to the APM BIOS functions.
Functions are accessed through INT 15h.  The carry flag is set and an error code
is placed in the AH register when an error condition is detected.  The carry flag
is reset to zero upon return from successful calls.  The contents of the AH regisĆ
ter depend on the particular call.
This interface has a convention for identifying a device class and units within
that class to allow for direct control of devices.  For example, all disk devices are
a class and the units are the physical unit numbers.  The device ID parameter is
passed in a wordĆlength register (BX), where BH is the device class and BL is the
device unit.
6. Conversions and
Interfaces