BatteryCountYou can use the
BatteryCountfunction to find out how many batteries the computer supports.
BatteryCountfunction 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 INFORMATIONThe trap is
_PowerMgrDispatch($A09E). The selector value for
BatteryCountis 26 ($1A) in the low word of register D0. The number of batteries supported is returned in the low word of register D0.