<mamecheat version="1">

  <cheat desc="Infinite Credits">
    <script state="run">
      <action>maincpu.pb@2068CAC=09</action>
    </script>
  </cheat>

  <cheat desc="Infinite Time">
    <script state="run">
      <action>maincpu.pb@202D098=63</action>
    </script>
  </cheat>

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

  <cheat desc=" "/>

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

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

  <cheat desc=" "/>

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

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

  <cheat desc=" "/>

  <cheat desc="No Background Music">
    <script state="run">
      <action>maincpu.pb@2068D6A=00</action>
    </script>
  </cheat>

  <cheat desc="Select Region"> <comment>This cheat sets the machine region - the effectiveness may vary! You have to enable this ASAP - ON or before the ROM check screen! Or enable + RESET</comment>
    <parameter>
      <item value="0x01">Japan</item>
      <item value="0x02">Asia</item>
      <item value="0x03">Euro</item>
      <item value="0x04">USA</item>
      <item value="0x05">Hispanic</item>
      <item value="0x06">Brazil</item>
      <item value="0x07">Oceania</item>
    </parameter>
    <script state="run">
      <action condition="(param==01)">maincpu.pb@201B12C=01</action>
      <action condition="(param==01)">maincpu.pd@2054814=00000001</action> <!-- Note these cheats are instead of using the buggy Program Space cheat type on 1FECB, Pt 1 is needed for the BIOS language and Pt 2 is for the game.Pt 1 is unnecessary on NOCD versions and for the version cheats but is included for completeness -->
      <action condition="(param==02)">maincpu.pb@201B12C=02</action>
      <action condition="(param==02)">maincpu.pd@2054814=00000002</action>
      <action condition="(param==03)">maincpu.pb@201B12C=03</action>
      <action condition="(param==03)">maincpu.pd@2054814=00000003</action>
      <action condition="(param==04)">maincpu.pb@201B12C=04</action>
      <action condition="(param==04)">maincpu.pd@2054814=00000004</action>
      <action condition="(param==05)">maincpu.pb@201B12C=05</action>
      <action condition="(param==05)">maincpu.pd@2054814=00000005</action>
      <action condition="(param==06)">maincpu.pb@201B12C=06</action>
      <action condition="(param==06)">maincpu.pd@2054814=00000006</action>
      <action condition="(param==07)">maincpu.pb@201B12C=07</action>
      <action condition="(param==07)">maincpu.pd@2054814=00000007</action>
    </script>
  </cheat>

  <cheat desc="Select Version"> <comment>This cheat sets the machine version - the effectiveness may vary! You have to enable this ASAP - ON or before the ROM check screen! Or enable + RESET</comment>
    <parameter>
      <item value="0x01">Normal</item>
      <item value="0x02">Character Check</item>
      <item value="0x03">Publicity</item>
      <item value="0x04">Location Test</item>
      <item value="0x05">Show</item>
      <item value="0x06">Debug</item>
      <item value="0x07">Sample</item>
      <item value="0x08">Development</item>
      <item value="0x09">Inspection</item>
    </parameter>
    <script state="run">
      <action condition="(param==01)">maincpu.pb@201B12B=00</action>
      <action condition="(param==01)">maincpu.pd@2054818=00000000</action>
      <action condition="(param==02)">maincpu.pb@201B12B=01</action>
      <action condition="(param==02)">maincpu.pd@2054818=00000001</action>
      <action condition="(param==03)">maincpu.pb@201B12B=02</action>
      <action condition="(param==03)">maincpu.pd@2054818=00000002</action>
      <action condition="(param==04)">maincpu.pb@201B12B=03</action>
      <action condition="(param==04)">maincpu.pd@2054818=00000003</action>
      <action condition="(param==05)">maincpu.pb@201B12B=04</action>
      <action condition="(param==05)">maincpu.pd@2054818=00000004</action>
      <action condition="(param==06)">maincpu.pb@201B12B=05</action>
      <action condition="(param==06)">maincpu.pd@2054818=00000005</action>
      <action condition="(param==07)">maincpu.pb@201B12B=06</action>
      <action condition="(param==07)">maincpu.pd@2054818=00000006</action>
      <action condition="(param==08)">maincpu.pb@201B12B=07</action>
      <action condition="(param==08)">maincpu.pd@2054818=00000007</action>
      <action condition="(param==09)">maincpu.pb@201B12B=08</action>
      <action condition="(param==09)">maincpu.pd@2054818=00000008</action>
    </script>
  </cheat>

  <cheat desc="Select CD Check"> <comment>Selecting False on the CD version will just cause the BIOS to complain there's not enough memory on the PCB</comment>
    <parameter>
      <item value="0x0B">False</item>
      <item value="0x00">True</item>
    </parameter>
    <script state="on">
      <action>temp0 =maincpu.rb@001FECC</action>
    </script>
    <script state="run">
      <action>maincpu.rb@001FECC=param</action>
    </script>
    <script state="off">
      <action>maincpu.rb@001FECC=temp0 </action>
    </script>
  </cheat>

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