<mamecheat version="1">

  <cheat desc="Infinite Credits">
    <script state="run">
      <action>maincpu.pb@0A00=09</action>
    </script>
  </cheat>

  <cheat desc="Infinite Playing Time">
    <script state="run">
      <action>maincpu.pd@0B00=00000000|(maincpu.pd@0B00 BAND ~00FFFFFF)</action>
    </script>
  </cheat>

  <cheat desc="Select Game"> <comment>Faster and easier than the ingame selection</comment>
    <parameter>
      <item value="0x00">1.  Super Mario Bros 3</item>
      <item value="0x01">2.  Super Mario (Super Mario Bros)</item>
      <item value="0x02">3.  Tennis</item>
      <item value="0x03">4.  Excitebike</item>
      <item value="0x04">5.  Balloon Fight</item>
      <item value="0x05">6.  Ice Climber</item>
      <item value="0x06">7.  Road Fighter</item>
      <item value="0x07">8.  Pac Man</item>
      <item value="0x08">9.  Bomber Man</item>
      <item value="0x09">10. Galaga</item>
      <item value="0x0A">11. Star Force</item>
      <item value="0x0B">12. King Kong (Donkey Kong Jr.)</item>
      <item value="0x0C">13. Pooyan</item>
      <item value="0x0D">14. Wonder Boy</item>
      <item value="0x0E">15. Wrestle</item>
      <item value="0x0F">16. Popeye</item>
      <item value="0x10">17. Circus Troupe (Circus Charlie)</item>
      <item value="0x11">18. Exerion</item>
      <item value="0x12">19. Mappy</item>
      <item value="0x13">20. Sky Destroyer</item>
      <item value="0x14">21. Gorilla 3</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@0F03=param</action>
    </script>
  </cheat>

  <cheat desc=" "/>
  <cheat desc="------------------------"/>
  <cheat desc="1.  Super Mario Bros 3"/>
  <cheat desc="------------------------"/>

  <cheat desc="Infinite Time">
    <script state="run">
      <action>maincpu.pd@05EE=00090909|(maincpu.pd@05EE BAND ~00FFFFFF)</action>
    </script>
  </cheat>

  <cheat desc="Infinite Lives">
    <script state="run">
      <action>maincpu.pb@0736=04</action>
    </script>
  </cheat>

  <cheat desc="Invincibility"> <comment>You can still die when you fall down holes though</comment>
    <script state="run">
      <action>maincpu.pb@0552=04</action>
    </script>
  </cheat>

  <cheat desc="Select Character Sprite Now!"> <!-- Note Changing this to a perm cheat has the effect of giving you Invincibility with all the non-normal characters -->
    <parameter>
      <item value="0x00">Normal Mario</item>
      <item value="0x01">Big Mario</item>
      <item value="0x02">Fire Mario</item>
      <item value="0x03">Raccoon Mario</item>
      <item value="0x04">Frog Mario</item>
      <item value="0x05">Tanooki Mario</item>
      <item value="0x06">Hammer Mario</item>
    </parameter>
    <script state="change">
      <action>maincpu.pb@00ED=param</action>
    </script>
  </cheat>

  <cheat desc="------------------------------------"/>
  <cheat desc="2.  Super Mario (Super Mario Bros)"/>
  <cheat desc="------------------------------------"/>

  <cheat desc="Infinite Time">
    <script state="run">
      <action condition="(frame % 120 == 0)">maincpu.pb@07FA=0A</action>
    </script>
  </cheat>

  <cheat desc="Infinite Lives">
    <script state="run">
      <action>maincpu.pb@075A=08</action>
    </script>
  </cheat>

  <cheat desc="Invincibility"> <comment>You can still die when you fall down holes though</comment>
    <script state="on">
      <action>temp0 =maincpu.md@EEE9</action>
    </script>
    <script state="run">
      <action>maincpu.pb@079E=02</action>
      <action>maincpu.md@EEE9=00EA00A9|(maincpu.md@EEE9 BAND ~00FFFFFF)</action> <!-- ROM cheat to fix the flicker -->
    </script>
    <script state="off">
      <action>maincpu.md@EEE9=temp0 </action>
    </script>
  </cheat>

  <cheat desc="Moon Jump">
    <script state="run">
      <action>maincpu.pb@0709=00</action>
    </script>
  </cheat>

  <cheat desc="Select Sprite Movement">
    <parameter>
      <item value="0x00">Walker</item>
      <item value="0x01">Swimmer</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@0704=param</action>
    </script>
  </cheat>

  <cheat desc="Select Effect Now!"> <!-- Note Changing this to a perm cheat has the effect of giving you Invincibility with all the non-normal characters -->
    <parameter>
      <item value="0x01">Small Sprite</item>
      <item value="0x02">Big Sprite</item>
      <item value="0x03">Big Sprite with Firepower</item>
    </parameter>
    <script state="change">
      <action condition="(param==01)">maincpu.pb@0754=01</action>
      <action condition="(param==01)">maincpu.pb@0756=00</action>
      <action condition="(param==02)">maincpu.pb@0754=00</action>
      <action condition="(param==02)">maincpu.pb@0756=01</action>
      <action condition="(param==03)">maincpu.pb@0754=01</action>
      <action condition="(param==03)">maincpu.pb@0756=02</action>
    </script>
  </cheat>

  <cheat desc="Select Current World Level">
    <parameter min="1" max="8" step="1"/>
    <script state="on">
      <action>maincpu.pb@075F=01</action>
    </script>
    <script state="change">
      <action>maincpu.pb@075F=(param-1)</action>
    </script>
  </cheat>

  <cheat desc="No Bottomless Pits">
    <script state="run">
      <action>maincpu.pq@05B0=5454545454545454</action>
      <action>maincpu.pq@05B8=5454545454545454</action>
      <action>maincpu.pq@05C0=5454545454545454</action>
      <action>maincpu.pq@05C8=5454545454545454</action>
      <action>maincpu.pq@0680=5454545454545454</action>
      <action>maincpu.pq@0688=5454545454545454</action>
      <action>maincpu.pq@0690=5454545454545454</action>
      <action>maincpu.pq@0698=5454545454545454</action>
    </script>
  </cheat>

  <cheat desc="------------"/>
  <cheat desc="3.  Tennis"/>
  <cheat desc="------------"/>

  <cheat desc="Infinite Faults">
    <script state="run">
      <action>maincpu.pb@007A=00</action>
    </script>
  </cheat>

  <cheat desc="Select Difficulty Level"> <comment>This effects the game speed, lower is slower.</comment>
    <parameter min="1" max="5" step="1"/>
    <script state="run">
      <action>maincpu.pb@004C=(param-1)</action>
    </script>
  </cheat>

  <cheat desc=" "/>

  <cheat desc="'Game' Score = 40 Now! Player">
    <script state="on">
      <action>maincpu.pb@0058=03</action>
    </script>
  </cheat>

  <cheat desc="'Set 1' Score = 5 Now! Player">
    <script state="on">
      <action>maincpu.pb@0051=05</action>
    </script>
  </cheat>

  <cheat desc="'Set 2' Score = 5 Now! Player">
    <script state="on">
      <action>maincpu.pb@0052=86</action>
    </script>
  </cheat>

  <cheat desc="'Set 3' Score = 5 Now! Player">
    <script state="on">
      <action>maincpu.pb@0053=86</action>
    </script>
  </cheat>

  <cheat desc=" "/>

  <cheat desc="'Game' Score always = 0 CPU">
    <script state="run">
      <action>maincpu.pb@0059=00</action>
    </script>
  </cheat>

  <cheat desc="'Game' Score = 0 Now! CPU">
    <script state="on">
      <action>maincpu.pb@0059=00</action>
    </script>
  </cheat>

  <cheat desc="'Set 1' Score always = 0 CPU">
    <script state="run">
      <action>maincpu.pb@0054=00</action>
    </script>
  </cheat>

  <cheat desc="'Set 1' Score = 0 Now! CPU">
    <script state="on">
      <action>maincpu.pb@0054=00</action>
    </script>
  </cheat>

  <cheat desc="'Set 2' Score always = 0 CPU">
    <script state="run">
      <action>maincpu.pb@0055=00</action>
    </script>
  </cheat>

  <cheat desc="'Set 2' Score = 0 Now! CPU">
    <script state="on">
      <action>maincpu.pb@0055=00</action>
    </script>
  </cheat>

  <cheat desc="'Set 3' Score always = 0 CPU">
    <script state="run">
      <action>maincpu.pb@0056=00</action>
    </script>
  </cheat>

  <cheat desc="'Set 3' Score = 0 Now! CPU">
    <script state="on">
      <action>maincpu.pb@0056=00</action>
    </script>
  </cheat>

  <cheat desc="----------------"/>
  <cheat desc="4.  Excitebike"/>
  <cheat desc="----------------"/>

  <cheat desc="Infinite Time">
    <script state="run">
      <action>maincpu.pd@0068=00000000</action>
    </script>
  </cheat>

  <cheat desc="No overheat">
    <script state="run">
      <action>maincpu.pb@0BB6=08</action>
    </script>
  </cheat>

  <cheat desc="Invincibility">
    <script state="on">
      <action>temp0 =maincpu.mb@DC69</action>
      <action>temp1 =maincpu.mb@E818</action>
    </script>
    <script state="run">
      <action>maincpu.mb@DC69=60</action> <!-- Bad landings -->
      <action>maincpu.mb@E818=60</action> <!-- Walls -->
    </script>
    <script state="off">
      <action>maincpu.mb@DC69=temp0 </action>
      <action>maincpu.mb@E818=temp1 </action>
    </script>
  </cheat>

  <cheat desc="No slowing surfaces">
    <script state="on">
      <action>temp0 =maincpu.md@CE0C</action>
      <action>temp1 =maincpu.mb@E91A</action>
    </script>
    <script state="run">
      <action>maincpu.md@CE0C=F0CE1F4C</action> <!-- Open stretches -->
      <action>maincpu.mb@E91A=60</action> <!-- Bushes -->
    </script>
    <script state="off">
      <action>maincpu.md@CE0C=temp0 </action>
      <action>maincpu.mb@E91A=temp1 </action>
    </script>
  </cheat>

  <cheat desc="-------------------"/>
  <cheat desc="5.  Balloon Fight"/>
  <cheat desc="-------------------"/>

  <cheat desc="Infinite Lives">
    <script state="run">
      <action>maincpu.pb@0041=07</action>
    </script>
  </cheat>

  <cheat desc="-----------------"/>
  <cheat desc="6.  Ice Climber"/>
  <cheat desc="-----------------"/>

  <cheat desc="Infinite Lives">
    <script state="run">
      <action>maincpu.pb@0020=03</action>
    </script>
  </cheat>

  <cheat desc="Invincibility">
    <script state="on">
      <action>temp0 =maincpu.mw@D340</action>
    </script>
    <script state="run">
      <action>maincpu.mw@D340=00A9</action>
    </script>
    <script state="off">
      <action>maincpu.mw@D340=temp0 </action>
    </script>
  </cheat>

  <cheat desc="Infinite Bonus Round Time">
    <script state="run">
      <action>maincpu.pw@07FA=9A99</action>
    </script>
  </cheat>

  <cheat desc="------------------"/>
  <cheat desc="7.  Road Fighter"/>
  <cheat desc="------------------"/>

  <cheat desc="Infinite Fuel"> <comment>Turn OFF at the end of the level</comment>
    <script state="run">
      <action>maincpu.pb@00C8=65</action>
    </script>
  </cheat>

  <cheat desc="Invincibility"> <comment>Use in conjunction with the Infinite Fuel cheat as if you run out of fuel the game will still end</comment>
    <script state="on">
      <action>temp0 =maincpu.mb@DEEE</action>
      <action>temp1 =maincpu.mb@E154</action>
      <action>temp2 =maincpu.mb@E136</action>
    </script>
    <script state="run">
      <action>maincpu.mb@DEEE=60</action>
      <action>maincpu.mb@E154=A5</action> <!-- Pt 1 Walls, Pt 2 Cars + Oil Slicks -->
      <action>maincpu.mb@E136=60</action> <!-- Trucks -->
    </script>
    <script state="off">
      <action>maincpu.mb@DEEE=temp0 </action>
      <action>maincpu.mb@E154=temp1 </action>
      <action>maincpu.mb@E136=temp2 </action>
    </script>
  </cheat>

  <cheat desc="-------------"/>
  <cheat desc="8.  Pac Man"/>
  <cheat desc="-------------"/>

  <cheat desc="Infinite Lives">
    <script state="run">
      <action>maincpu.pb@0067=06</action>
    </script>
  </cheat>

  <cheat desc="Invincibility">
    <script state="on">
      <action>temp0 =maincpu.mb@D2A3</action>
    </script>
    <script state="run">
      <action>maincpu.mb@D2A3=04</action>
    </script>
    <script state="off">
      <action>maincpu.mb@D2A3=temp0 </action>
    </script>
  </cheat>

  <cheat desc="----------------"/>
  <cheat desc="9.  Bomber Man"/>
  <cheat desc="----------------"/>

  <cheat desc="Infinite Time">
    <script state="run">
      <action>maincpu.pb@0093=FE</action>
    </script>
  </cheat>

  <cheat desc="Infinite Lives">
    <script state="run">
      <action>maincpu.pb@0068=63</action>
    </script>
  </cheat>

  <cheat desc="Invincibility">
    <script state="on">
      <action>temp0 =maincpu.mb@C6ED</action>
      <action>temp1 =maincpu.mb@D075</action>
    </script>
    <script state="run">
      <action>maincpu.mb@C6ED=A9</action>
      <action>maincpu.mb@D075=60</action> <!-- Pt 1 Bomb Blast, Pt 2 collisions -->
    </script>
    <script state="off">
      <action>maincpu.mb@C6ED=temp0 </action>
      <action>maincpu.mb@D075=temp1 </action>
    </script>
  </cheat>

  <cheat desc="Maximum Bomb Distance">
    <script state="run">
      <action>maincpu.pb@0073=80</action>
    </script>
  </cheat>

  <cheat desc="Maximum Bombs">
    <script state="run">
      <action>maincpu.pb@0074=09</action>
    </script>
  </cheat>

  <cheat desc="------------"/>
  <cheat desc="10. Galaga"/>
  <cheat desc="------------"/>

  <cheat desc="Infinite Lives">
    <script state="run">
      <action>maincpu.pb@0487=05</action>
    </script>
  </cheat>

  <cheat desc="Invincibility">
    <script state="on">
      <action>temp0 =maincpu.mw@E84C</action>
      <action>temp1 =maincpu.mw@E890</action>
    </script>
    <script state="run">
      <action>maincpu.mw@E84C=EA18</action>
      <action>maincpu.mw@E890=EA18</action> <!-- Pt 1 Bullets, Pt 2 Enemies -->
    </script>
    <script state="off">
      <action>maincpu.mw@E84C=temp0 </action>
      <action>maincpu.mw@E890=temp1 </action>
    </script>
  </cheat>

  <cheat desc="----------------"/>
  <cheat desc="11. Star Force"/>
  <cheat desc="----------------"/>

  <cheat desc="Infinite Lives">
    <script state="run">
      <action>maincpu.pb@0050=09</action>
    </script>
  </cheat>

  <cheat desc="Invincibility">
    <script state="on">
      <action>temp0 =maincpu.mb@DE97</action>
    </script>
    <script state="run">
      <action>maincpu.mb@DE97=A5</action>
    </script>
    <script state="off">
      <action>maincpu.mb@DE97=temp0 </action>
    </script>
  </cheat>

  <cheat desc="---------------------------------"/>
  <cheat desc="12. King Kong (Donkey Kong Jr.)"/>
  <cheat desc="---------------------------------"/>

  <cheat desc="Infinite Lives">
    <script state="run">
      <action>maincpu.pb@004C=09</action>
    </script>
  </cheat>

  <cheat desc="Invincibility"> <comment>Beware, you still die if you fall OFF the screen or into water</comment>
    <script state="on">
      <action>temp0 =maincpu.mb@D405</action>
      <action>temp1 =maincpu.mb@DA41</action>
    </script>
    <script state="run">
      <action>maincpu.mb@D405=60</action>
      <action>maincpu.mb@DA41=00</action> <!-- Pt1 collisions, Pt2 fall from height -->
    </script>
    <script state="off">
      <action>maincpu.mb@D405=temp0 </action>
      <action>maincpu.mb@DA41=temp1 </action>
    </script>
  </cheat>

  <cheat desc="------------"/>
  <cheat desc="13. Pooyan"/>
  <cheat desc="------------"/>

  <cheat desc="Infinite Lives">
    <script state="run">
      <action>maincpu.pb@0052=04</action>
    </script>
  </cheat>

  <cheat desc="Invincibility">
    <script state="on">
      <action>temp0 =maincpu.mb@D972</action>
      <action>temp1 =maincpu.mb@DB21</action>
      <action>temp2 =maincpu.mb@DC36</action>
    </script>
    <script state="run">
      <action>maincpu.mb@D972=A9</action> <!-- Stop Large Rock dropping -->
      <action>maincpu.mb@DB21=00</action> <!-- Small Rocks -->
      <action>maincpu.mb@DC36=60</action> <!-- Bites -->
    </script>
    <script state="off">
      <action>maincpu.mb@D972=temp0 </action>
      <action>maincpu.mb@DB21=temp1 </action>
      <action>maincpu.mb@DC36=temp2 </action>
    </script>
  </cheat>

  <cheat desc="----------------"/>
  <cheat desc="14. Wonder Boy"/>
  <cheat desc="----------------"/>

  <cheat desc="Infinite Time">
    <script state="run">
      <action condition="(frame % 420 == 0)">maincpu.pb@0076=21</action>
    </script>
  </cheat>

  <cheat desc="Infinite Lives">
    <script state="run">
      <action>maincpu.pb@003F=09</action>
    </script>
  </cheat>

  <cheat desc="Invincibility"> <comment>Note - you will still die if you fall in any holes/water</comment>
    <script state="on">
      <action>temp0 =maincpu.mb@BFF4</action>
    </script>
    <script state="run">
      <action>maincpu.mb@BFF4=60</action>
    </script>
    <script state="off">
      <action>maincpu.mb@BFF4=temp0 </action>
    </script>
  </cheat>

  <cheat desc="-------------"/>
  <cheat desc="15. Wrestle"/>
  <cheat desc="-------------"/>

  <cheat desc="Infinite Time">
    <script state="run">
      <action>maincpu.pd@008F=09090509</action>
    </script>
  </cheat>

  <cheat desc="Infinite Energy">
    <script state="run">
      <action>maincpu.pb@004F=63</action>
    </script>
  </cheat>

  <cheat desc="Drain All CPU Energy Now!"> <comment>May need to repeat a few times</comment>
    <script state="on">
      <action>maincpu.pb@0050=00</action>
    </script>
  </cheat>

  <cheat desc="------------"/>
  <cheat desc="16. Popeye"/>
  <cheat desc="------------"/>

  <cheat desc="Infinite Lives">
    <script state="run">
      <action>maincpu.pb@006C=0A</action>
    </script>
  </cheat>

  <cheat desc="Invincibility">
    <script state="on">
      <action>temp0 =maincpu.mb@D11F</action>
      <action>temp1 =maincpu.mw@D356</action>
    </script>
    <script state="run">
      <action>maincpu.mb@D11F=2E</action>
      <action>maincpu.mw@D356=0DD0</action> <!-- Pt 1 Bluto, Pt 2 Objects -->
    </script>
    <script state="off">
      <action>maincpu.mb@D11F=temp0 </action>
      <action>maincpu.mw@D356=temp1 </action>
    </script>
  </cheat>

  <cheat desc="------------------------------------"/>
  <cheat desc="17. Circus Troupe (Circus Charlie)"/>
  <cheat desc="------------------------------------"/>

  <cheat desc="Infinite Lives">
    <script state="run">
      <action>maincpu.pb@0060=06</action>
    </script>
  </cheat>

  <cheat desc="Invincibility [STAGE 1]">
    <script state="on">
      <action>temp0 =maincpu.mb@E88E</action>
      <action>temp1 =maincpu.mb@E8D6</action>
    </script>
    <script state="run">
      <action>maincpu.mb@E88E=00</action> <!-- Cup of Fire -->
      <action>maincpu.mb@E8D6=00</action> <!-- Ring of Fire -->
    </script>
    <script state="off">
      <action>maincpu.mb@E88E=temp0 </action>
      <action>maincpu.mb@E8D6=temp1 </action>
    </script>
  </cheat>

  <cheat desc="Invincibility [STAGE 2]">
    <script state="on">
      <action>temp0 =maincpu.mb@EC09</action>
    </script>
    <script state="run">
      <action>maincpu.mb@EC09=00</action> <!-- Monkey on Rope -->
    </script>
    <script state="off">
      <action>maincpu.mb@EC09=temp0 </action>
    </script>
  </cheat>

  <cheat desc="Invincibility [STAGE 3]">
    <script state="on">
      <action>temp0 =maincpu.mb@DAA3</action>
      <action>temp1 =maincpu.mb@EE85</action>
    </script>
    <script state="run">
      <action>maincpu.mb@DAA3=0A</action> <!-- Floor (walk on air if you miss) -->
      <action>maincpu.mb@EE85=00</action> <!-- Collisions -->
    </script>
    <script state="off">
      <action>maincpu.mb@DAA3=temp0 </action>
      <action>maincpu.mb@EE85=temp1 </action>
    </script>
  </cheat>

  <cheat desc="Invincibility [STAGE 4]">
    <script state="on">
      <action>temp0 =maincpu.mb@F0ED</action>
      <action>temp1 =maincpu.md@D9E2</action>
    </script>
    <script state="run">
      <action>maincpu.mb@F0ED=00</action> <!-- Collisions with platforms -->
      <action>maincpu.md@D9E2=00CE354C|(maincpu.md@D9E2 BAND ~00FFFFFF)</action> <!-- Brings you back onto the podium if you don't dismount -->
    </script>
    <script state="off">
      <action>maincpu.mb@F0ED=temp0 </action>
      <action>maincpu.md@D9E2=temp1 </action>
    </script>
  </cheat>

  <cheat desc="-------------"/>
  <cheat desc="18. Exerion"/>
  <cheat desc="-------------"/>

  <cheat desc="Infinite Lives">
    <script state="run">
      <action>maincpu.pb@003C=09</action>
    </script>
  </cheat>

  <cheat desc="Invincibility">
    <script state="on">
      <action>temp0 =maincpu.mw@8FA4</action>
      <action>temp1 =maincpu.mw@A5FE</action>
      <action>temp2 =maincpu.mw@A9B3</action>
      <action>temp3 =maincpu.mw@AB2B</action>
    </script>
    <script state="run">
      <action>maincpu.mw@8FA4=1390</action>
      <action>maincpu.mw@A5FE=2C90</action> <!-- Pt 1 Bullets, Pt 2 Enemies -->
      <action>maincpu.mw@A9B3=38EA</action> <!-- Mines -->
      <action>maincpu.mw@AB2B=1090</action> <!-- Missiles -->
    </script>
    <script state="off">
      <action>maincpu.mw@8FA4=temp0 </action>
      <action>maincpu.mw@A5FE=temp1 </action>
      <action>maincpu.mw@A9B3=temp2 </action>
      <action>maincpu.mw@AB2B=temp3 </action>
    </script>
  </cheat>

  <cheat desc="-----------"/>
  <cheat desc="19. Mappy"/>
  <cheat desc="-----------"/>

  <cheat desc="Infinite Lives">
    <script state="run">
      <action>maincpu.pb@0070=02</action>
    </script>
  </cheat>

  <cheat desc="Invincibility">
    <script state="on">
      <action>temp0 =maincpu.mb@DC1F</action>
      <action>temp1 =maincpu.mw@E0ED</action>
    </script>
    <script state="run">
      <action>maincpu.mb@DC1F=BD</action>
      <action>maincpu.mw@E0ED=0790</action> <!-- Pt 1 Unbreakable Normal Round Strings, Pt 2 Collisions -->
    </script>
    <script state="off">
      <action>maincpu.mb@DC1F=temp0 </action>
      <action>maincpu.mw@E0ED=temp1 </action>
    </script>
  </cheat>

  <cheat desc="Infinite Bonus Round Time"> <comment>Only turn this ON during the Bonus Round and turn it OFF at the end of the Bonus Round to get your points</comment>
    <script state="run">
      <action>maincpu.pw@000E=0008</action>
    </script>
  </cheat>

  <cheat desc="Unbreakable Bonus Round Strings"> <comment>Note you will need to turn this cheat OFF when you are required to break through a string to get any further</comment>
    <script state="on">
      <action>temp0 =maincpu.mb@E21A</action>
    </script>
    <script state="run">
      <action>maincpu.mb@E21A=BD</action>
    </script>
    <script state="off">
      <action>maincpu.mb@E21A=temp0 </action>
    </script>
  </cheat>

  <cheat desc="-------------------"/>
  <cheat desc="20. Sky Destroyer"/>
  <cheat desc="-------------------"/>

  <cheat desc="Infinite Lives">
    <script state="run">
      <action>maincpu.pb@002C=09</action>
    </script>
  </cheat>

  <cheat desc="Invincibility">
    <script state="on">
      <action>temp0 =maincpu.mb@D1C8</action>
      <action>temp1 =maincpu.mb@F044</action>
    </script>
    <script state="run">
      <action>maincpu.mb@D1C8=37</action>
      <action>maincpu.mb@F044=90</action> <!-- Pt 1 Sea, Pt 2 everything else -->
    </script>
    <script state="off">
      <action>maincpu.mb@D1C8=temp0 </action>
      <action>maincpu.mb@F044=temp1 </action>
    </script>
  </cheat>

  <cheat desc="---------------"/>
  <cheat desc="21. Gorilla 3"/>
  <cheat desc="---------------"/>

  <cheat desc="Infinite Lives">
    <script state="run">
      <action>maincpu.pb@0090=0A</action>
    </script>
  </cheat>

  <cheat desc="Invincibility">
    <script state="on">
      <action>temp0 =maincpu.mb@CBE0</action>
      <action>temp1 =maincpu.mb@D86C</action>
    </script>
    <script state="run">
      <action>maincpu.mb@CBE0=60</action>
      <action>maincpu.mb@D86C=1E</action> <!-- Pt 1 collisions, Pt 2 stop gorilla falling -->
    </script>
    <script state="off">
      <action>maincpu.mb@CBE0=temp0 </action>
      <action>maincpu.mb@D86C=temp1 </action>
    </script>
  </cheat>

  <cheat desc="All Plants Safe">
    <script state="on">
      <action>temp0 =maincpu.mb@E278</action>
    </script>
    <script state="run">
      <action>maincpu.mb@E278=60</action>
    </script>
    <script state="off">
      <action>maincpu.mb@E278=temp0 </action>
    </script>
  </cheat>

</mamecheat>
<!-- Cheat file downloaded from http://www.mamecheat.co.uk, see cheat.txt for list of contributors. -->
