<mamecheat version="1">

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

  <cheat desc="Finish this Round Now!">
    <script state="on">
      <action>maincpu.pb@107490=00</action>
    </script>
  </cheat>

  <cheat desc="Always have Easy Supers">
    <script state="on">
      <action>temp0 =maincpu.mw@02818A</action>
      <action>temp1 =maincpu.mw@04BBAA</action>
    </script>
    <script state="run">
      <action>maincpu.mw@02818A=4E71</action>
      <action>maincpu.mw@04BBAA=4E71</action> <!-- Debug Dip 2-1 is on the first bit of 10E001 but a RAM cheat has no effect ingame -->
    </script>
    <script state="off">
      <action>maincpu.mw@02818A=temp0 </action>
      <action>maincpu.mw@04BBAA=temp1 </action>
    </script>
  </cheat>

  <cheat desc="Current Normal Level is Final Level Now!"> <comment>Normal Mode</comment>
    <script state="on">
      <action>maincpu.pb@107439=08</action>
    </script>
  </cheat>

  <cheat desc="Current Survival Level is Final Level Now!"> <comment>Survival Mode</comment>
    <script state="on">
      <action>maincpu.pb@107439=0E</action>
    </script>
  </cheat>

  <cheat desc="Select Backdrop">
    <parameter>
      <item value="0x00">Freight Express</item>
      <item value="0x01">Live House 'Old Line'</item>
      <item value="0x02">Oriental Casino 'Woo'</item>
      <item value="0x03">Yok Chong Market</item>
      <item value="0x04">Philantrophy Belfry</item>
      <item value="0x05">Barbaroi Falls</item>
      <item value="0x06">Blue Wave Harbor</item>
      <item value="0x07">Sarah Forest</item>
      <item value="0x08">5th Ave. and 2nd St.</item>
      <item value="0x09">Slam 'Free Field'</item>
      <item value="0x0A">Universal Arena</item>
      <item value="0x0B">S.S.P. Maneuver Field</item>
      <item value="0x0C">(Mansion Basement)</item>
      <item value="0x0D">(Mansion)</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@107435=param</action> <!-- Rock Howard -->
    </script>
  </cheat>

  <cheat desc="Enable Survival Mode">
    <script state="on">
      <action>temp0 =maincpu.pb@1041D9</action>
    </script>
    <script state="run">
      <action>maincpu.pb@1041D9=01</action>
    </script>
    <script state="off">
      <action>maincpu.pb@1041D9=temp0 </action>
    </script>
  </cheat>

  <cheat desc=" "/>

  <cheat desc="Infinite Credits PL1"> <comment>Home version</comment>
    <script state="run">
      <action>maincpu.pb@10E008=09</action>
    </script>
  </cheat>

  <cheat desc="Infinite Energy PL1">
    <script state="run">
      <action>maincpu.pb@10048E=78</action>
    </script>
  </cheat>

  <cheat desc="Drain All Energy Now! PL1">
    <script state="on">
      <action>maincpu.pb@10048E=00</action>
    </script>
  </cheat>

  <cheat desc="Infinite Power PL1">
    <script state="run">
      <action>maincpu.pb@1004BE=80</action>
    </script>
  </cheat>

  <cheat desc="Drain All Power Now! PL1">
    <script state="on">
      <action>maincpu.pb@1004BE=00</action>
    </script>
  </cheat>

  <cheat desc="Select Character PL1">
    <parameter>
      <item value="0x00">Terry Bogard</item>
      <item value="0x01">Rock Howard</item>
      <item value="0x02">Kim Dong Hwan</item>
      <item value="0x03">Kim Jae Hoon</item>
      <item value="0x04">Hotaru Futaba</item>
      <item value="0x05">Gato</item>
      <item value="0x06">Bonne Jenet</item>
      <item value="0x07">Khushnood Butt</item>
      <item value="0x08">Hokutomaru</item>
      <item value="0x09">Freeman</item>
      <item value="0x0A">Tizoc</item>
      <item value="0x0B">Kevin Rian</item>
      <item value="0x0C">Grant</item>
      <item value="0x0D">Kain R. Heinlein</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@10742B=param</action>
    </script>
  </cheat>

  <cheat desc="Select Character Colour PL1">
    <parameter>
      <item value="0x00">A colour</item>
      <item value="0x01">B colour</item>
      <item value="0x02">C colour</item>
      <item value="0x03">D colour</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@107432=param</action>
    </script>
  </cheat>

  <cheat desc="Select Rounds Won PL1">
    <parameter min="0" max="2" step="1"/>
    <script state="run">
      <action>maincpu.pb@107474=(param)</action>
    </script>
  </cheat>

  <cheat desc="Select TOP Bar Length PL1"> <comment>Works only when player is NOT CPU controlled</comment>
    <parameter>
      <item value="0x00">5 chunks</item>
      <item value="0x01">3 chunks</item>
      <item value="0x02">1 chunk</item>
      <item value="0x03">Entire Life Bar</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@1074C2=param</action>
    </script>
  </cheat>

  <cheat desc="Select Leftmost TOP Chunk PL1"> <comment>Works only when player is NOT CPU controlled</comment>
    <parameter min="0" max="14" step="1"/>
    <script state="run">
      <action>maincpu.pb@1074C3=(param)</action>
    </script>
  </cheat>

  <cheat desc=" "/>

  <cheat desc="Infinite Credits PL2"> <comment>Home version</comment>
    <script state="run">
      <action>maincpu.pb@10E009=09</action>
    </script>
  </cheat>

  <cheat desc="Infinite Energy PL2">
    <script state="run">
      <action>maincpu.pb@10058E=78</action>
    </script>
  </cheat>

  <cheat desc="Drain All Energy Now! PL2">
    <script state="on">
      <action>maincpu.pb@10058E=00</action>
    </script>
  </cheat>

  <cheat desc="Infinite Power PL2">
    <script state="run">
      <action>maincpu.pb@1005BE=80</action>
    </script>
  </cheat>

  <cheat desc="Drain All Power Now! PL2">
    <script state="on">
      <action>maincpu.pb@1005BE=00</action>
    </script>
  </cheat>

  <cheat desc="Select Character PL2">
    <parameter>
      <item value="0x00">Terry Bogard</item>
      <item value="0x01">Rock Howard</item>
      <item value="0x02">Kim Dong Hwan</item>
      <item value="0x03">Kim Jae Hoon</item>
      <item value="0x04">Hotaru Futaba</item>
      <item value="0x05">Gato</item>
      <item value="0x06">Bonne Jenet</item>
      <item value="0x07">Khushnood Butt</item>
      <item value="0x08">Hokutomaru</item>
      <item value="0x09">Freeman</item>
      <item value="0x0A">Tizoc</item>
      <item value="0x0B">Kevin Rian</item>
      <item value="0x0C">Grant</item>
      <item value="0x0D">Kain R. Heinlein</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@10742D=param</action>
    </script>
  </cheat>

  <cheat desc="Select Character Colour PL2">
    <parameter>
      <item value="0x00">A colour</item>
      <item value="0x01">B colour</item>
      <item value="0x02">C colour</item>
      <item value="0x03">D colour</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@107433=param</action>
    </script>
  </cheat>

  <cheat desc="Select Rounds Won PL2">
    <parameter min="0" max="2" step="1"/>
    <script state="run">
      <action>maincpu.pb@107475=(param)</action>
    </script>
  </cheat>

  <cheat desc="Select TOP Bar Length PL2"> <comment>Works only when player is NOT CPU controlled</comment>
    <parameter>
      <item value="0x00">5 chunks</item>
      <item value="0x01">3 chunks</item>
      <item value="0x02">1 chunk</item>
      <item value="0x03">Entire Life Bar</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@1074C4=param</action>
    </script>
  </cheat>

  <cheat desc="Select Leftmost TOP Chunk PL2"> <comment>Works only when player is NOT CPU controlled</comment>
    <parameter min="0" max="14" step="1"/>
    <script state="run">
      <action>maincpu.pb@1074C5=(param)</action>
    </script>
  </cheat>

  <cheat desc=" "/>

  <cheat desc="No Background Music">
    <script state="run">
      <action>audiocpu.pb@FD89=00</action>
    </script>
  </cheat>

  <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. -->
