<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.cloudmodding.com/oot/Obj_Mure/history?feed=atom</id>
		<title>Obj Mure - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.cloudmodding.com/oot/Obj_Mure/history?feed=atom"/>
		<link rel="alternate" type="text/html" href="https://wiki.cloudmodding.com/oot/Obj_Mure/history"/>
		<updated>2026-04-28T06:45:27Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>https://wiki.cloudmodding.com/woot/index.php?title=Obj_Mure&amp;diff=6664&amp;oldid=prev</id>
		<title>Mzxrules at 17:33, 6 August 2021</title>
		<link rel="alternate" type="text/html" href="https://wiki.cloudmodding.com/woot/index.php?title=Obj_Mure&amp;diff=6664&amp;oldid=prev"/>
				<updated>2021-08-06T17:33:53Z</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=&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 style=&quot;vertical-align: top;&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 17:33, 6 August 2021&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-l106&quot; &gt;Line 106:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 106:&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;85A0 BLEZ	V0, 801E867C //Jumps to the function's end&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;85A0 BLEZ	V0, 801E867C //Jumps to the function's end&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;div&gt;85A4 OR 	S1, R0, R0 //S1 = 0 (set spawned actor count 0)&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;85A4 OR 	S1, R0, R0 //S1 = 0 (set spawned actor count 0)&lt;/div&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;85A8 ADDIU	S6, S4, 0x1C24 //S4 = 801C84A0 (&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;global context&lt;/del&gt;), S6 = 801CA0C4&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;85A8 ADDIU	S6, S4, 0x1C24 //S4 = 801C84A0 (&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;game_play&lt;/ins&gt;), S6 = 801CA0C4&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;div&gt;85AC OR 	S2, S0, R0 //S0 = instance location&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;85AC OR 	S2, S0, R0 //S0 = instance location&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;div&gt;85B0 OR 	S3, S0, R0 //S0 = instance location&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;85B0 OR 	S3, S0, R0 //S0 = instance location&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-l135&quot; &gt;Line 135:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 135:&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;8620 SW 	T6, 0x0018(SP)&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;8620 SW 	T6, 0x0018(SP)&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;div&gt;8624 LH 	T7, 0x0032(S0)&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;8624 LH 	T7, 0x0032(S0)&lt;/div&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;8628 OR 	A1, S4, R0 //A1 = &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Global context&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;8628 OR 	A1, S4, R0 //A1 = &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Game Play&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;div&gt;862C LW 	A3, 0x007C(SP)//A3 = X as float&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;862C LW 	A3, 0x007C(SP)//A3 = X as float&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;div&gt;8630 SW 	T7, 0x001C(SP)&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;8630 SW 	T7, 0x001C(SP)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Mzxrules</name></author>	</entry>

	<entry>
		<id>https://wiki.cloudmodding.com/woot/index.php?title=Obj_Mure&amp;diff=5275&amp;oldid=prev</id>
		<title>Mzxrules: Mzxrules moved page Ovl Obj Mure to Obj Mure</title>
		<link rel="alternate" type="text/html" href="https://wiki.cloudmodding.com/woot/index.php?title=Obj_Mure&amp;diff=5275&amp;oldid=prev"/>
				<updated>2017-08-21T04:08:35Z</updated>
		
		<summary type="html">&lt;p&gt;Mzxrules moved page &lt;a href=&quot;/oot/Ovl_Obj_Mure&quot; class=&quot;mw-redirect&quot; title=&quot;Ovl Obj Mure&quot;&gt;Ovl Obj Mure&lt;/a&gt; to &lt;a href=&quot;/oot/Obj_Mure&quot; title=&quot;Obj Mure&quot;&gt;Obj Mure&lt;/a&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 04:08, 21 August 2017&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;text-align: center;&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Mzxrules</name></author>	</entry>

	<entry>
		<id>https://wiki.cloudmodding.com/woot/index.php?title=Obj_Mure&amp;diff=3913&amp;oldid=prev</id>
		<title>Mzxrules: Created page with &quot;{{actor|name=ovl_Obj_Mure|ispage=true}} '''ovl_Obj_Mure''' is the actor used to spawn a group of bugs, butterflies, or fish.   {{add links}} {{clear}} == NTSC 1.0 Notes ==...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.cloudmodding.com/woot/index.php?title=Obj_Mure&amp;diff=3913&amp;oldid=prev"/>
				<updated>2015-05-05T22:16:19Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{actor|name=ovl_Obj_Mure|ispage=true}} &amp;#039;&amp;#039;&amp;#039;ovl_Obj_Mure&amp;#039;&amp;#039;&amp;#039; is the &lt;a href=&quot;/oot/Actor&quot; class=&quot;mw-redirect&quot; title=&quot;Actor&quot;&gt;actor&lt;/a&gt; used to spawn a group of bugs, butterflies, or fish.   {{add links}} {{clear}} == NTSC 1.0 Notes ==...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{actor|name=ovl_Obj_Mure|ispage=true}}&lt;br /&gt;
