83Plus:BCALLs:50B3: Difference between revisions
From WikiTI
Jump to navigationJump to search
84plusfreak (talk | contribs) No edit summary |
84plusfreak (talk | contribs) No edit summary |
||
| Line 1: | Line 1: | ||
[[Category:83Plus:BCALLs:By Name|Chk_Batt_Low]][[Category:83Plus:BCALLs:By Name:Utility|Chk_Batt_Low]][[Category:83Plus:BCALLs:By Address|50B3 - Chk_Batt_Low]] | [[Category:83Plus:BCALLs:By Name|Chk_Batt_Low]][[Category:83Plus:BCALLs:By Name:Utility|Chk_Batt_Low]][[Category:83Plus:BCALLs:By Address|50B3 - Chk_Batt_Low]][[Category:83Plus:BCALLs:By Address|50B6 - Chk_Batt_Low]] | ||
== Synopsis == | == Synopsis == | ||
'''Official Name:''' Chk_Batt_Low | '''Official Name:''' Chk_Batt_Low | ||
'''BCALL Address:''' 50B3 | '''BCALL Address:''' 50B3,50B6 | ||
Check the batteries. | Check the batteries. | ||
Revision as of 09:51, 13 May 2005
Synopsis
Official Name: Chk_Batt_Low
BCALL Address: 50B3,50B6
Check the batteries.
Inputs
- None
Outputs
- Z=1: Batteries are low
- Z=0: Batteries are good
Registers Destroyed
- All
Comments
This is not just checking bit 0 of port 2. It puts the calculator into a special mode, creates a delay, polls bit 0 of port 2, and puts the calculator back to normal.
Example
B_CALL Chk_Batt_Low ret z B_CALL ChkFindSym ret c ld a,b or a ret nz AppOnErr errHand B_CALL Arc_Unarc AppOffErr errHand: ret