<mamecheat version="1">

  <cheat desc="Invincibility">
    <script state="on">
      <action>temp0 =maincpu.mb@21F9E</action>
      <action>temp1 =maincpu.mb@231E3</action>
      <action>temp2 =maincpu.mb@231E8</action>
    </script>
    <script state="run">
      <action>maincpu.mb@21F9E=60</action>
      <action>maincpu.mb@231E3=AE</action> <!-- 1st = Enemy, 2nd = Fire fixed -->
      <action>maincpu.mb@231E8=60</action> <!-- 3rd = Fire -->
    </script>
    <script state="off">
      <action>maincpu.mb@21F9E=temp0 </action>
      <action>maincpu.mb@231E3=temp1 </action>
      <action>maincpu.mb@231E8=temp2 </action>
    </script>
  </cheat>

  <cheat desc=" "/>

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

  <cheat desc="Infinite Bombs PL1">
    <script state="run">
      <action>maincpu.pb@3004D=09</action>
    </script>
  </cheat>

  <cheat desc="Always Max Fire Power PL1">
    <script state="run">
      <action>maincpu.pb@3004B=28</action>
    </script>
  </cheat>

  <cheat desc="Select Weapon PL1"> <comment>You must enable the 'Always Max Fire Power PL1' cheat for this cheat to work properly</comment>
    <parameter>
      <item value="0x00">Normal Fire</item>
      <item value="0x2C">Laser</item>
      <item value="0x58">Multiway Fire</item>
      <item value="0x84">4-Sides Fire</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@3005B=param</action>
    </script>
  </cheat>

  <cheat desc=" "/>

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

  <cheat desc="Infinite Bombs PL2">
    <script state="run">
      <action>maincpu.pb@300AD=09</action>
    </script>
  </cheat>

  <cheat desc="Always Max Fire Power PL2">
    <script state="run">
      <action>maincpu.pb@300AB=28</action>
    </script>
  </cheat>

  <cheat desc="Select Weapon PL2"> <comment>You must enable the 'Always Max Fire Power PL2' cheat for this cheat to work properly</comment>
    <parameter>
      <item value="0x00">Normal Fire</item>
      <item value="0x2C">Laser</item>
      <item value="0x58">Multiway Fire</item>
      <item value="0x84">4-Sides Fire</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@300BB=param</action>
    </script>
  </cheat>

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