'''ovl_Obj_Mure''' is the [[actor]] used to spawn a group of bugs, butterflies, or fish. &lt;br /&gt;
&lt;br /&gt;
{{add links}}&lt;br /&gt;
{{clear}}&lt;br /&gt;
== NTSC 1.0 Notes ==&lt;br /&gt;
&lt;br /&gt;
=== Instance Variables ===&lt;br /&gt;
&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Offset !!Type!! Description&lt;br /&gt;
|-&lt;br /&gt;
| 0x0140 || short || Number of actors spawned&lt;br /&gt;
|- &lt;br /&gt;
| 0x0142 || short || Table lookup for number of actors to spawn. Valid range 0-3. Lookup only occurs if above &amp;lt;= 0&lt;br /&gt;
|-&lt;br /&gt;
| 0x0144 || short || Unknown. Changes spawn function used.&lt;br /&gt;
|-&lt;br /&gt;
| 0x0146 || short || Type of actor to spawn. 02 = Fish, 03 = Bugs, 04 = Butterflies&lt;br /&gt;
|-&lt;br /&gt;
| 0x0148 || actor ptr[15] || Points to the actors spawned&lt;br /&gt;
|-&lt;br /&gt;
| 0x0184 || byte[15] || Unknown, related to above&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Asm Notes ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;1E8200 - Actor File&lt;br /&gt;
1E9240 - Actor Instance&lt;br /&gt;
&lt;br /&gt;
&amp;amp;F000, 0x0140 = Spawn Count&lt;br /&gt;
&amp;amp;0700, 0x0142 = Spawn Count Lookup Table &lt;br /&gt;
&amp;amp;0060, 0x0144 = ?&lt;br /&gt;
&amp;amp;001F, 0x0146 = Type&lt;br /&gt;
&lt;br /&gt;
828C LH 	V0, 0x001C(A0) //load variable component&lt;br /&gt;
8290 SRA	T8, V0, 0x8 &lt;br /&gt;
8294 ANDI	T9, T8, 0x0007 //Store in T9 ? (&amp;amp;0700) &lt;br /&gt;
8298 SH 	T9, 0x0142(A0) //Save (&amp;amp;0700)&lt;br /&gt;
829C LH 	T3, 0x0142(A0)&lt;br /&gt;
82A0 SRA	T6, V0, 0xC&lt;br /&gt;
82A4 SRA	T0, V0, 0x5&lt;br /&gt;
82A8 ANDI	T7, T6, 0x000F //Store in T7 ? (&amp;amp;F000)&lt;br /&gt;
82AC ANDI	T1, T0, 0x0003 //Store in T1 ? (&amp;amp;0060)&lt;br /&gt;
82B0 ANDI	T2, V0, 0x001F //Store in T2 Type? (&amp;amp;001F)&lt;br /&gt;
82B4 SLTI	AT, T3, 0x0004 //is (&amp;amp;0700) &amp;lt; 4?&lt;br /&gt;
82B8 SH 	T7, 0x0140(A0) //Save (&amp;amp;F000)&lt;br /&gt;
82BC SH 	T1, 0x0144(A0) //Save (&amp;amp;0060)&lt;br /&gt;
82C0 BNEZ	AT, 801E82D8  //Jump if (&amp;amp;0700) &amp;lt; 4&lt;br /&gt;
82C4 SH 	T2, 0x0146(A0) //Save (&amp;amp;001F)&lt;br /&gt;
&lt;br /&gt;
82C8 JAL	80020EB4&lt;br /&gt;
&lt;br /&gt;
82D8 LH 	T4, 0x0146(A0)//load (&amp;amp;001F)&lt;br /&gt;
82DC SLTI	AT, T4, 0x0005 //is (&amp;amp;001F) &amp;lt; 5?&lt;br /&gt;
82E0 BNEZ	AT, 801E82F8&lt;br /&gt;
&lt;br /&gt;
82F8 JAL	801E8258 //-&amp;gt; JAL 801E8200&lt;br /&gt;
82FC SW 	A0, 0x0018(SP)&lt;br /&gt;
&lt;br /&gt;
{&lt;br /&gt;
820C LH 	V0, 0x0146 //load (&amp;amp;001F)&lt;br /&gt;
8214 LUI	A1, 0x801F&lt;br /&gt;
//From here, checks if V0 (&amp;amp;001F) is 2, 3, 4, and goes to 1E8230 if so (below),&lt;br /&gt;
//else jumps to 1E8240 which zeros V0. Both sync at 1E8248, with V0 being 1 if &lt;br /&gt;
//the program goes to 1E8230&lt;br /&gt;
&lt;br /&gt;
8230 JAL	80063F7C&lt;br /&gt;
8234 ADDIU	A1, A1, 0x908C // A1 = 801E908C&lt;br /&gt;
8238 BEQ	R0, R0, 801E8248&lt;br /&gt;
823C ADDIU	V0, R0, 0x0001&lt;br /&gt;
&lt;br /&gt;
8248 LW 	RA, 0x0014(SP)&lt;br /&gt;
8250 JR 	RA&lt;br /&gt;
&lt;br /&gt;
//if V0 is only 1 or 0, these instructions are useless (aside from setting RA)&lt;br /&gt;
8268 BNEZ	V0, 801E8278 // (branch if (&amp;amp;001F) is 2-4)&lt;br /&gt;
826C LW 	RA, 0x0014(SP)&lt;br /&gt;
&lt;br /&gt;
827C JR 	RA&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
8300 BNEZ	V0, 801E8318 // (branch if (&amp;amp;001F) is 2-4)&lt;br /&gt;
8304 LW 	A0, 0x0018(SP)&lt;br /&gt;
8308 JAL	80020EB4&lt;br /&gt;
&lt;br /&gt;
8318 LUI	T5, 0x801F&lt;br /&gt;
831C ADDIU	T5, T5, 0x88D8 //T5 = 801E88D8&lt;br /&gt;
8320 SW 	T5, 0x013C(A0) //Store T5 at 0x013C from instance start&lt;br /&gt;
&lt;br /&gt;
--- (&amp;amp;0060) ---&lt;br /&gt;
//(&amp;amp;001F) = 4 in case it matters&lt;br /&gt;
86B4 LH 	V0, 0x0144(A0)&lt;br /&gt;
86B8 ADDIU	AT, R0, 0x0001 //AT = 1&lt;br /&gt;
86BC BEQ	V0, R0, 0x801E86D4 //V0 = 0? goto JAL 801E8398, then returns from function&lt;br /&gt;
86C4 BEQ	V0, AT, 0x801E86E4 //V0 = 1? goto JAL 801E8560, then returns from function&lt;br /&gt;
86CC BEQ	R0, R0, 0x801E86F0 //return from function&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
## Function 801E8560 ##&lt;br /&gt;
//Spawns V0 number of actors&lt;br /&gt;
//pushes variables on the stack&lt;br /&gt;
8594 JAL	801E8344&lt;br /&gt;
//V0 contains number of things to spawn&lt;br /&gt;
859C OR 	S5, V0, R0&lt;br /&gt;
85A0 BLEZ	V0, 801E867C //Jumps to the function's end&lt;br /&gt;
85A4 OR 	S1, R0, R0 //S1 = 0 (set spawned actor count 0)&lt;br /&gt;
85A8 ADDIU	S6, S4, 0x1C24 //S4 = 801C84A0 (global context), S6 = 801CA0C4&lt;br /&gt;
85AC OR 	S2, S0, R0 //S0 = instance location&lt;br /&gt;
85B0 OR 	S3, S0, R0 //S0 = instance location&lt;br /&gt;
85B4 ADDIU	S7, S0, 0x0024 //offset to x,y,z coord&lt;br /&gt;
85B8 ADDIU	S8, SP, 0x007C &lt;br /&gt;
85BC OR 	A0, S8, R0&lt;br /&gt;
85C0 OR 	A1, S7, R0 //A1 = offset to x,y,z coord&lt;br /&gt;
85C4 LH 	A2, 0x0142(S0) // &amp;amp;0700 var&lt;br /&gt;
85C8 JAL	801E8370 //Pushes (&amp;amp;0700) var, spawn count, and x,y,z on stack without moving sp&lt;br /&gt;
85CC OR 	A3, S1, R0 //A3 = 0?&lt;br /&gt;
85D0 LH 	V0, 0x0146(S0) //V0 = (&amp;amp;001F) var&lt;br /&gt;
85D4 ADDIU	AT, R0, 0x0004 //AT = butterfly&lt;br /&gt;
85D8 OR 	A0, S6, R0 //A0 = 801CA0C4&lt;br /&gt;
85DC BNE	V0, AT, 801E85F4 //branch if type != butterfly&lt;br /&gt;
85E0 LWC1	F4, 0x0080(SP)//F4 = Y as float&lt;br /&gt;
85E4 BNEZ	S1, 801E85F4&lt;br /&gt;
84E8 ADDIU	T0, R0, 0x0001&lt;br /&gt;
85EC BEQ	R0, R0, 801E8604&lt;br /&gt;
85F0 SLL	V1, V0, 0x1&lt;br /&gt;
&lt;br /&gt;
8604 LWC1	F6, 0x0084(SP)//F6 = Z as float&lt;br /&gt;
8608 SWC1	F4, 0x0010(SP)&lt;br /&gt;
860C LUI	A2, 0x801F&lt;br /&gt;
8610 SWC1	F6, 0x0014(SP)&lt;br /&gt;
8614 LH 	T6, 0x0030(S0)&lt;br /&gt;
8618 ADDIU	A2, A2, V1&lt;br /&gt;
861C LH 	A2, 0x9074 //gets actor id from 1E9074 + Type * 2&lt;br /&gt;
8620 SW 	T6, 0x0018(SP)&lt;br /&gt;
8624 LH 	T7, 0x0032(S0)&lt;br /&gt;
8628 OR 	A1, S4, R0 //A1 = Global context&lt;br /&gt;
862C LW 	A3, 0x007C(SP)//A3 = X as float&lt;br /&gt;
8630 SW 	T7, 0x001C(SP)&lt;br /&gt;
&lt;br /&gt;
863C JAL	80025110 //call spawn actor function&lt;br /&gt;
8640 SW 	T8, 0x0020(SP)&lt;br /&gt;
8644 BEQ	V0, R0, 801E8660 //jump if the spawn function failed to create an actor&lt;br /&gt;
8648 SW 	V0, 0x0148(S2) //store spawned actor pointer at 0x0148 into instance&lt;br /&gt;
864C SB 	R0, 0x0184(S3) //store 0 at 0x0184 into instance&lt;br /&gt;
8650 LW 	T1, 0x0148(S2)&lt;br /&gt;
8654 LB 	T9, 0x0003(S0) //load binding room index&lt;br /&gt;
8658 BEQ	R0, R0, 801E8668&lt;br /&gt;
865C SB 	T9, 0x0003(T1) //Set spawned actor's current room to this actor's room&lt;br /&gt;
&lt;br /&gt;
8668 ADDIU	S1, S1, 0x0001 //Number of actors spawned += 1&lt;br /&gt;
866C SLT	AT, S1, S5 //AT = 1 if number of spawned actors is less than total being spawned&lt;br /&gt;
8670 ADDIU 	S2, S2, 0x0004 //Increment S2 by 4 (array at 0x0148)&lt;br /&gt;
8674 BNEZ	AT, 801E85BC //loop&lt;br /&gt;
8678 ADDIU	S3, S3, 0x0001 //increment S3 by 1 (array at 0x0184)&lt;br /&gt;
&lt;br /&gt;
#######################&lt;br /&gt;
&lt;br /&gt;
## Function 801E8344 ##&lt;br /&gt;
//determines whether to use the spawn count, or look up a pre-defined spawn count&lt;br /&gt;
8344 LH 	V1, 0x0140(A0) //load (&amp;amp;F000)&lt;br /&gt;
8348 BNEZ	V1, 801E8368&lt;br /&gt;
834C OR 	V0, V1, R0 //V0 = (&amp;amp;F000)&lt;br /&gt;
//(&amp;amp;F000 is 0)&lt;br /&gt;
8350 LH 	T6, 0x0142(A0) //load (&amp;amp;0700)&lt;br /&gt;
//basically performs a table lookup for the number of things to spawn&lt;br /&gt;
//the table is located at 801E9064&lt;br /&gt;
//Then returns to caller&lt;br /&gt;
8368 JR 	RA&lt;br /&gt;
&lt;br /&gt;
#######################&lt;br /&gt;
&lt;br /&gt;
## Function 801E8370 ## &lt;br /&gt;
//Pushes (&amp;amp;0700) var, spawn count, and x,y,z on stack without moving sp&lt;br /&gt;
//A0 = Stack Pointer + 7C&lt;br /&gt;
//A1 = Coordinates pointer&lt;br /&gt;
//A2 = (&amp;amp;0700) var&lt;br /&gt;
//A3 = ?&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mzxrules</name></author>	</entry>

	</feed>