<mamecheat version="1">

  <cheat desc="Infinite Time">
    <script state="run">
      <action>maincpu.pb@1013D2=99</action>
    </script>
  </cheat>

  <cheat desc="Invincibility"> <comment>Debug DIP 2-?</comment>
    <script state="on">
      <action>temp0 =maincpu.pb@100001</action>
    </script>
    <script state="run">
      <action>maincpu.pb@100001=02|(maincpu.pb@100001 BAND ~02)</action>
    </script>
    <script state="off">
      <action>maincpu.pb@100001=temp0 </action>
    </script>
  </cheat>

  <cheat desc="Select Starting Battle">
    <parameter>
      <item value="0x01">Battle 1 American City</item>
      <item value="0x02">Battle 2 French City</item>
      <item value="0x03">Battle 3 Grand Canyon</item>
      <item value="0x04">Battle 4 Desert</item>
      <item value="0x05">Battle 5 Sea Bed</item>
      <item value="0x06">Battle 6 Lava Zone</item>
      <item value="0x07">Battle 7 Hide-Out</item>
    </parameter>
    <script state="on">
      <action>temp0 =maincpu.md@0027EE</action>
      <action>temp1 =maincpu.md@00C204</action>
      <action>temp2 =maincpu.md@00C208</action>
    </script>
    <script state="run">
      <action condition="(param==01)">maincpu.md@0027EE=4E714E71</action>
      <action condition="(param==01)">maincpu.md@00C204=3B7C0000</action>
      <action condition="(param==01)">maincpu.md@00C208=FCE66038</action>
      <action condition="(param==02)">maincpu.md@0027EE=4E714E71</action>
      <action condition="(param==02)">maincpu.md@00C204=3B7C0002</action>
      <action condition="(param==02)">maincpu.md@00C208=FCE66038</action>
      <action condition="(param==03)">maincpu.md@0027EE=4E714E71</action>
      <action condition="(param==03)">maincpu.md@00C204=3B7C0003</action>
      <action condition="(param==03)">maincpu.md@00C208=FCE66038</action>
      <action condition="(param==04)">maincpu.md@0027EE=4E714E71</action>
      <action condition="(param==04)">maincpu.md@00C204=3B7C0004</action>
      <action condition="(param==04)">maincpu.md@00C208=FCE66038</action>
      <action condition="(param==05)">maincpu.md@0027EE=4E714E71</action>
      <action condition="(param==05)">maincpu.md@00C204=3B7C0001</action>
      <action condition="(param==05)">maincpu.md@00C208=FCE66038</action>
      <action condition="(param==06)">maincpu.md@0027EE=4E714E71</action>
      <action condition="(param==06)">maincpu.md@00C204=3B7C0005</action>
      <action condition="(param==06)">maincpu.md@00C208=FCE66038</action>
      <action condition="(param==07)">maincpu.md@0027EE=4E714E71</action>
      <action condition="(param==07)">maincpu.md@00C204=3B7C0006</action>
      <action condition="(param==07)">maincpu.md@00C208=FCE66038</action>
    </script>
    <script state="off">
      <action>maincpu.md@0027EE=temp0 </action>
      <action>maincpu.md@00C204=temp1 </action>
      <action>maincpu.md@00C208=temp2 </action>
    </script>
  </cheat>

  <cheat desc="Drain Boss Energy Now!">
    <script state="on">
      <action>maincpu.pb@101617=00</action>
      <action>maincpu.pb@101917=00</action>
      <action>maincpu.pb@101717=00</action>
      <action>maincpu.pb@101697=00</action>
    </script>
  </cheat>

  <cheat desc=" "/>

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

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

  <cheat desc="Enable Max Power Now! PL1">
    <script state="on">
      <action>maincpu.pb@1013E3=02</action>
    </script>
  </cheat>

  <cheat desc="Select Character PL1">
    <parameter>
      <item value="0x00">Super Geon</item>
      <item value="0x01">Atomic Guy</item>
      <item value="0x02">Cyber Woo</item>
      <item value="0x04">#Huge Frogger (some glitches)#</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@1013DC=param</action>
    </script>
  </cheat>

  <cheat desc=" "/>

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

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

  <cheat desc="Enable Max Power Now! PL2">
    <script state="on">
      <action>maincpu.pb@1014E3=02</action>
    </script>
  </cheat>

  <cheat desc="Select Character PL2">
    <parameter>
      <item value="0x00">Super Geon</item>
      <item value="0x01">Atomic Guy</item>
      <item value="0x02">Cyber Woo</item>
      <item value="0x04">#Huge Frogger (some glitches)#</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@1014DC=param</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>

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