<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://spectrum.alioth.net/doc/index.php?action=history&amp;feed=atom&amp;title=Setpagea</id>
	<title>Setpagea - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://spectrum.alioth.net/doc/index.php?action=history&amp;feed=atom&amp;title=Setpagea"/>
	<link rel="alternate" type="text/html" href="https://spectrum.alioth.net/doc/index.php?title=Setpagea&amp;action=history"/>
	<updated>2026-11-13T20:39:39Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.37.1</generator>
	<entry>
		<id>https://spectrum.alioth.net/doc/index.php?title=Setpagea&amp;diff=184&amp;oldid=prev</id>
		<title>Winston at 17:17, 31 August 2008</title>
		<link rel="alternate" type="text/html" href="https://spectrum.alioth.net/doc/index.php?title=Setpagea&amp;diff=184&amp;oldid=prev"/>
		<updated>2008-08-31T17:17:01Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 17:17, 31 August 2008&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l28&quot;&gt;Line 28:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 28:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The Spectranet memory map is shown in the following diagram. The number before the colon is the page number.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The Spectranet memory map is shown in the following diagram. The number before the colon is the page number.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Image:Address-space.png|thumb|center|800px|&amp;#039;&amp;#039;&amp;#039;KEY&amp;#039;&amp;#039;&amp;#039; Red = flash ROM, Yellow = W5100, Cyan = RAM]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Image:Address-space.png|thumb|center|800px|&amp;#039;&amp;#039;&amp;#039;KEY&amp;#039;&amp;#039;&amp;#039; Red = flash ROM, Yellow = W5100, Cyan = RAM&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;, Grey = No hardware&lt;/ins&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Return values ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Return values ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Winston</name></author>
	</entry>
	<entry>
		<id>https://spectrum.alioth.net/doc/index.php?title=Setpagea&amp;diff=182&amp;oldid=prev</id>
		<title>Winston: New page: &#039;&#039;&#039;setpagea (HLCALL 0x3E33)&#039;&#039;&#039; - set memory page in paging area A  &#039;&#039;&#039;setpageb (HLCALL 0x3E36)&#039;&#039;&#039; - set memory page in paging area B  == Synopsis ==  &#039;&#039;Assembly language&#039;&#039;       ld a, page...</title>
		<link rel="alternate" type="text/html" href="https://spectrum.alioth.net/doc/index.php?title=Setpagea&amp;diff=182&amp;oldid=prev"/>
		<updated>2008-08-31T17:12:05Z</updated>

		<summary type="html">&lt;p&gt;New page: &amp;#039;&amp;#039;&amp;#039;setpagea (HLCALL 0x3E33)&amp;#039;&amp;#039;&amp;#039; - set memory page in paging area A  &amp;#039;&amp;#039;&amp;#039;setpageb (HLCALL 0x3E36)&amp;#039;&amp;#039;&amp;#039; - set memory page in paging area B  == Synopsis ==  &amp;#039;&amp;#039;Assembly language&amp;#039;&amp;#039;       ld a, page...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;setpagea (HLCALL 0x3E33)&amp;#039;&amp;#039;&amp;#039; - set memory page in paging area A&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;setpageb (HLCALL 0x3E36)&amp;#039;&amp;#039;&amp;#039; - set memory page in paging area B&lt;br /&gt;
&lt;br /&gt;
== Synopsis ==&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Assembly language&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
     ld a, page&lt;br /&gt;
     call SETPAGEA&lt;br /&gt;
 &lt;br /&gt;
     ld a, page&lt;br /&gt;
     call SETPAGEB&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;C&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
     #include &amp;lt;spectranet.h&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
     void setpagea(unsigned char page);&lt;br /&gt;
     void setpageb(unsigned char page);&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
&lt;br /&gt;
The setpagea() and setpageb() functions select which page of memory occupies address space between 0x1000-0x1FFF and 0x2000-0x2FFF respectively.&lt;br /&gt;
&lt;br /&gt;
The C library &amp;#039;&amp;#039;&amp;#039;does not&amp;#039;&amp;#039;&amp;#039; use the HLCALL pagein/pageout mechanism; the Spectranet ROM must already be paged in by the &amp;#039;&amp;#039;&amp;#039;pagein&amp;#039;&amp;#039;&amp;#039;() call. Generally, it does not make sense to manipulate the paged areas from outside code that is already manipulating data in this area.&lt;br /&gt;
&lt;br /&gt;
The Spectranet memory map is shown in the following diagram. The number before the colon is the page number.&lt;br /&gt;
&lt;br /&gt;
[[Image:Address-space.png|thumb|center|800px|&amp;#039;&amp;#039;&amp;#039;KEY&amp;#039;&amp;#039;&amp;#039; Red = flash ROM, Yellow = W5100, Cyan = RAM]]&lt;br /&gt;
&lt;br /&gt;
== Return values ==&lt;br /&gt;
&lt;br /&gt;
None.&lt;br /&gt;
&lt;br /&gt;
[[Category:Spectranet]]&lt;/div&gt;</summary>
		<author><name>Winston</name></author>
	</entry>
</feed>