Services are grouped into classes of functions. You must place the function number in the 8OC88 AH register, and the service number in the AL register. You then invoke INT66 to perform the desired function and service. The description of the functions and services in this chapter make use of the terms entry and exit. These terms are used to describe the required contents of registers on entering an extended BIOS call, and the resulting state of the carry flag and register contents on exiting the call.
In general, the carry flag is set for an error condition. Detailed descriptions of the state of the carry flag and the register contents are given for each function and service.
The following functions and services are available:
Poqet BIOS: All
Entry: ah Function number (02H)
al Service number (02H)
Exit: bl Display type
00H MDA compatible
01H CGA compatible
Poqet BIOS: All
Entry: ah Function number (02H)
al Service number (03H)
bl Display type
00H MDA compatible
01H CGA compatible
Exit: CF Carry flag set on error
ax Error code if CF is set; otherwise undefined
-3 Parameter error
Poqet BIOS: All. New modes have been added and some have
slight changes depending on the BIOS version number.
Entry: ah Function number (02H)
al Service number (05H)
dl Mode
00H The power management software is disabled and
the system is left at the full voltage level
of +5 volts. At this voltage level, the
processor and other circuitry in the PQXT runs
at maximum frequency and maximum power
consumption. Beginning with BIOS 1.30, the
power management NMI is still enabled. Int
16H, which is the keyboard interrupt, is no
longer trapped by the PQXT.
01H If the BIOS detects that the system is idle,
it causes the PQXT to enter display mode. In
this mode, the CPU clock stops, then restarts
to process timer ticks and keystrokes. The
BIOS is free to adjust the system voltage to
balance power consumption and performance.
02H This is the default power management mode on
boot-up. The BIOS functions as in mode 1,
but after being in display mode for
approximately four minutes, the system turns
off. The display is shut down, the RS-232-C
drivers are disabled, the baud clock is turned
off, and keyboard interrupts are disabled.
System RAM and video RAM are preserved and the
time of day counter is maintained. The system
may be turned back on using the I/O key or by
means of a program interface.
03H This mode was added in BIOS 1.30. The power
management software is disabled, the system is
placed at full voltage, and the power management
NMI is removed. This mode is used to enhance
operation of communications programs. It is
automatically selected when the system is in
mode 0 and the RS-232-C drivers are enabled.
80H Same as mode 00H, except the system is held at
a reduced voltage of 3 volts to reduce power
consumption. The system voltage changes to full
voltage when accessing memory cards, but returns
to the reduced voltage state afterwards. This
mode is known as the communications mode. The
processor operates at reduced speed, so be
aware that when running the serial port at
high speeds, the processor may not be able to
keep up. Mode 80H is available on BIOS 1.30.
81H Same as mode 01H, except the system is held
at a reduced voltage of 3 volts to reduce power
consumption. The system voltage changes to full
voltage when accessing memory cards, but returns
to the reduced voltage state afterwards. Mode
80H is available on BIOS 1.30.
82H Same as mode 02H, except the system is held at
a reduced voltage of 3 volts to reduce power
consumption. The system voltage changes to full
voltage when accessing memory cards, but
returns to the reduced voltage state afterwards.
Mode 82H is selected automatically by the BIOS
if the system is operating in mode 02H and
system voltage is constantly at 5 volts for
more than one minute. Mode 82H is available
on BIOS 1.30.
83H The power management software is disabled and
the power management NMI is removed. The system
is initially placed in a reduced voltage state.
Your application must take care in using this
mode, since an access to a memory card will
effectively turn this mode into mode 03H.
Mode 03H results because the power management
NMI is disabled and there is no way to return
the system to the reduced voltage state of 3
volts automatically. Made 83H is available on
BIOS 1.30.
FFH Use this parameter to get the currently used
mode.
Exit: CF Carry flag set on error.
Register dl is undefined if this is set.
ax Error code if CF was set; otherwise undefined.
-3 Parameter error
dl Current power management mode. Undefined on error.
Poqet BIOS: All
Entry: ah Function number (02H)
al Service number (06H)
dl Desired state
00H Enable RS-232-C drivers
01H Disable RS-232-C drivers
Exit: CF Carry flag set on error
ax Error code if CF is set; otherwise undefined
-3 Parameter error
Poqet BIOS: Version 1.30 and above.
Entry: ah Function number (02H)
al Service number (07H)
Exit: Nothing returned
Poqet BIOS: All
Entry: ah Function number (02H)
al Service number (08H)
Exit: dl The system status is returned as a bit pattern.
Bits not specifically assigned are undefined and
are shown as X.
Bit Position | Meaning
-----------------+--------------
7 6 5 4 3 2 1 0 |
X 1 X X X X X X | System asleep
X X X X X X X 1 | System Off
Poqet BIOS: Version 1.30 and above
Entry: ah Function number (02H)
al Service number (0CH)
Exit: Nothing returned
Poqet BIOS: Version 1.30 and above
Entry: ah Function number (02H)
al Service number (ODH)
Exit: Nothing returned
Poqet BIOS: All
Entry: ah Function number (07H)
al Service number (OOH)
dl Bits 2 and 3 give the repeat rate:
Bit Position Repeat Rate
--------------------------------
7 6 5 4 3 2 1 0
--------------------------------
x x x x 0 0 x x 281 ms
x x x x 0 1 x x 187 ms
x x x x 1 0 x x 93 ms
x x x x 1 1 x x 47 ms
Bits 0 and 1 give the delay until the first repeat:
Bit Position Repeat Rate
--------------------------------
7 6 5 4 3 2 1 0
--------------------------------
x x x x x x 0 0 625 ms
x x x x x x 0 1 500 ms
x x x x x x 1 0 375 ms
x x x x x x 1 1 281 ms
Exit: Nothing returned
Poqet BIOS: All
Entry: ah Function number (07H)
al Service number (01H)
Exit: dl Bits 2 and 3 give the repeat rate:
Bit Position Repeat Rate
Bit Position Repeat Rate
--------------------------------
7 6 5 4 3 2 1 0
--------------------------------
x x x x 0 0 x x 281 ms
x x x x 0 1 x x 187 ms
x x x x 1 0 x x 93 ms
x x x x 1 1 x x 47 ms
Bits 0 and 1 give the delay until the first repeat:
Bit Position Repeat Rate
--------------------------------
7 6 5 4 3 2 1 0
--------------------------------
x x x x x x 0 0 625 ms
x x x x x x 0 1 500 ms
x x x x x x 1 0 375 ms
x x x x x x 1 1 281 ms
Poqet BIOS: All
Entry: ah Function number (07H)
al Service number (02H)
bl Desired state
00H Turn click off
01H Turn click on
Exit: CF Carry flag set on error
ax Error code if CF set; otherwise undefined
-3 Parameter error
Poqet BIOS: All
Entry: ah Function number (07H)
al Service number (03H)
Exit: bl Click state
00H Keyboard click off
01H Keyboard click on
Poqet BIOS: All
Entry: ah Function number (07H)
al Service number (04H)
Exit: al Key status. Bits shown as "x" are undefined.
Bit Position Meaning
---------------------------------------------------
7 6 5 4 3 2 1 0
---------------------------------------------------
x x x x x 0 x x Poqet key is currently pressed
x x x x 1 x x x Alarms are enabled
Poqet BIOS: All
Entry: ah Function number (07H)
al Service number (06H)
bl Key status
00H Disable Poqet-F4 key combination
01H Enable Poqet-F4 key combination. Current BIOS
allows any nonzero value to enable the function;
however, 01H should be used to ensure upward
compatibility.
Exit: Nothing returned
Poqet BIOS: Version 1.30 and above
Entry: ah Function number (07H)
al Service number (07H)
dl Debounce time in milliseconds. The time is
rounded down to the nearest 2 milliseconds
before being used. The maximum debounce time
allowed is 20 milliseconds.
00H-01H Disable software debounce
02H-l4H Debounce time in milliseconds
15H-FEH Illegal
FFH Return current debounce setting
Exit: CF Carry flag set on error
ax Error code if CF set
al Current debounce time. This register is part of
the error code if CF is set.
Poqet BIOS: All
Entry: ah Function number (30H)
al Service number (04H)
Exit: al Major version number in binary
ah Minor version number in binary