<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://alttp.run/hacking/index.php?action=history&amp;feed=atom&amp;title=Metaroom_Quadrants</id>
		<title>Metaroom Quadrants - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://alttp.run/hacking/index.php?action=history&amp;feed=atom&amp;title=Metaroom_Quadrants"/>
		<link rel="alternate" type="text/html" href="http://alttp.run/hacking/index.php?title=Metaroom_Quadrants&amp;action=history"/>
		<updated>2026-06-01T08:48:05Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.28.0</generator>

	<entry>
		<id>http://alttp.run/hacking/index.php?title=Metaroom_Quadrants&amp;diff=418&amp;oldid=prev</id>
		<title>Jkazos at 11:51, 14 November 2016</title>
		<link rel="alternate" type="text/html" href="http://alttp.run/hacking/index.php?title=Metaroom_Quadrants&amp;diff=418&amp;oldid=prev"/>
				<updated>2016-11-14T11:51:55Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;' lang='en'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 11:51, 14 November 2016&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-l1&quot; &gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;''See also: [[Standard Notation]]''&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;''See also: [[Standard Notation]]''&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; 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;''See also: [[&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Metaroom&lt;/del&gt;]]''&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;''See also: [[&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Metarooms&lt;/ins&gt;]]''&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The game keeps track of which quadrants of which metarooms the player has visited, primarily for the purpose of illuminating visited rooms in dungeon maps. The game maintains several variables in memory pertaining to the current interior room, and uses these to update the working save file when the player enters and exits new interiors.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The game keeps track of which quadrants of which metarooms the player has visited, primarily for the purpose of illuminating visited rooms in dungeon maps. The game maintains several variables in memory pertaining to the current interior room, and uses these to update the working save file when the player enters and exits new interiors.&lt;/div&gt;&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-l25&quot; &gt;Line 25:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 25:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; &amp;lt;nowiki&amp;gt;( H &amp;lt;&amp;lt; 2 ) | ( W &amp;lt;&amp;lt; 1 ) | Y | X&amp;lt;/nowiki&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; &amp;lt;nowiki&amp;gt;( H &amp;lt;&amp;lt; 2 ) | ( W &amp;lt;&amp;lt; 1 ) | Y | X&amp;lt;/nowiki&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; 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;So, within this new value, bit 0 indicates whether the player is on the left or right half of the metaroom, bit 1 indicates whether the player is on the top or bottom half of the metaroom, bit 2 indicates whether or not the room is wide, and bit 3 indicates whether or not the room is tall. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;(Note: The values of X and Y can be inaccurate when inside non-dungeon rooms, such as houses in Kakariko Village.)&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;So, within this new value, bit 0 indicates whether the player is on the left or right half of the metaroom, bit 1 indicates whether the player is on the top or bottom half of the metaroom, bit 2 indicates whether or not the room is wide, and bit 3 indicates whether or not the room is tall.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This value is then used as an index into a lookup table to retrieve a new 4-bit value which has bits set representing which quadrants of the metaroom have been visited by entering the room. The table's values are configured such that bit 0 indicates the bottom-right quadrant, bit 1 indicates the bottom-left quadrant, bit 2 indicates the top-right quadrant, and bit 3 indicates the top-left quadrant.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This value is then used as an index into a lookup table to retrieve a new 4-bit value which has bits set representing which quadrants of the metaroom have been visited by entering the room. The table's values are configured such that bit 0 indicates the bottom-right quadrant, bit 1 indicates the bottom-left quadrant, bit 2 indicates the top-right quadrant, and bit 3 indicates the top-left quadrant.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;== Non-Dungeon Rooms ==&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;''See also: [[Player Position]]''&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Note: The values of X and Y do not always reflect the actual portion of the metaroom the player is on when inside non-dungeon rooms, such as houses in Kakariko Village, because the game does not provide maps for these interiors and so does not worry about tracking them accurately. The player's X and Y pixel coordinates can be used instead to identify the currently-occupied quadrant. Let (Xp,Yp) be the player's pixel coordinates, N be the current interior metaroom's index, and (Qx,Qy) be the quadrant coordinates with (0,0) being the top-left corner and (1,1) being the bottom-right corner.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; &amp;lt;nowiki&amp;gt;Qx = ( Xp - ( N % 16 ) * 512 ) / 256&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Qy = ( Yp - ( N / 16 ) * 512 ) / 256&amp;lt;/nowiki&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Table Values ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Table Values ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Jkazos</name></author>	</entry>

	<entry>
		<id>http://alttp.run/hacking/index.php?title=Metaroom_Quadrants&amp;diff=413&amp;oldid=prev</id>
		<title>Jkazos at 02:25, 12 November 2016</title>
		<link rel="alternate" type="text/html" href="http://alttp.run/hacking/index.php?title=Metaroom_Quadrants&amp;diff=413&amp;oldid=prev"/>
				<updated>2016-11-12T02:25:59Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;' lang='en'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 02:25, 12 November 2016&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-l25&quot; &gt;Line 25:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 25:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; &amp;lt;nowiki&amp;gt;( H &amp;lt;&amp;lt; 2 ) | ( W &amp;lt;&amp;lt; 1 ) | Y | X&amp;lt;/nowiki&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; &amp;lt;nowiki&amp;gt;( H &amp;lt;&amp;lt; 2 ) | ( W &amp;lt;&amp;lt; 1 ) | Y | X&amp;lt;/nowiki&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; 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;So, within this new value, bit 0 indicates whether the player is on the left or right half of the metaroom, bit 1 indicates whether the player is on the top or bottom half of the metaroom, bit 2 indicates whether or not the room is wide, and bit 3 indicates whether or not the room is tall.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;So, within this new value, bit 0 indicates whether the player is on the left or right half of the metaroom, bit 1 indicates whether the player is on the top or bottom half of the metaroom, bit 2 indicates whether or not the room is wide, and bit 3 indicates whether or not the room is tall. &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;(Note: The values of X and Y can be inaccurate when inside non-dungeon rooms, such as houses in Kakariko Village.)&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This value is then used as an index into a lookup table to retrieve a new 4-bit value which has bits set representing which quadrants of the metaroom have been visited by entering the room. The table's values are configured such that bit 0 indicates the bottom-right quadrant, bit 1 indicates the bottom-left quadrant, bit 2 indicates the top-right quadrant, and bit 3 indicates the top-left quadrant.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This value is then used as an index into a lookup table to retrieve a new 4-bit value which has bits set representing which quadrants of the metaroom have been visited by entering the room. The table's values are configured such that bit 0 indicates the bottom-right quadrant, bit 1 indicates the bottom-left quadrant, bit 2 indicates the top-right quadrant, and bit 3 indicates the top-left quadrant.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Jkazos</name></author>	</entry>

	<entry>
		<id>http://alttp.run/hacking/index.php?title=Metaroom_Quadrants&amp;diff=412&amp;oldid=prev</id>
		<title>Jkazos at 03:06, 11 November 2016</title>
		<link rel="alternate" type="text/html" href="http://alttp.run/hacking/index.php?title=Metaroom_Quadrants&amp;diff=412&amp;oldid=prev"/>
				<updated>2016-11-11T03:06:08Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;' lang='en'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 03:06, 11 November 2016&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-l27&quot; &gt;Line 27:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 27:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;So, within this new value, bit 0 indicates whether the player is on the left or right half of the metaroom, bit 1 indicates whether the player is on the top or bottom half of the metaroom, bit 2 indicates whether or not the room is wide, and bit 3 indicates whether or not the room is tall.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;So, within this new value, bit 0 indicates whether the player is on the left or right half of the metaroom, bit 1 indicates whether the player is on the top or bottom half of the metaroom, bit 2 indicates whether or not the room is wide, and bit 3 indicates whether or not the room is tall.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; 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;This value is then used as an index into a lookup table to retrieve a new 4-bit value which has bits set representing which quadrants of the metaroom have been visited by entering the room. The table's values are configured such that bit 0 indicates the bottom-right quadrant, bit 1 indicates the bottom-left quadrant, bit 2 indicates the top-right quadrant, and bit &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;4 &lt;/del&gt;indicates the top-left quadrant.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;This value is then used as an index into a lookup table to retrieve a new 4-bit value which has bits set representing which quadrants of the metaroom have been visited by entering the room. The table's values are configured such that bit 0 indicates the bottom-right quadrant, bit 1 indicates the bottom-left quadrant, bit 2 indicates the top-right quadrant, and bit &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;3 &lt;/ins&gt;indicates the top-left quadrant.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Table Values ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Table Values ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Jkazos</name></author>	</entry>

	<entry>
		<id>http://alttp.run/hacking/index.php?title=Metaroom_Quadrants&amp;diff=411&amp;oldid=prev</id>
		<title>Jkazos: Created page with &quot;''See also: Standard Notation''  ''See also: Metaroom''  The game keeps track of which quadrants of which metarooms the player has visited, primarily for the purpose o...&quot;</title>
		<link rel="alternate" type="text/html" href="http://alttp.run/hacking/index.php?title=Metaroom_Quadrants&amp;diff=411&amp;oldid=prev"/>
				<updated>2016-11-11T03:04:34Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;#039;&amp;#039;See also: &lt;a href=&quot;/hacking/index.php?title=Standard_Notation&quot; title=&quot;Standard Notation&quot;&gt;Standard Notation&lt;/a&gt;&amp;#039;&amp;#039;  &amp;#039;&amp;#039;See also: &lt;a href=&quot;/hacking/index.php?title=Metaroom&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Metaroom (page does not exist)&quot;&gt;Metaroom&lt;/a&gt;&amp;#039;&amp;#039;  The game keeps track of which quadrants of which metarooms the player has visited, primarily for the purpose o...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;''See also: [[Standard Notation]]''&lt;br /&gt;
