The text of a manual · part 19 of 28
PEN*KEY 6400 Computer Programmer's Reference Guide: Section 5: BIOS Interrupt Support, pages 151 to 160
Pages 151 to 160 of 234, from PEN*KEY 6400 Computer Programmer's Reference Guide
The original document is the PDF (1.4 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the Intermec 6400
Page 151
BIOS Interrupt Support
SECTION 5
INT 15h, System BIOS Services INT 15h, Function AX = 010Ch; Scanner Task Switch
SCANBIOS Switches control between the application thread and the scanner handler thread. The scanner handler thread is created and deleted by the SCANBIOS Scanner On and Scanner Off functions. On Entry: AX = 010Ch CX = 00h DX = 00h
On Return: None
INT 15h, Function AX = 01FAh: Beep the Buzzer
BIOS Makes sounding device emit a beep. On Entry:
AH = 01h AL = FAh BL = Volume level of sound (range: 0 = quiet to 255 = loud) CX = Duration of sound, in milliseconds (approximately) DX = Frequency of sound, in Hz
On Return: None
" NOTE:
This interrupt is a PC-like system service, but not necessarily PC compatible. INT 15h, Function AX = 2403h: Query A20 Gate Support
BIOS This function ... TBD. On Entry: AH = 24h AL = 03h
On Return:
if successful Carry = 0 AH = 00h BX = Status of A20 gate support bit 0: supported on keyboard controller bit 1: supported with bit 1 of I/O port 92h bit 15: additional data is available (location not yet defined) if NOT successful: Carry = 1 AH = Status 01h = Keyboard controller is in secure mode 86h = Function not supported PEN*KEYR 6400 Programmer’s Reference Guide
5-41
Page 152
SECTION 5
BIOS Interrupt Support
INT 15h, Function AX = 42FFh: Request Low Power Sleep
MISCTSR Puts in a requests for the system to go into a low power sleep. When the timeout expires, or when a system event (keyboard, scanner, radio receive, etc.) occurs, the actual time the system was asleep is returned. On Entry: AH = 42h AL = FFh DX:CX = Number of milliseconds you want the processor to sleep
On Return:
DX:CX = Actual number of milliseconds the processor was asleep
INT 15h, Function AH = 4Fh: Keyboard Intercept
BIOS Called by INT 09h each time a key has been pressed. You can use it to create alternate keyboard layouts. The intercept routine can substitute or discard scan codes. The default BIOS routine returns the input scan code (unmodified) and carry (set). On Entry: AH = 4Fh AL = Scan code
On Return:
AL = Scan code Carry = Status 0 = Scan code is processed. Do not buffer scan code 1 = Scan code is not processed. Buffer the scan code
Note: Your application should call INT 15h, function C0h to determine whether this feature is supported by the BIOS. " NOTE:
5-42
This interrupt is a PC-like system service, but not necessarily PC compatible.
PEN*KEYR 6400 Programmer’s Reference Guide
Page 153
BIOS Interrupt Support
SECTION 5
INT 15h, Function AX = 5300h: APM Installation Check
ELANAPM Determines whether the system’s BIOS supports the APM functionality; and which specification version supported. The APM version number returned indicates the highest level of APM supported by the APM BIOS. On Entry: AH = 53h AL = 00h BX = 0000h (indicating APM BIOS)
On Return:
if successful Carry = 0 (APM is supported by BIOS) AH = 01h – APM major version number (in BCD format) AL = 01h – APM minor version number (in BCD format) BH = ASCII “P” character BL = ASCII “M” character CX = APM flags Bit Value/Description 0 = 1 (16-bit protected mode interface supported (required in APM 1.2) 1 = 1 (32-bit protected mode interface supported (required in APM 1.2) 2 = 1 (CPU Idle call slows processor clock speed. (If this bit is set, the APM driver must call the CPU Busy function to ensure the system is restored to normal processing clock speed after calling the CPU Idle function to slow down the processor clock speed). 2 = 0 (CPU Idle call stops the clock. (If this bit is cleared, the APM driver does not need to call the CPU Busy function). 3 = 1 (APM BIOS Power Management disabled) 4 = 1 (APM BIOS Power Management disengaged) Other bits reserved if NOT successful: Carry = 1 AH = Error code 09h Unrecognized device ID 86h APM not present
Refer to the Error Codes paragraph in the Power Management section, in this book).
PEN*KEYR 6400 Programmer’s Reference Guide
5-43
Page 154
SECTION 5
BIOS Interrupt Support
INT 15h, Function AX = 5301h: APM Real Mode Interface Connect
ELANAPM Establishes the cooperative interface between the APM driver (caller) and the APM BIOS. This function provides compatibility with the Microsoft APM 1.01 specification. Use of the call is not required for the APM functions to succeed, other than the Disconnect function. On Entry: AH = 53h AL = 01h BX = 0000h
On Return:
if successful Carry = 0 if NOT successful: Carry = 1 AH = Error code 02h Real mode interface connection already established 05h 16-bit protected mode interface already established 07h 32-bit protected mode interface already established 09h Unrecognized device ID
Refer to the Error Codes paragraph in the Power Management section, in this book). INT 15h, Function AX = 5304h: APM Interface Disconnect
ELANAPM Provides compatibility with the Microsoft APM 1.01 specification. Use does not prevent the APM functions from succeeding or failing, except for the Connect function. The function has no effect upon the power management configuration. On Entry: AH = 53h AL = 04h BX = 0000h
On Return:
if successful Carry = 0 if NOT successful: Carry = 1 AH = Error code 02h Real mode interface connection already established 05h 16-bit protected mode interface already established 07h 32-bit protected mode interface already established 09h Unrecognized device ID
Refer to the Error Codes paragraph in the Power Management section, in this book).
5-44
PEN*KEYR 6400 Programmer’s Reference Guide
Page 155
BIOS Interrupt Support
SECTION 5
INT 15h, Function AX = 5305h: CPU Idle
ELANAPM An APM driver or power-aware application uses this call to reduce the power consumed by the system. This call causes the system to halt the CPU and reduce the clock frequency of the system until an interrupt occurs. Any interrupt routine that generates I/O activity to one of the defined activity monitors or issues an APM busy call causes the IDLE state to exit and return control to the driver or power-aware application. On Entry: AH = 53h AL = 05h
On Return:
if successful Carry = 0 if NOT successful: Carry = 1 AH = Error code 03h = Interface not connected 0Bh = Interface not engaged
Refer to the Error Codes paragraph in the Power Management section, in this book). INT 15h, Function AH = 5306h: CPU Busy
ELANAPM Informs the APM BIOS that system is busy, preventing the system from entering Idle or Suspend states and resetting the timers associated with these states. System APM drivers or power-aware applications should call Busy during processing that does not generate I/O activity to one of the defined activity monitors to prevent slowdown of processing that occurs if the system enters Idle or Suspend during normal application processing. On Entry: AH = 53h AL = 06h
On Return:
if successful Carry = 0 if NOT successful: Carry = 1 AH = Error code 03h Interface not connected 0Bh Interface not engaged
Refer to the Error Codes paragraph in the Power Management section, in this book).
PEN*KEYR 6400 Programmer’s Reference Guide
5-45
Page 156
SECTION 5
BIOS Interrupt Support
INT 15h, Function AX = 5307h: Set Power State
ELANAPM Sets the system or device specified in the power device ID into the requested power state. On Entry: AH = 53h AL = 07h BX = Power device ID 0001h All devices power managed by the APM BIOS 01xxh Display 02xxh PC Card Controller (not available for 6400 Computer) 04xxh RS-232 05xxh Network adapters 06xxh PC Card slots (not available for use on 6400 Computer) 0Exxh Devices defined by Intermec where xxh = Unit number (0-based). (Unit number of FFh means all devices in this class) (Refer to the APM BIOS Functions paragraph, in the Power Management section, for details of these devices defined by Intermec). CX = Power state 0000h Ready 0001h Standby 0002h Suspend 0003h OFF 0004h Last Request Processing Notification 0005h Last Request Rejected (Supported for Power Device ID 0001h)
On Return:
if successful Carry = 0 if NOT successful: Carry = 1 AH = Error code 01h Power management functionality disabled 09h Unrecognized device ID 0Ah Parameter value out of range 0Bh Interface not engaged 60h Unable to enter requested state
Refer to the Error Codes paragraph in the Power Management section, in this book).
5-46
PEN*KEYR 6400 Programmer’s Reference Guide
Page 157
BIOS Interrupt Support
SECTION 5
INT 15h, Function AX = 5308h: Enable/Disable Power Management
ELANAPM Enables or disables automatic System Idle and System Suspend functions. On Entry: AH = 3h AL = 8h BX = 001h CX = Function code 0000h Disable power management 0001h Enable power management
On Return:
if successful Carry = 0 if NOT successful: Carry = 1 AH = Error code 01h Power management functionality disabled 03h Interface not connected 09h Unrecognized device ID 0Ah Parameter value out or range (function code)
Refer to the Error Codes paragraph in the Power Management section, in this publication, for additional information about error codes. INT 15h, Function AX = 530Ah: Get Power Status
ELANAPM Returns the current power status of the system. On Entry: AH = 53h AL = 0Ah BX = 0001h (APM BIOS)
On Return:
if successful: Carry = 0 BH = AC line status 00h Off-line 01h On-line FFh Unknown All other values reserved BL = Battery status 00h High 01h Low 02h Critical 03h Charging FFh Unknown All other values reserved CH = Battery flag bit 0 = 1 High bit 1 = 1 Low PEN*KEYR 6400 Programmer’s Reference Guide
5-47
Page 158
SECTION 5
BIOS Interrupt Support bit 2 = 1 Critical bit 3 = 1 Charging bit 7 = 1 No system battery or powerfail occurred All other bits reserved FFh = Unknown All other values reserved CL = Remaining battery life 0–100 = Percentage of full charge FFh = Unknown All other values reserved DX = Remaining battery life Bit 15 Time: 0 = Time-out in seconds 1 = Time-out in minutes Bits 14–0 Number of seconds or minutes: 0–7FFFh Valid number of seconds 0–7FFEh Valid number of minutes FFFFh Unknown if NOT successful: Carry = 1 AH = Error code 09h Unrecognized device ID
Refer to the Error Codes paragraph in the Power Management section, in this publication, for additional information about error codes. INT 15h, Function AX = 530Bh: Get PM Event
ELANAPM This function returns the next pending PM event or indicates whether PM events are pending. Call this function until there are no more pending PM events. On Entry: AH = 53h AL = 0Bh BX = PM event code
On Return:
if successful: Carry = 0 BX = PM event code if NOT successful: Carry = 1 AH = Error code 80h No power management events pending
Refer to the Error Codes paragraph in the Power Management section, in this publication, for additional information about error codes.
5-48
PEN*KEYR 6400 Programmer’s Reference Guide
Page 159
BIOS Interrupt Support
SECTION 5
INT 15h, Function AX = 530Ch: Get Power State
ELANAPM Returns the device power state only a specific device ID is used. On Entry:
AH = 53h AL = 0Ch BX = Power device ID 0001h All devices power managed by the APM BIOS 01xxh Display 04xxh RS232 05xxh Network adapters 06xxh PC Card slots (not available for use on 6400 Computer) 0Exxh Devices defined by Intermec where xxh = Unit number (0-based). (Unit number of FFh means all devices in this class) (Refer to the APM BIOS Functions paragraph, in the Power Management section, for details of these devices defined by Intermec).
On Return:
if successful: Carry = 0 CX = Power state 0000h Ready 0001h Standby 0002h Suspend 0003h OFF if NOT successful: Carry = 1 AH = Error code 09h Unrecognized device ID
Refer to the Error Codes paragraph in the Power Management section, in this publication, for additional information about error codes.
PEN*KEYR 6400 Programmer’s Reference Guide
5-49
Page 160
SECTION 5
BIOS Interrupt Support
INT 15h, Function AX = 530Dh: Enable/Disable Device Power Management
ELANAPM Enables or disables APM BIOS automatic power management for a specified device. When disabled, the APM BIOS does not power-manage the device. The only automatic power management that the BIOS does with devices is during Suspend. If a device’s power management is disabled, during Suspend the device’s power state is not altered from the state set before Suspend was entered. On Entry:
AH = 53h AL = 0Dh BX = Power device ID 0001h All devices power managed by the APM BIOS 01xxh Display 04xxh RS232 05xxh Network adapters 06xxh PC Card slots (not available for use on 6400 Computer) 0Exxh Devices defined by Intermec where xxh = Unit number (0-based). (Unit number of FFh means all devices in this class) (Refer to the APM BIOS Functions paragraph, in the Power Management section, for details of these devices defined by Intermec). CX = Function code (0000h = Disable or 0001h = Enable)
On Return:
if successful Carry = 0 if NOT successful: Carry = 1 AH = Error code 09h Unrecognized device ID
Refer to the Error Codes paragraph in the Power Management section, in this publication, for additional information about error codes. INT 15h, Function AX = 5380h: OEM Installation Check Subfunction BH = 7Fh
64APMOEM Verifies if the APM BIOS supports OEM function extensions. This API is a required OEM extension. On Entry:
AH = 53h AL = 80h BH = 7Fh
On Return:
Carry = Status flag 0 (success) 1 (sailure)
5-50
PEN*KEYR 6400 Programmer’s Reference Guide