Important: The information in this document is obsolete and should not be used for new development.
BatteryCount
You can use theBatteryCount
function to find out how many batteries the computer supports.
short BatteryCount();DESCRIPTION
TheBatteryCount
function returns the number of batteries that are supported internally by the computer. The value of BatteryCount returned may not be the same as the number of batteries currently installed.ASSEMBLY-LANGUAGE INFORMATION
The trap is_PowerMgrDispatch
($A09E). The selector value forBatteryCount
is 26 ($1A) in the low word of register D0. The number of batteries supported is returned in the low word of register D0.