<mamecheat version="1">

  <cheat desc="Infinite Time">
    <script state="run">
      <action>maincpu.pb@106E93=3C</action>
    </script>
  </cheat>

  <cheat desc="Infinite Tank Gas">
    <script state="run">
      <action>maincpu.pb@1005E7=30</action>
    </script>
  </cheat>

  <cheat desc="Infinite Tank Cannon">
    <script state="run">
      <action>maincpu.pb@100610=0A</action>
    </script>
  </cheat>

  <cheat desc="Infinite Vehicle Cannon">
    <script state="run">
      <action>maincpu.pw@10060E=0001</action>
    </script>
  </cheat>

  <cheat desc="Tank Invincibility">
    <script state="run">
      <action>maincpu.pb@1005C5=FF</action>
    </script>
  </cheat>

  <cheat desc="Select Starting Mission">
    <parameter min="1" max="6" step="1"/>
    <script state="run">
      <action condition="(maincpu.pb@10E3B7==00)">maincpu.pb@10E3B7=(param-1)</action>
    </script>
  </cheat>

  <cheat desc="Hit Anywhere">
    <script state="on">
      <action>maincpu.mw@285FC=4EF9, maincpu.mw@28600=0200</action>
      <action>maincpu.mq@00200=B3FC00100440670C, maincpu.mq@00208=D1FC0000000A4EF9</action>
      <action>maincpu.mq@00210=00028618D1FC0000, maincpu.mq@00218=000A4EF900028602</action>
    </script>
    <script state="off">
      <action>maincpu.mw@285FC=D1FC, maincpu.mw@28600=000A</action>
      <action>maincpu.mq@00200=0000000000000000, maincpu.mq@00208=0000000000000000</action>
      <action>maincpu.mq@00210=0000000000000000, maincpu.mq@00218=0000000000000000</action>
    </script>
  </cheat>

  <cheat desc=" "/>

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

  <cheat desc="Infinite Bombs PL1">
    <script state="run">
      <action>maincpu.pb@1004C0=0A</action>
    </script>
  </cheat>

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

  <cheat desc="Select Weapon PL1">
    <parameter>
      <item value="0x00">Normal Gun</item>
      <item value="0x01">Shotgun</item>
      <item value="0x02">Flamer</item>
      <item value="0x03">Rocket Launcher</item>
      <item value="0x04">Machine Gun</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@1004B1=param</action> <!-- Weapon -->
      <action>maincpu.pb@1004C2=FF</action> <!-- Infinite Ammo -->
    </script>
  </cheat>

  <cheat desc="Rapid Fire PL1">
    <script state="run">
      <action>maincpu.pb@106EB2=00|(maincpu.pb@106EB2 BAND ~10)</action>
    </script>
  </cheat>

  <cheat desc="No bomb throwing delay PL1"> <comment>You can normally have to wait for the bombs to explode before you can throw anymore</comment>
    <script state="run">
      <action>maincpu.pd@1004C1=00000000|(maincpu.pd@1004C1 BAND ~FF0000FF)</action>
    </script>
  </cheat>

  <cheat desc=" "/>

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

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

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

  <cheat desc="Select Weapon PL2">
    <parameter>
      <item value="0x00">Normal Gun</item>
      <item value="0x01">Shotgun</item>
      <item value="0x02">Flamer</item>
      <item value="0x03">Rocket Launcher</item>
      <item value="0x04">Machine Gun</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@100551=param</action> <!-- Weapon -->
      <action>maincpu.pb@100562=FF</action> <!-- Infinite Ammo -->
    </script>
  </cheat>

  <cheat desc="Rapid Fire PL2">
    <script state="run">
      <action>maincpu.pb@106EB8=00|(maincpu.pb@106EB8 BAND ~10)</action>
    </script>
  </cheat>

  <cheat desc="No bomb throwing delay PL2"> <comment>You can normally have to wait for the bombs to explode before you can throw anymore</comment>
    <script state="run">
      <action>maincpu.pd@100561=00000000|(maincpu.pd@100561 BAND ~FF0000FF)</action>
    </script>
  </cheat>

  <cheat desc=" "/>

  <cheat desc="Select Cartridge/NeoGeo Type"> <comment>Use in conjuction with the 'Skip RAM/ROM Checks' cheat for the best effect, then enable it and reset. The Home (NEOGEO) setting may open up other aspects of the game or it may even make the game unplayable.</comment>
    <parameter>
      <item value="0x80">Arcade (MVS)</item>
      <item value="0x00">Home (NEOGEO)</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@10FD82=param</action>
    </script>
  </cheat>

  <cheat desc="Skip RAM/ROM Checks"> <comment>Also allows a quicker start-up without the green screens. It's better to use together with Pre-Enable.</comment>
    <script state="on">
      <action>temp0 =maincpu.rd@C1315C</action>
      <action>temp1 =maincpu.rd@C1314E</action>
      <action>temp2 =maincpu.rd@C131E8</action>
      <action>temp3 =maincpu.rd@C13184</action>
      <action>temp4 =maincpu.rd@C1212E</action>
      <action>temp5 =maincpu.rd@C134FA</action>
    </script>
    <script state="run">
      <action condition="(maincpu.rd@C1315C==51CFFFF2)">maincpu.rd@C1315C=6000EB08</action> <!-- Euro + Japan-S2 BIOSs -->
      <action condition="(maincpu.rd@C1314E==51CFFFF2)">maincpu.rd@C1314E=6000EB16</action> <!-- Euro-S1 + Japan-S1 BIOSs -->
      <action condition="(maincpu.rd@C131E8==51CFFFF2)">maincpu.rd@C131E8=6000EA52</action> <!-- US BIOS -->
      <action condition="(maincpu.rd@C13184==51CFFFF2)">maincpu.rd@C13184=6000EAB6</action> <!-- US-E BIOS -->
      <action condition="(maincpu.rd@C1212E==51CFFFF2)">maincpu.rd@C1212E=6000EB36</action> <!-- Asia BIOS -->
      <action condition="(maincpu.rd@C134FA==51CFFFF2)">maincpu.rd@C134FA=6000E892</action> <!-- Japan BIOS -->
    </script>
    <script state="off">
      <action>maincpu.rd@C1315C=temp0 </action>
      <action>maincpu.rd@C1314E=temp1 </action>
      <action>maincpu.rd@C131E8=temp2 </action>
      <action>maincpu.rd@C13184=temp3 </action>
      <action>maincpu.rd@C1212E=temp4 </action>
      <action>maincpu.rd@C134FA=temp5 </action>
    </script>
  </cheat>

  <cheat desc="Turn All Sound Off"> <comment>This will turn ALL sound off the next time you shoot, turn it OFF when the sound dies and the sfx will return but the background music will be gone!</comment>
    <script state="run">
      <action>audiocpu.pb@F81C=00</action>
    </script>
    <script state="off">
      <action>audiocpu.pb@F81C=10</action>
    </script>
  </cheat>

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