<mamecheat version="1">

  <cheat desc="Infinite Credits">
    <script state="run">
      <action>maincpu.pb@321A=FF</action>
    </script>
  </cheat>

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

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

  <cheat desc="Invincibility">
    <script state="on">
      <action>temp0 =maincpu.mb@A7C4</action>
      <action>temp1 =maincpu.mw@A836</action>
    </script>
    <script state="run">
      <action>maincpu.mb@A7C4=20</action> <!-- Weapon Fire/Bombs (various) -->
      <action>maincpu.mw@A836=0000</action> <!-- Standard Collisions (Hand to Hand) -->
    </script>
    <script state="off">
      <action>maincpu.mb@A7C4=temp0 </action>
      <action>maincpu.mw@A836=temp1 </action>
    </script>
  </cheat>

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

  <cheat desc="Select Weapon"> <comment>Use in conjuction with the Infinite Ammo cheat ON for the best effect!!</comment>
    <parameter>
      <item value="0x00">Fire</item>
      <item value="0x01">Rope</item>
      <item value="0x02">Bomb</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@3605=param</action>
    </script>
  </cheat>

  <cheat desc="Select Starting Stage"> <comment>Stages after 5-5 may have corrupted background graphics</comment>
    <parameter>
      <item value="0x00">1-1</item>
      <item value="0x01">1-2</item>
      <item value="0x02">1-3</item>
      <item value="0x03">1-4</item>
      <item value="0x04">1-5</item>
      <item value="0x10">2-1</item>
      <item value="0x11">2-2</item>
      <item value="0x12">2-3</item>
      <item value="0x13">2-4</item>
      <item value="0x14">2-5</item>
      <item value="0x20">3-1</item>
      <item value="0x21">3-2</item>
      <item value="0x22">3-3</item>
      <item value="0x23">3-4</item>
      <item value="0x24">3-5</item>
      <item value="0x30">4-1</item>
      <item value="0x31">4-2</item>
      <item value="0x32">4-3</item>
      <item value="0x33">4-4</item>
      <item value="0x34">4-5</item>
      <item value="0x40">5-1</item>
      <item value="0x41">5-2</item>
      <item value="0x42">5-3</item>
      <item value="0x43">5-4</item>
      <item value="0x44">5-5</item>
    </parameter>
    <script state="run">
      <action condition="(maincpu.pb@327F==00) AND (maincpu.pb@327B==00)">(maincpu.pb@327F=(param BAND 0F)) AND (maincpu.pb@327B=(param BAND F0)/10)</action>
    </script>
  </cheat>

  <cheat desc=" "/>

  <cheat desc="Skip RAM/ROM Checks"> <comment>Also allows a quicker start-up - may need to reset unless it's pre-enabled. It's better to use together with Pre-Enable.</comment>
    <script state="on">
      <action>temp0 =maincpu.md@4000</action>
    </script>
    <script state="run">
      <action>maincpu.md@4000=4F7E41C7</action>
    </script>
    <script state="off">
      <action>maincpu.md@4000=temp0 </action>
    </script>
  </cheat>

  <cheat desc="Sound Test">
    <parameter min="1" max="80" step="1"/>
    <script state="change">
      <action>maincpu.pb@3390=param</action>
      <action>maincpu.pw@3210=3391</action>
      <action>maincpu.pW@3212=3390</action>
    </script>
  </cheat>

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