<?xml version="1.0"?>
<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=84PCE%3ASyscalls%3A0002DC</id>
	<title>84PCE:Syscalls:0002DC - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wikiti.brandonw.net/index.php?action=history&amp;feed=atom&amp;title=84PCE%3ASyscalls%3A0002DC"/>
	<link rel="alternate" type="text/html" href="https://wikiti.brandonw.net/index.php?title=84PCE:Syscalls:0002DC&amp;action=history"/>
	<updated>2026-11-20T18:15:10Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://wikiti.brandonw.net/index.php?title=84PCE:Syscalls:0002DC&amp;diff=11153&amp;oldid=prev</id>
		<title>MateoConLechuga: Created page with &quot;EraseFlashSector 0002DC - EraseFlashSector == Synopsis == &#039;&#039;&#039;Hypothesized Official Name:&#039;&#039;&#039; EraseFla...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wikiti.brandonw.net/index.php?title=84PCE:Syscalls:0002DC&amp;diff=11153&amp;oldid=prev"/>
		<updated>2016-05-26T06:51:28Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&lt;a href=&quot;/index.php/Category:84PCE:Syscalls:By_Name&quot; title=&quot;Category:84PCE:Syscalls:By Name&quot;&gt;EraseFlashSector&lt;/a&gt; &lt;a href=&quot;/index.php/Category:84PCE:Syscalls:By_Address&quot; title=&quot;Category:84PCE:Syscalls:By Address&quot;&gt;0002DC - EraseFlashSector&lt;/a&gt; == Synopsis == &amp;#039;&amp;#039;&amp;#039;Hypothesized Official Name:&amp;#039;&amp;#039;&amp;#039; EraseFla...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category:84PCE:Syscalls:By Name|EraseFlashSector]]&lt;br /&gt;
[[Category:84PCE:Syscalls:By Address|0002DC - EraseFlashSector]]&lt;br /&gt;
== Synopsis ==&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Hypothesized Official Name:&amp;#039;&amp;#039;&amp;#039; EraseFlashSector&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Syscall Address:&amp;#039;&amp;#039;&amp;#039; 0002DCh&lt;br /&gt;
&lt;br /&gt;
Erases an entire sector (64kb) of flash memory. This basically resets the bytes in the sector back to the nominal value of FF.&lt;br /&gt;
&lt;br /&gt;
=== Inputs ===&lt;br /&gt;
* A = Sector to clear&lt;br /&gt;
&lt;br /&gt;
=== Outputs ===&lt;br /&gt;
* Sector erased&lt;br /&gt;
&lt;br /&gt;
=== Destroys ===&lt;br /&gt;
* All&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
This routine actually checks the caller PC address to ensure it was called from a suitable location. A workaround is as follows using the fact that 0000F8 consists of a jump to a ret instruction.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;EraseFlashSector:&lt;br /&gt;
	ld	bc,0000F8h&lt;br /&gt;
	push	bc&lt;br /&gt;
	jp	_EraseFlashSector&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>MateoConLechuga</name></author>
	</entry>
</feed>