<?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%3A54A0</id>
		<title>84PCSE:BCALLs:54A0 - 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%3A54A0"/>
		<link rel="alternate" type="text/html" href="https://wikiti.brandonw.net/index.php?title=84PCSE:BCALLs:54A0&amp;action=history"/>
		<updated>2026-05-21T08:33:18Z</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:54A0&amp;diff=10196&amp;oldid=prev</id>
		<title>FloppusMaximus: UnHighlightRect</title>
		<link rel="alternate" type="text/html" href="https://wikiti.brandonw.net/index.php?title=84PCSE:BCALLs:54A0&amp;diff=10196&amp;oldid=prev"/>
				<updated>2013-10-20T17:33:12Z</updated>
		
		<summary type="html">&lt;p&gt;UnHighlightRect&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|UnHighlightRect]] [[Category:84PCSE:BCALLs:By Name:Drawing|UnHighlightRect]] [[Category:84PCSE:BCALLs:By Address|54A0 - UnHighlightRect]]&lt;br /&gt;
== Synopsis ==&lt;br /&gt;
'''Unofficial Name:''' UnHighlightRect&lt;br /&gt;
&lt;br /&gt;
'''BCALL Address:''' 54A0h&lt;br /&gt;
&lt;br /&gt;
Un-highlight a rectangular area of the LCD by changing non-black pixels to white.&lt;br /&gt;
&lt;br /&gt;
=== Inputs ===&lt;br /&gt;
* HL = X coordinate of left edge&lt;br /&gt;
* DE = X coordinate of right edge (must be greater than or equal to HL and at most 319)&lt;br /&gt;
* B = Y coordinate of top edge (from top of screen)&lt;br /&gt;
* C = Y coordinate of bottom edge (must be greater than or equal to B and at most 239)&lt;br /&gt;
&lt;br /&gt;
=== Outputs ===&lt;br /&gt;
'''None'''&lt;br /&gt;
&lt;br /&gt;
=== Destroys ===&lt;br /&gt;
* AF&lt;br /&gt;
&lt;br /&gt;
== Comments ==&lt;br /&gt;
The rectangle is drawn only to the LCD, never to the graph buffer.&lt;br /&gt;
&lt;br /&gt;
This is designed to reverse the effect of [[84PCSE:BCALLs:54A3|HighlightRect]].  For each pixel in the rectangle, if its most significant byte is zero (i.e., the color is either black, blue, or blue plus a very small amount of green), the pixel will be set to black.  Otherwise it will be set to white.  (The fact that blue pixels are treated as black may be a mistake on TI's part, but in any case, it is clear that this routine isn't intended to be used for anything other than black-and-white text.)&lt;br /&gt;
&lt;br /&gt;
The dimensions of the highlighted area are (HL-DE+1) × (C-B+1).  The routine doesn't check that the provided coordinates are valid.&lt;br /&gt;
&lt;br /&gt;
The interrupt state (IFF) is preserved.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
[[84PCSE:BCALLs:54A3|HighlightRect]]&lt;/div&gt;</summary>
		<author><name>FloppusMaximus</name></author>	</entry>

	</feed>