<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://wikiti.brandonw.net/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wikiti.brandonw.net/index.php?action=history&amp;feed=atom&amp;title=84PCSE%3ABCALLs%3A5509</id>
		<title>84PCSE:BCALLs:5509 - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wikiti.brandonw.net/index.php?action=history&amp;feed=atom&amp;title=84PCSE%3ABCALLs%3A5509"/>
		<link rel="alternate" type="text/html" href="https://wikiti.brandonw.net/index.php?title=84PCSE:BCALLs:5509&amp;action=history"/>
		<updated>2026-06-09T21:23:16Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.23.5</generator>

	<entry>
		<id>https://wikiti.brandonw.net/index.php?title=84PCSE:BCALLs:5509&amp;diff=10150&amp;oldid=prev</id>
		<title>Dr. D'nar: Created page with 'GetBatteryLevel GetBatteryLevel 5509 - GetBatteryLevel…'</title>
		<link rel="alternate" type="text/html" href="https://wikiti.brandonw.net/index.php?title=84PCSE:BCALLs:5509&amp;diff=10150&amp;oldid=prev"/>
				<updated>2013-09-01T03:03:28Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;#039;&lt;a href=&quot;/index.php?title=Category:84PCSE:BCALLs:By_Name:GetBatteryLevel&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Category:84PCSE:BCALLs:By Name:GetBatteryLevel (page does not exist)&quot;&gt;GetBatteryLevel&lt;/a&gt; &lt;a href=&quot;/index.php?title=Category:84PCSE:BCALLs:By_Name&quot; title=&quot;Category:84PCSE:BCALLs:By Name&quot;&gt;GetBatteryLevel&lt;/a&gt; &lt;a href=&quot;/index.php?title=Category:84PCSE:BCALLs:By_Address&quot; title=&quot;Category:84PCSE:BCALLs:By Address&quot;&gt;5509 - GetBatteryLevel&lt;/a&gt;…&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category:84PCSE:BCALLs:By Name:GetBatteryLevel|GetBatteryLevel]] [[Category:84PCSE:BCALLs:By Name|GetBatteryLevel]] [[Category:84PCSE:BCALLs:By Address|5509 - GetBatteryLevel]]&lt;br /&gt;
== Synopsis ==&lt;br /&gt;
'''Unofficial Name:''' GetBatteryLevel&lt;br /&gt;
&lt;br /&gt;
'''BCALL Address:''' 5509h&lt;br /&gt;
&lt;br /&gt;
Measures the current battery level by writing and reading several ports and using lots of delay loops.&lt;br /&gt;
&lt;br /&gt;
=== Inputs ===&lt;br /&gt;
None.&lt;br /&gt;
&lt;br /&gt;
=== Outputs ===&lt;br /&gt;
* A = 0 if the battery is fully dead. Do a hard power off fast or you risk damaging the lithium battery.&lt;br /&gt;
* A = 4 if the battery is fully charged, or at least about 70 or 80 percent charged.&lt;br /&gt;
* A = 1-3 for intermediate charge levels.&lt;br /&gt;
&lt;br /&gt;
=== Destroys ===&lt;br /&gt;
* AF, BC&lt;br /&gt;
&lt;br /&gt;
== Comments ==&lt;br /&gt;
There isn't any particular code in here to test whether the battery is currently charging as far as I can tell. Contains a delay loop that overwrites 9F02h. Screws with IY+16h. Uses ports 3A and 04.&lt;/div&gt;</summary>
		<author><name>Dr. D'nar</name></author>	</entry>

	</feed>