Specifications

AMD Geodeā„¢ GeodeROM Functional Specification 115
System Services
32087C
12.1.3.11 Subfunction 0Ah - Get Power Status
Description:
Passed:
Returns:
Related Functions:
None.
Parameter Description
AH 53h = APM
AL 0Ah = APM function code
BX Power device ID:
0001h = All devices power managed by APM BIOS
80xxh = Specific battery unit number, where xx = battery unit number (1 based)
All other values reserved
Parameter Description
If function is successful:
CF 0 = Successful connection
BH AC line status
BL Battery status
CH Battery Flag
CL Remaining battery life - percentage of charge
DX Remaining battery life - time units
BH Power device ID/Device class. I = 80h on entry, then returns
SI Number of battery units currently installed in the machine (0 to n)
If function is unsuccessful:
CF 1 = Carry flag set on error
AH Error code:
09h = Unrecognized device ID
0Ah = Parameter value out of range
86h = APM not present