83Plus:BCALLs:5221

From WikiTI
Jump to: navigation, search

Synopsis

Unofficial Name: Chk_Batt_Level

BCALL Address: 5221

Check the batteries and returns their state in A.

Inputs

  • None

Outputs

  • A: Battery level from 0-4 (0 being lowest, 4 being freshest)

Registers Destroyed

  • All

Comments

This entry point puts the calculator into a special mode, polls bit 0 of port 2 several times, then puts the calculator back to normal.

This BCALL only exists on OS 2.30 and above.