&lt;br /&gt;
''See also: [[Metaroom]]''&lt;br /&gt;
&lt;br /&gt;
The game keeps track of which quadrants of which metarooms the player has visited, primarily for the purpose of illuminating visited rooms in dungeon maps. The game maintains several variables in memory pertaining to the current interior room, and uses these to update the working save file when the player enters and exits new interiors.&lt;br /&gt;
&lt;br /&gt;
;$7E00A6[$1]&lt;br /&gt;
: 0 if the room has normal width (half of a metaroom)&lt;br /&gt;
: 2 if the room is wide (the full width of a metaroom)&lt;br /&gt;
&lt;br /&gt;
;$7E00A7[$1]&lt;br /&gt;
: 0 if the room has normal height (half of a metaroom)&lt;br /&gt;
: 2 if the room is tall (the full height of a metaroom)&lt;br /&gt;
&lt;br /&gt;
;$7E00A9[$1]&lt;br /&gt;
: 0 if the player is in the left half of the metaroom&lt;br /&gt;
: 1 if the player is in the right half of the metaroom&lt;br /&gt;
&lt;br /&gt;
;$7E00AA[$1]&lt;br /&gt;
: 0 if the player is in the top half of the metaroom&lt;br /&gt;
: 2 if the player is in the bottom half of the metaroom&lt;br /&gt;
&lt;br /&gt;
Let us label these four values W , H , X , and Y. When updating the working save file, the game combines the four values into a single 4-bit value as follows.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;( H &amp;lt;&amp;lt; 2 ) | ( W &amp;lt;&amp;lt; 1 ) | Y | X&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So, within this new value, bit 0 indicates whether the player is on the left or right half of the metaroom, bit 1 indicates whether the player is on the top or bottom half of the metaroom, bit 2 indicates whether or not the room is wide, and bit 3 indicates whether or not the room is tall.&lt;br /&gt;
&lt;br /&gt;
This value is then used as an index into a lookup table to retrieve a new 4-bit value which has bits set representing which quadrants of the metaroom have been visited by entering the room. The table's values are configured such that bit 0 indicates the bottom-right quadrant, bit 1 indicates the bottom-left quadrant, bit 2 indicates the top-right quadrant, and bit 4 indicates the top-left quadrant.&lt;br /&gt;
&lt;br /&gt;
== Table Values ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!Index&lt;br /&gt;
!Value&lt;br /&gt;
|-&lt;br /&gt;
|$00&lt;br /&gt;
|$08&lt;br /&gt;
|-&lt;br /&gt;
|$01&lt;br /&gt;
|$04&lt;br /&gt;
|-&lt;br /&gt;
|$02&lt;br /&gt;
|$02&lt;br /&gt;
|-&lt;br /&gt;
|$03&lt;br /&gt;
|$01&lt;br /&gt;
|-&lt;br /&gt;
|$04&lt;br /&gt;
|$0C&lt;br /&gt;
|-&lt;br /&gt;
|$05&lt;br /&gt;
|$0C&lt;br /&gt;
|-&lt;br /&gt;
|$06&lt;br /&gt;
|$03&lt;br /&gt;
|-&lt;br /&gt;
|$07&lt;br /&gt;
|$03&lt;br /&gt;
|-&lt;br /&gt;
|$08&lt;br /&gt;
|$0A&lt;br /&gt;
|-&lt;br /&gt;
|$09&lt;br /&gt;
|$05&lt;br /&gt;
|-&lt;br /&gt;
|$0A&lt;br /&gt;
|$0A&lt;br /&gt;
|-&lt;br /&gt;
|$0B&lt;br /&gt;
|$05&lt;br /&gt;
|-&lt;br /&gt;
|$0C&lt;br /&gt;
|$0F&lt;br /&gt;
|-&lt;br /&gt;
|$0D&lt;br /&gt;
|$0F&lt;br /&gt;
|-&lt;br /&gt;
|$0E&lt;br /&gt;
|$0F&lt;br /&gt;
|-&lt;br /&gt;
|$0F&lt;br /&gt;
|$0F&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Table Offsets ==&lt;br /&gt;
&lt;br /&gt;
;(USA)&lt;br /&gt;
: $135CC[$10]&lt;br /&gt;
&lt;br /&gt;
;(J10)&lt;br /&gt;
: $13504[$10]&lt;br /&gt;
&lt;br /&gt;
;(J11)&lt;br /&gt;
: $13514[$10]&lt;br /&gt;
&lt;br /&gt;
;(J12)&lt;br /&gt;
: $1351B[$10]&lt;br /&gt;
&lt;br /&gt;
;(CAN)&lt;br /&gt;
: $13688[$10]&lt;br /&gt;
&lt;br /&gt;
;(FRA)&lt;br /&gt;
: $135F1[$10]&lt;br /&gt;
&lt;br /&gt;
;(EUR) and (GER)&lt;br /&gt;
: $135D9[$10]&lt;/div&gt;</summary>
		<author><name>Jkazos</name></author>	</entry>

	</feed>