<mamecheat version="1">

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

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

  <cheat desc="Select Starting Stage">
    <parameter>
      <item value="0x01">1-1</item>
      <item value="0x02">1-2</item>
      <item value="0x04">2-1</item>
      <item value="0x05">2-2</item>
      <item value="0x06">3</item>
      <item value="0x07">4-1</item>
      <item value="0x08">4-2</item>
      <item value="0x09">4-3</item>
      <item value="0x0A">5-1</item>
      <item value="0x0B">5-2</item>
      <item value="0x0C">5-3</item>
      <item value="0x0D">5-4</item>
      <item value="0x0E">5-5</item>
      <item value="0x0F">6-1</item>
      <item value="0x10">6-2</item>
      <item value="0x11">6-3</item>
      <item value="0x12">7-1</item>
      <item value="0x13">7-2</item>
      <item value="0x14">7-3</item>
      <item value="0x15">7-4</item>
      <item value="0x16">7-5</item>
      <item value="0x17">7-6</item>
    </parameter>
    <script state="run">
      <action condition="(maincpu.pb@40FE63==01)">maincpu.pb@40FE63=param</action>
    </script>
  </cheat>

  <cheat desc="Always have Magic Carpet">
    <script state="run">
      <action>maincpu.pb@40FE97=02</action>
    </script>
  </cheat>

  <cheat desc=" "/>

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

  <cheat desc="Infinite Energy PL1">
    <script state="run">
      <action>maincpu.pb@40FF57=23</action>
    </script>
  </cheat>

  <cheat desc="Infinite Magic PL1">
    <script state="run">
      <action>maincpu.pb@40FF5B=09</action>
    </script>
  </cheat>

  <cheat desc="Infinite Ammo PL1"> <comment>Effective when you have a weapon</comment>
    <script state="run">
      <action>maincpu.pb@40FF77=09</action>
    </script>
  </cheat>

  <cheat desc="Invincibility PL1">
    <script state="run">
      <action>maincpu.pb@40FF7D=03</action>
    </script>
  </cheat>

  <cheat desc="Enemies never attack PL1">
    <script state="run">
      <action>maincpu.pb@40FF36=E8</action>
    </script>
  </cheat>

  <cheat desc="Maximum Power Up PL1">
    <script state="run">
      <action>maincpu.pb@410D61=FF</action>
    </script>
  </cheat>

  <cheat desc=" "/>

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

  <cheat desc="Infinite Energy PL2">
    <script state="run">
      <action>maincpu.pb@40FFA7=23</action>
    </script>
  </cheat>

  <cheat desc="Infinite Magic PL2">
    <script state="run">
      <action>maincpu.pb@40FFAB=09</action>
    </script>
  </cheat>

  <cheat desc="Infinite Ammo PL2"> <comment>Effective when you have a weapon</comment>
    <script state="run">
      <action>maincpu.pb@40FFC7=09</action>
    </script>
  </cheat>

  <cheat desc="Invincibility PL2">
    <script state="run">
      <action>maincpu.pb@40FFCD=03</action>
    </script>
  </cheat>

  <cheat desc="Enemies never attack PL2">
    <script state="run">
      <action>maincpu.pb@40FF86=E8</action>
    </script>
  </cheat>

  <cheat desc=" "/>

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

  <cheat desc="Infinite Energy PL3">
    <script state="run">
      <action>maincpu.pb@40FFF7=23</action>
    </script>
  </cheat>

  <cheat desc="Infinite Magic PL3">
    <script state="run">
      <action>maincpu.pb@40FFFB=09</action>
    </script>
  </cheat>

  <cheat desc="Infinite Ammo PL3"> <comment>Effective when you have a weapon</comment>
    <script state="run">
      <action>maincpu.pb@410017=09</action>
    </script>
  </cheat>

  <cheat desc="Invincibility PL3">
    <script state="run">
      <action>maincpu.pb@41001D=03</action>
    </script>
  </cheat>

  <cheat desc="Enemies never attack PL3">
    <script state="run">
      <action>maincpu.pb@40FFD6=E8</action>
    </script>
  </cheat>

  <cheat desc=" "/>

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

  <cheat desc="Infinite Energy PL4">
    <script state="run">
      <action>maincpu.pb@410047=23</action>
    </script>
  </cheat>

  <cheat desc="Infinite Magic PL4">
    <script state="run">
      <action>maincpu.pb@41004B=09</action>
    </script>
  </cheat>

  <cheat desc="Infinite Ammo PL4"> <comment>Effective when you have a weapon</comment>
    <script state="run">
      <action>maincpu.pb@410067=09</action>
    </script>
  </cheat>

  <cheat desc="Invincibility PL4">
    <script state="run">
      <action>maincpu.pb@41006D=03</action>
    </script>
  </cheat>

  <cheat desc="Enemies never attack PL4">
    <script state="run">
      <action>maincpu.pb@410026=E8</action>
    </script>
  </cheat>

  <cheat desc=" "/>

  <cheat desc="Select Region"> <comment>After you enable this cheat to see any effect you will have to reset the game (F3). Then you may have to turn the Test Mode ON (F2), reset again (F3), wait for Test Mode to appear then turn the Test Mode OFF (F2) and reset (F3).</comment>
    <parameter>
      <item value="0x01">Japan</item>
      <item value="0x02">US</item>
      <item value="0x03">World</item>
    </parameter>
    <script state="on">
      <action>temp0 =maincpu.mb@0FFFFF</action>
    </script>
    <script state="run">
      <action>maincpu.mb@0FFFFF=param</action>
    </script>
    <script state="off">
      <action>maincpu.mb@0FFFFF=temp0 </action>
    </script>
  </cheat>

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