Re: A86: batt checker


[Prev][Next][Index][Thread]

Re: A86: batt checker




interesting.  so kirk meyer's routine was actually sort of like the rom's.
that's kinda weird.  btw, where is the routine that gets the battery power
located?  that's a lot more relevant than what i found, which only gets called
after the fact.



In a message dated 12/1/98 13:32:21 Eastern Standard Time,
assets@eden.rutgers.edu writes:

> 
>  I decided to look at the routine, so here is what it does:  it counts the
>  number of times bc is incremented in a loop in the time that it takes for
19
>  interrupts to occur.  Interestingly, in order for this to work, the clock
>  controlling the interrupt must be independent of the clock controlling the
>  rest of the cpu and not as adversly affected by battery power as the rest
of
>  the overall performance is ... maybe an accurate clock is possible after
>  all.
>  
>  
>  >
>  >> i have actually found the routine which displays the "Your batteries
>  >are
>  >> low..." message, but unfortunately that doesn't do much good because
>  >that's
>  >> only called after the calc knows the batteries are low.
>  >
>  >Where is that? If we could find a call or something elsewhere in the
>  >rom, then that would be what actually checks the battery power... BTW,
>  >might it be port 4?
>  >_________________________