<?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%3A4D47</id>
		<title>84PCSE:BCALLs:4D47 - 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%3A4D47"/>
		<link rel="alternate" type="text/html" href="https://wikiti.brandonw.net/index.php?title=84PCSE:BCALLs:4D47&amp;action=history"/>
		<updated>2026-04-18T00:29:42Z</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:4D47&amp;diff=10194&amp;oldid=prev</id>
		<title>FloppusMaximus: InvertRect</title>
		<link rel="alternate" type="text/html" href="https://wikiti.brandonw.net/index.php?title=84PCSE:BCALLs:4D47&amp;diff=10194&amp;oldid=prev"/>
				<updated>2013-10-20T17:20:00Z</updated>
		
		<summary type="html">&lt;p&gt;InvertRect&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|InvertRect]] [[Category:84PCSE:BCALLs:By Name:Drawing|InvertRect]] [[Category:84PCSE:BCALLs:By Address|4D47 - InvertRect]]&lt;br /&gt;
== Synopsis ==&lt;br /&gt;
'''Hypothesized Official Name:''' InvertRect&lt;br /&gt;
&lt;br /&gt;
'''BCALL Address:''' 4D47h&lt;br /&gt;
&lt;br /&gt;
Invert a rectangular area of the LCD.&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;
Each pixel in the rectangle will be replaced with its bitwise complement, so the resulting colors will be inverted component-wise (e.g., red will be replaced with cyan and vice versa.)  Inverting the same rectangle twice will restore the original colors.&lt;br /&gt;
&lt;br /&gt;
The dimensions of the inverted 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;/div&gt;</summary>
		<author><name>FloppusMaximus</name></author>	</entry>

	</feed>