<mamecheat version="1">

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

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

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

  <cheat desc="Go to Final Stage Now!">
    <script state="on">
      <action>maincpu.pb@FF8530=08</action>
      <action>maincpu.pb@FF852A=08</action>
      <action>maincpu.pb@FFEB36=08</action>
    </script>
  </cheat>

  <cheat desc="Select Background">
    <parameter>
      <item value="0x00">City</item>
      <item value="0x01">Arena</item>
      <item value="0x02">Orbital station</item>
      <item value="0x03">TOWN-3</item>
      <item value="0x04">Forest</item>
      <item value="0x05">Warship</item>
      <item value="0x06">Seafloor</item>
      <item value="0x07">Airfield</item>
      <item value="0x08">Volcano</item>
      <item value="0x09">Brain</item>
      <item value="0x0C">Arena II</item>
      <item value="0x0D">Seafloor II</item>
      <item value="0x0E">Airfield II</item>
      <item value="0x0F">City II</item>
    </parameter>
    <script state="run">
      <action>maincpu.pw@FFEA2C=param</action>
    </script>
  </cheat>

  <cheat desc=" "/>

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

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

  <cheat desc="Infinite Power PL1">
    <script state="run">
      <action>maincpu.pb@FF8534=3F</action>
    </script>
  </cheat>

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

  <cheat desc="Infinite Arm Gauge PL1">
    <script state="run">
      <action>maincpu.pb@FF830C=30</action>
    </script>
  </cheat>

  <cheat desc="Select Arm Gauge Regeneration Time PL1">
    <parameter>
      <item value="0xFF">Instant</item>
      <item value="0x00">Never</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@FF830D=param</action>
    </script>
  </cheat>

  <cheat desc="Arm VA Now! PL1">
    <script state="on">
      <action>maincpu.pb@FF82AE=01</action>
    </script>
  </cheat>

  <cheat desc="Disarm VA Now! PL1"> <comment>Super-8, Helion, and Warlock cannot be disarmed</comment>
    <script state="on">
      <action>maincpu.pb@FF82AE=00</action>
    </script>
  </cheat>

  <cheat desc="Infinite Weapon PL1">
    <script state="run">
      <action>maincpu.pb@FF830E=30</action>
      <action>maincpu.pb@FF8310=30</action>
    </script>
  </cheat>

  <cheat desc="Infinite Boost PL1">
    <script state="run">
      <action>maincpu.pb@FF830A=1D</action>
    </script>
  </cheat>

  <cheat desc="Select Perm Ride PL1">
    <parameter>
      <item value="0x01">Blodia</item>
      <item value="0x02">Reptos</item>
      <item value="0x03">Fordy</item>
      <item value="0x04">Guldin</item>
      <item value="0x05">Swordsman</item>
      <item value="0x06">Lightning</item>
      <item value="0x07">Jackal</item>
      <item value="0x08">Vise</item>
      <item value="0x09">Cyclone</item>
      <item value="0x10">Riot</item>
      <item value="0x11">Tarantula</item>
      <item value="0x12">Helion</item>
      <item value="0x13">Super-8</item>
      <item value="0x14">Gaits</item>
      <item value="0x15">Warlock</item>
      <item value="0x16">Killer Bee</item>
    </parameter>
    <script state="run">
      <action condition="(param==01)">maincpu.pb@FF8511=00</action>
      <action condition="(param==01)">maincpu.pb@FF8512=00</action>
      <action condition="(param==01)">maincpu.pb@FF8513=00</action>
      <action condition="(param==01)">maincpu.pb@FF852C=00</action>
      <action condition="(param==02)">maincpu.pb@FF8511=01</action>
      <action condition="(param==02)">maincpu.pb@FF8512=01</action>
      <action condition="(param==02)">maincpu.pb@FF8513=01</action>
      <action condition="(param==02)">maincpu.pb@FF852C=01</action>
      <action condition="(param==03)">maincpu.pb@FF8511=02</action>
      <action condition="(param==03)">maincpu.pb@FF8512=02</action>
      <action condition="(param==03)">maincpu.pb@FF8513=02</action>
      <action condition="(param==03)">maincpu.pb@FF852C=02</action>
      <action condition="(param==04)">maincpu.pb@FF8511=03</action>
      <action condition="(param==04)">maincpu.pb@FF8512=03</action>
      <action condition="(param==04)">maincpu.pb@FF8513=03</action>
      <action condition="(param==04)">maincpu.pb@FF852C=03</action>
      <action condition="(param==05)">maincpu.pb@FF8511=04</action>
      <action condition="(param==05)">maincpu.pb@FF8512=04</action>
      <action condition="(param==05)">maincpu.pb@FF8513=04</action>
      <action condition="(param==05)">maincpu.pb@FF852C=04</action>
      <action condition="(param==06)">maincpu.pb@FF8511=05</action>
      <action condition="(param==06)">maincpu.pb@FF8512=05</action>
      <action condition="(param==06)">maincpu.pb@FF8513=05</action>
      <action condition="(param==06)">maincpu.pb@FF852C=05</action>
      <action condition="(param==07)">maincpu.pb@FF8511=06</action>
      <action condition="(param==07)">maincpu.pb@FF8512=06</action>
      <action condition="(param==07)">maincpu.pb@FF8513=06</action>
      <action condition="(param==07)">maincpu.pb@FF852C=06</action>
      <action condition="(param==08)">maincpu.pb@FF8511=07</action>
      <action condition="(param==08)">maincpu.pb@FF8512=07</action>
      <action condition="(param==08)">maincpu.pb@FF8513=07</action>
      <action condition="(param==08)">maincpu.pb@FF852C=07</action>
      <action condition="(param==09)">maincpu.pb@FF8511=08</action>
      <action condition="(param==09)">maincpu.pb@FF8512=08</action>
      <action condition="(param==09)">maincpu.pb@FF8513=08</action>
      <action condition="(param==09)">maincpu.pb@FF852C=08</action>
      <action condition="(param==10)">maincpu.pb@FF8511=09</action>
      <action condition="(param==10)">maincpu.pb@FF8512=09</action>
      <action condition="(param==10)">maincpu.pb@FF8513=09</action>
      <action condition="(param==10)">maincpu.pb@FF852C=09</action>
      <action condition="(param==11)">maincpu.pb@FF8511=0A</action>
      <action condition="(param==11)">maincpu.pb@FF8512=0A</action>
      <action condition="(param==11)">maincpu.pb@FF8513=0A</action>
      <action condition="(param==11)">maincpu.pb@FF852C=0A</action>
      <action condition="(param==12)">maincpu.pb@FF8511=0B</action>
      <action condition="(param==12)">maincpu.pb@FF8512=0B</action>
      <action condition="(param==12)">maincpu.pb@FF8513=0B</action>
      <action condition="(param==12)">maincpu.pb@FF852C=0B</action>
      <action condition="(param==13)">maincpu.pb@FF8511=0C</action>
      <action condition="(param==13)">maincpu.pb@FF8512=0C</action>
      <action condition="(param==13)">maincpu.pb@FF8513=0C</action>
      <action condition="(param==13)">maincpu.pb@FF852C=0C</action>
      <action condition="(param==14)">maincpu.pb@FF8511=0D</action>
      <action condition="(param==14)">maincpu.pb@FF8512=0D</action>
      <action condition="(param==14)">maincpu.pb@FF8513=0D</action>
      <action condition="(param==14)">maincpu.pb@FF852C=0D</action>
      <action condition="(param==15)">maincpu.pb@FF8511=0E</action>
      <action condition="(param==15)">maincpu.pb@FF8512=0E</action>
      <action condition="(param==15)">maincpu.pb@FF8513=0E</action>
      <action condition="(param==15)">maincpu.pb@FF852C=0E</action>
      <action condition="(param==16)">maincpu.pb@FF8511=0F</action>
      <action condition="(param==16)">maincpu.pb@FF8512=0F</action>
      <action condition="(param==16)">maincpu.pb@FF8513=0F</action>
      <action condition="(param==16)">maincpu.pb@FF852C=0F</action>
    </script>
  </cheat>

  <cheat desc="Select Character PL1">
    <parameter>
      <item value="0x00">Jin</item>
      <item value="0x01">Santana</item>
      <item value="0x02">Mary</item>
      <item value="0x03">Arieta</item>
      <item value="0x04">Gawaine</item>
      <item value="0x05">Bao + Mao</item>
      <item value="0x06">Devilotte</item>
      <item value="0x07">Chiyomaru + Tessan</item>
      <item value="0x08">Shade</item>
      <item value="0x09">G. O. D.</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@FF8510=param</action>
    </script>
  </cheat>

  <cheat desc=" "/>

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

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

  <cheat desc="Infinite Power PL2">
    <script state="run">
      <action>maincpu.pb@FF8934=3F</action>
    </script>
  </cheat>

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

  <cheat desc="Infinite Arm Gauge PL2">
    <script state="run">
      <action>maincpu.pb@FF870C=30</action>
    </script>
  </cheat>

  <cheat desc="Select Arm Gauge Regeneration Time PL2">
    <parameter>
      <item value="0xFF">Instant</item>
      <item value="0x00">Never</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@FF870D=param</action>
    </script>
  </cheat>

  <cheat desc="Arm VA Now! PL2">
    <script state="on">
      <action>maincpu.pb@FF86AE=01</action>
    </script>
  </cheat>

  <cheat desc="Disarm VA Now! PL2"> <comment>Super-8, Helion, and Warlock cannot be disarmed</comment>
    <script state="on">
      <action>maincpu.pb@FF86AE=00</action>
    </script>
  </cheat>

  <cheat desc="Infinite Weapon PL2">
    <script state="run">
      <action>maincpu.pb@FF870E=30</action>
      <action>maincpu.pb@FF8710=30</action>
    </script>
  </cheat>

  <cheat desc="Infinite Boost PL2">
    <script state="run">
      <action>maincpu.pb@FF870A=1D</action>
    </script>
  </cheat>

  <cheat desc="Select Perm Ride PL2">
    <parameter>
      <item value="0x01">Blodia</item>
      <item value="0x02">Reptos</item>
      <item value="0x03">Fordy</item>
      <item value="0x04">Guldin</item>
      <item value="0x05">Swordsman</item>
      <item value="0x06">Lightning</item>
      <item value="0x07">Jackal</item>
      <item value="0x08">Vise</item>
      <item value="0x09">Cyclone</item>
      <item value="0x10">Riot</item>
      <item value="0x11">Tarantula</item>
      <item value="0x12">Helion</item>
      <item value="0x13">Super-8</item>
      <item value="0x14">Gaits</item>
      <item value="0x15">Warlock</item>
      <item value="0x16">Killer Bee</item>
    </parameter>
    <script state="run">
      <action condition="(param==01)">maincpu.pb@FF8911=00</action>
      <action condition="(param==01)">maincpu.pb@FF8912=00</action>
      <action condition="(param==01)">maincpu.pb@FF8913=00</action>
      <action condition="(param==01)">maincpu.pb@FF892C=00</action>
      <action condition="(param==02)">maincpu.pb@FF8911=01</action>
      <action condition="(param==02)">maincpu.pb@FF8912=01</action>
      <action condition="(param==02)">maincpu.pb@FF8913=01</action>
      <action condition="(param==02)">maincpu.pb@FF892C=01</action>
      <action condition="(param==03)">maincpu.pb@FF8911=02</action>
      <action condition="(param==03)">maincpu.pb@FF8912=02</action>
      <action condition="(param==03)">maincpu.pb@FF8913=02</action>
      <action condition="(param==03)">maincpu.pb@FF892C=02</action>
      <action condition="(param==04)">maincpu.pb@FF8911=03</action>
      <action condition="(param==04)">maincpu.pb@FF8912=03</action>
      <action condition="(param==04)">maincpu.pb@FF8913=03</action>
      <action condition="(param==04)">maincpu.pb@FF892C=03</action>
      <action condition="(param==05)">maincpu.pb@FF8911=04</action>
      <action condition="(param==05)">maincpu.pb@FF8912=04</action>
      <action condition="(param==05)">maincpu.pb@FF8913=04</action>
      <action condition="(param==05)">maincpu.pb@FF892C=04</action>
      <action condition="(param==06)">maincpu.pb@FF8911=05</action>
      <action condition="(param==06)">maincpu.pb@FF8912=05</action>
      <action condition="(param==06)">maincpu.pb@FF8913=05</action>
      <action condition="(param==06)">maincpu.pb@FF892C=05</action>
      <action condition="(param==07)">maincpu.pb@FF8911=06</action>
      <action condition="(param==07)">maincpu.pb@FF8912=06</action>
      <action condition="(param==07)">maincpu.pb@FF8913=06</action>
      <action condition="(param==07)">maincpu.pb@FF892C=06</action>
      <action condition="(param==08)">maincpu.pb@FF8911=07</action>
      <action condition="(param==08)">maincpu.pb@FF8912=07</action>
      <action condition="(param==08)">maincpu.pb@FF8913=07</action>
      <action condition="(param==08)">maincpu.pb@FF892C=07</action>
      <action condition="(param==09)">maincpu.pb@FF8911=08</action>
      <action condition="(param==09)">maincpu.pb@FF8912=08</action>
      <action condition="(param==09)">maincpu.pb@FF8913=08</action>
      <action condition="(param==09)">maincpu.pb@FF892C=08</action>
      <action condition="(param==10)">maincpu.pb@FF8911=09</action>
      <action condition="(param==10)">maincpu.pb@FF8912=09</action>
      <action condition="(param==10)">maincpu.pb@FF8913=09</action>
      <action condition="(param==10)">maincpu.pb@FF892C=09</action>
      <action condition="(param==11)">maincpu.pb@FF8911=0A</action>
      <action condition="(param==11)">maincpu.pb@FF8912=0A</action>
      <action condition="(param==11)">maincpu.pb@FF8913=0A</action>
      <action condition="(param==11)">maincpu.pb@FF892C=0A</action>
      <action condition="(param==12)">maincpu.pb@FF8911=0B</action>
      <action condition="(param==12)">maincpu.pb@FF8912=0B</action>
      <action condition="(param==12)">maincpu.pb@FF8913=0B</action>
      <action condition="(param==12)">maincpu.pb@FF892C=0B</action>
      <action condition="(param==13)">maincpu.pb@FF8911=0C</action>
      <action condition="(param==13)">maincpu.pb@FF8912=0C</action>
      <action condition="(param==13)">maincpu.pb@FF8913=0C</action>
      <action condition="(param==13)">maincpu.pb@FF892C=0C</action>
      <action condition="(param==14)">maincpu.pb@FF8911=0D</action>
      <action condition="(param==14)">maincpu.pb@FF8912=0D</action>
      <action condition="(param==14)">maincpu.pb@FF8913=0D</action>
      <action condition="(param==14)">maincpu.pb@FF892C=0D</action>
      <action condition="(param==15)">maincpu.pb@FF8911=0E</action>
      <action condition="(param==15)">maincpu.pb@FF8912=0E</action>
      <action condition="(param==15)">maincpu.pb@FF8913=0E</action>
      <action condition="(param==15)">maincpu.pb@FF892C=0E</action>
      <action condition="(param==16)">maincpu.pb@FF8911=0F</action>
      <action condition="(param==16)">maincpu.pb@FF8912=0F</action>
      <action condition="(param==16)">maincpu.pb@FF8913=0F</action>
      <action condition="(param==16)">maincpu.pb@FF892C=0F</action>
    </script>
  </cheat>

  <cheat desc="Select Character PL1">
    <parameter>
      <item value="0x00">Jin</item>
      <item value="0x01">Santana</item>
      <item value="0x02">Mary</item>
      <item value="0x03">Arieta</item>
      <item value="0x04">Gawaine</item>
      <item value="0x05">Bao + Mao</item>
      <item value="0x06">Devilotte</item>
      <item value="0x07">Chiyomaru + Tessan</item>
      <item value="0x08">Shade</item>
      <item value="0x09">G. O. D.</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@FF8910=param</action>
    </script>
  </cheat>

  <cheat desc=" "/>

  <cheat desc="No Background Music">
    <script state="run">
      <action>audiocpu.pw@F018=0000</action>
    </script>
  </cheat>

  <cheat desc="Hide Background" tempvariables="11"> <comment>Activate before match start; set to arena stage for no BG sprites</comment>
    <script state="on">
      <action>
        temp0=maincpu.pb@FF8039 band 0F, temp1=maincpu.pb@FF803F band 0F,
        temp2=maincpu.od@00EDCA, temp3=maincpu.ow@00C9F4, temp4=maincpu.od@00C9F6,
        temp5=maincpu.oq@00EE5A, temp6=maincpu.od@004BEA, temp7=maincpu.od@004D96,
        temp8=maincpu.ow@04F5CE, temp9=maincpu.od@04FF0A, temp10=maincpu.od@050E8A
      </action>
    </script>
    <script state="run">
      <action>
        maincpu.pb@FF8039=maincpu.pb@FF8039 bor temp0, maincpu.pb@FF803F=maincpu.pb@FF803F bor temp1,
        maincpu.oq@00EE5A=temp5, maincpu.od@004BEA=temp6, maincpu.od@004D96=temp7,
        maincpu.ow@04F5CE=temp8, maincpu.od@04FF0A=temp9, maincpu.od@050E8A=temp10,
        maincpu.od@00EDCA=4E754E71, <!--HUD-->
        maincpu.ow@00C9F4=4E71, maincpu.od@00C9F6=4E714E71 <!--timer-->
      </action>
      <action condition="(maincpu.pw@FFEBA0 != 0 and maincpu.pw@FFEB9A == 0)"> <!--activate only during match-->
        maincpu.pb@FF8039=maincpu.pb@FF8039 band F0, maincpu.pb@FF803F=maincpu.pb@FF803F band F0, <!--BG layers-->
        maincpu.oq@00EE5A=4E714E714E714E71, <!--score updates-->
        maincpu.od@004BEA=4E714E71, maincpu.od@004D96=4E714E71, <!--flashing text-->
        maincpu.ow@04F5CE=4E75, <!--BG sprites type 04-->
        maincpu.od@04FF0A=4E754E71, <!--BG sprites type 14-->
        maincpu.od@050E8A=4E754E71 <!--BG sprites type 41-->
      </action>
    </script>
    <script state="off">
      <action>
        maincpu.pb@FF8039=maincpu.pb@FF8039 bor temp0, maincpu.pb@FF803F=maincpu.pb@FF803F bor temp1,
        maincpu.od@00EDCA=temp2, maincpu.ow@00C9F4=temp3, maincpu.od@00C9F6=temp4,
        maincpu.oq@00EE5A=temp5, maincpu.od@004BEA=temp6, maincpu.od@004D96=temp7,
        maincpu.ow@04F5CE=temp8, maincpu.od@04FF0A=temp9, maincpu.od@050E8A=temp10
      </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="0x00">Japan</item>
      <item value="0x02">USA</item>
      <item value="0x04">Asia</item>
      <item value="0x06">Hispanic</item>
      <item value="0x08">Euro</item>
      <item value="0x0A">Brazil</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@FF80A0=param</action>
    </script>
  </cheat>

  <cheat desc="Sound Test">
    <parameter min="1" max="1023" step="1"/>
    <script state="change">
      <action>audiocpu.pw@F007=0000</action>
      <action>audiocpu.pq@F100=00001000000000FF</action>
      <action>audiocpu.pq@F108=00FFFF0000000000</action>
      <action>audiocpu.pq@F110=1000100000000000</action>
      <action>audiocpu.pq@F118=00FFFF0000000000</action>
      <action condition="(param LT 100)">audiocpu.pb@F111=param</action>
      <action>temp0=param/100</action>
      <action condition="(param GE 100)">audiocpu.pb@F110=temp0</action>
      <action condition="(param GE 100)">audiocpu.pb@F111=param-(temp0*100)</action>
      <action>audiocpu.pb@F007=20</action>
    </script>
  </cheat>

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