I want to check how full my batteries are, is there a small piece of asm code (like the EF0850 for turning the Ti off) to do this?
The only thing you can actually check is if the batteries are "low". This is what gets displayed when you turn the calculator on.
:AsmPrgmDB02E601EF8C47EFBF4AC9
This will return 1 in Ans if the batteries are good, and 0 if they are low. I'm not entirely sure what this might be useful for, but it's the best you can do.
Edit: the actual assembly, for the curious, basically puts bit 0 of port 2 into Ans:
in a, (2)
and 1
bcall _SetXXOP1
bcall _StoAns
ret
what exactly is low, completely empty or they're almost completely empty? How many hours can you max go on with them without having your ti fall out?
And is there no way to tell that they're 50%, 75%, 25%, …?
There is no way to check the actual battery life left. Returning a 0 if batteries are low is the equivalent of displaying the "Your batteries are low. Recommend change of betteries." message, which means that there are up to one or two weeks of functioning left, depending on usage.
Can I check Bateries with the languages Axe, Mirage OS, Ion or Assembler?
MirageOS and ION aren't actually languages, but yes, you can use all of those to check the battery level. To do it in assembly, you can use the hex code on the hexcodes page.
Z80 Assembly>English>TI-BASIC>Python>French>C>0
And yes, it is possible on the 84's (at least) to check the battery life at increments of 25%.
Hey, if any of you guys are really smart for programming, can you create a battery percent program? Please? I have recharge AAA batteries, and I REALLY NEED to know how full they are. Respond within a week from Valentines Day.
PROGRAM:BATTERY
?
?
?
There a code here
PrgmASM
:AsmPrgm
:EF6F4C3D280A78FE1E
:3805
:EF21521808
:EFB3503E042001AF
:EF8C47EFBF4AC9
PrgmBATT
:prgmASM
:If ans:Disp "Batteries are good
:If not(ans:Disp "Charge Batteries