<mamecheat version="1">

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

  <cheat desc="Infinite Time">
    <script state="run">
      <action condition="maincpu.pb@091FC!=8C">maincpu.pb@092A8=63</action>
      <action condition="maincpu.pb@091FC==8C AND maincpu.pb@092A8 GT 61">maincpu.pb@092A8=1D</action>
    </script>
  </cheat>

  <cheat desc="Invincibility"> <comment>The neck slasher on the last part of Stage 5 can still kill you</comment>
    <script state="on">
      <action>temp0 =maincpu.mb@87DEE</action>
      <action>maincpu.mb@87DEE=EB</action> <!-- Normal Hits -->
      <action>temp1 =maincpu.mb@881AB</action>
      <action>maincpu.mb@881AB=EB</action> <!-- Objects -->
      <action>temp2 =maincpu.mb@88411</action>
      <action>maincpu.mb@88411=EB</action> <!-- Rockets -->
      <action>temp3 =maincpu.mb@88B19</action>
      <action>maincpu.mb@88B19=EB</action> <!-- Lightning at end -->
    </script>
    <script state="off">
      <action>maincpu.mb@87DEE=temp0 </action>
      <action>maincpu.mb@881AB=temp1 </action>
      <action>maincpu.mb@88411=temp2 </action>
      <action>maincpu.mb@88B19=temp3 </action>
    </script>
  </cheat>

  <cheat desc="Easy Kills + Total Destruction" tempvariables="35"> <comment>Mostly One Hit apart from the Bosses</comment>
    <script state="on">
      <action>temp0 =maincpu.mb@81FFC</action>
      <action>maincpu.mb@81FFC=00</action>
      <action>temp1 =maincpu.mb@880A1</action>
      <action>maincpu.mb@880A1=00</action>
      <action>temp2 =maincpu.mb@88307</action>
      <action>maincpu.mb@88307=00</action>
      <action>temp3 =maincpu.mb@8853C</action>
      <action>maincpu.mb@8853C=00</action>
      <action>temp4 =maincpu.mb@88641</action>
      <action>maincpu.mb@88641=00</action>
      <action>temp5 =maincpu.mb@88725</action>
      <action>maincpu.mb@88725=00</action>
      <action>temp6 =maincpu.mb@8880C</action>
      <action>maincpu.mb@8880C=00</action>
      <action>temp7 =maincpu.mb@888F6</action>
      <action>maincpu.mb@888F6=00</action>
      <action>temp8 =maincpu.mb@889B5</action>
      <action>maincpu.mb@889B5=00</action>
      <action>temp9 =maincpu.mb@88A99</action>
      <action>maincpu.mb@88A99=00</action>
      <action>temp10=maincpu.mb@88B6A</action>
      <action>maincpu.mb@88B6A=00</action>
      <action>temp11=maincpu.mb@98CDA</action>
      <action>maincpu.mb@98CDA=00</action>
      <action>temp12=maincpu.mb@98E22</action>
      <action>maincpu.mb@98E22=00</action>
      <action>temp13=maincpu.mb@9D9CC</action>
      <action>maincpu.mb@9D9CC=00</action>
      <action>temp14=maincpu.mb@9DB14</action>
      <action>maincpu.mb@9DB14=00</action>
      <action>temp15=maincpu.mb@A17D7</action>
      <action>maincpu.mb@A17D7=00</action>
      <action>temp16=maincpu.mb@A191F</action>
      <action>maincpu.mb@A191F=00</action>
      <action>temp17=maincpu.mb@AFD21</action>
      <action>maincpu.mb@AFD21=00</action>
      <action>temp18=maincpu.mb@B417E</action>
      <action>maincpu.mb@B417E=00</action>
      <action>temp19=maincpu.mb@B7116</action>
      <action>maincpu.mb@B7116=00</action>
      <action>temp20=maincpu.mb@BC2F5</action>
      <action>maincpu.mb@BC2F5=00</action>
      <action>temp21=maincpu.mb@BC43D</action>
      <action>maincpu.mb@BC43D=00</action>
      <action>temp22=maincpu.mb@BF5F2</action>
      <action>maincpu.mb@BF5F2=00</action>
      <action>temp23=maincpu.mb@BF73A</action>
      <action>maincpu.mb@BF73A=00</action>
      <action>temp24=maincpu.mb@C2268</action>
      <action>maincpu.mb@C2268=00</action>
      <action>temp25=maincpu.mb@C23B0</action>
      <action>maincpu.mb@C23B0=00</action>
      <action>temp26=maincpu.mb@C555A</action>
      <action>maincpu.mb@C555A=00</action>
      <action>temp27=maincpu.mb@C56A2</action>
      <action>maincpu.mb@C56A2=00</action>
      <action>temp28=maincpu.mb@C9330</action>
      <action>maincpu.mb@C9330=00</action>
      <action>temp29=maincpu.mb@D0057</action>
      <action>maincpu.mb@D0057=00</action>
      <action>temp30=maincpu.mb@D2FA4</action>
      <action>maincpu.mb@D2FA4=00</action>
      <action>temp31=maincpu.mb@D4F4D</action>
      <action>maincpu.mb@D4F4D=00</action>
      <action>temp32=maincpu.mb@D50A0</action>
      <action>maincpu.mb@D50A0=00</action>
      <action>temp33=maincpu.mb@D886E</action>
      <action>maincpu.mb@D886E=00</action>
      <action>temp34=maincpu.mb@D89B6</action>
      <action>maincpu.mb@D89B6=00</action>
    </script>
    <script state="off">
      <action>maincpu.mb@81FFC=temp0 </action>
      <action>maincpu.mb@880A1=temp1 </action>
      <action>maincpu.mb@88307=temp2 </action>
      <action>maincpu.mb@8853C=temp3 </action>
      <action>maincpu.mb@88641=temp4 </action>
      <action>maincpu.mb@88725=temp5 </action>
      <action>maincpu.mb@8880C=temp6 </action>
      <action>maincpu.mb@888F6=temp7 </action>
      <action>maincpu.mb@889B5=temp8 </action>
      <action>maincpu.mb@88A99=temp9 </action>
      <action>maincpu.mb@88B6A=temp10</action>
      <action>maincpu.mb@98CDA=temp11</action>
      <action>maincpu.mb@98E22=temp12</action>
      <action>maincpu.mb@9D9CC=temp13</action>
      <action>maincpu.mb@9DB14=temp14</action>
      <action>maincpu.mb@A17D7=temp15</action>
      <action>maincpu.mb@A191F=temp16</action>
      <action>maincpu.mb@AFD21=temp17</action>
      <action>maincpu.mb@B417E=temp18</action>
      <action>maincpu.mb@B7116=temp19</action>
      <action>maincpu.mb@BC2F5=temp20</action>
      <action>maincpu.mb@BC43D=temp21</action>
      <action>maincpu.mb@BF5F2=temp22</action>
      <action>maincpu.mb@BF73A=temp23</action>
      <action>maincpu.mb@C2268=temp24</action>
      <action>maincpu.mb@C23B0=temp25</action>
      <action>maincpu.mb@C555A=temp26</action>
      <action>maincpu.mb@C56A2=temp27</action>
      <action>maincpu.mb@C9330=temp28</action>
      <action>maincpu.mb@D0057=temp29</action>
      <action>maincpu.mb@D2FA4=temp30</action>
      <action>maincpu.mb@D4F4D=temp31</action>
      <action>maincpu.mb@D50A0=temp32</action>
      <action>maincpu.mb@D886E=temp33</action>
      <action>maincpu.mb@D89B6=temp34</action>
    </script>
  </cheat>

  <!--   wp 91da,2,w -->

  <cheat desc="Select Starting Stage">
    <parameter>
      <item value="0x00">01 Stage 1 Start</item>
      <item value="0x02">02 Stage 1 End</item>
      <item value="0x03">03 Stage 2 Start</item>
      <item value="0x05">04 Stage 2 End</item>
      <item value="0x06">05 Stage 3 Start</item>
      <item value="0x08">06 Stage 3 End</item>
      <item value="0x09">07 First Bonus Stage</item>
      <item value="0x0A">08 Stage 4 Start</item>
      <item value="0x0B">09 Stage 4 Part 2</item>
      <item value="0x0C">10 Stage 4 Part 3</item>
      <item value="0x0D">11 Stage 4 Part 4</item>
      <item value="0x0E">12 Stage 4 Part 5</item>
      <item value="0x0F">13 Stage 4 Part 6</item>
      <item value="0x10">14 Stage 5-1 Start</item>
      <item value="0x12">15 Stage 5-2 Sailing Interlude</item>
      <item value="0x13">16 Stage 5-3 Doors</item>
      <item value="0x14">17 Stage 5-4 Field</item>
      <item value="0x15">18 Stage 5-5 Cavern</item>
      <item value="0x16">19 Second Bonus Stage</item>
      <item value="0x17">20 Final Stage</item>
      <item value="0x18">21 Final Stage Boss</item>
      <item value="0x19">22 End Sequence Running</item>
      <item value="0x1A">23 End Sequence Helicopter Pickup</item>
      <item value="0x1B">24 End Sequence Helicopter Flying</item>
    </parameter>
    <script state="on">
      <action>temp0 =maincpu.mb@81907</action>
    </script>
    <script state="change">
      <action>maincpu.mb@81907=param</action>
    </script>
    <script state="off">
      <action>maincpu.mb@81907=temp0 </action>
    </script>
  </cheat>

  <cheat desc="Reveal lots of treasure">
    <script state="run">
      <action>maincpu.pb@01D58=12</action>
      <action>maincpu.pb@01E58=12</action>
      <action>maincpu.pb@01F58=12</action>
      <action>maincpu.pb@02058=12</action>
      <action>maincpu.pb@02158=12</action>
      <action>maincpu.pb@02258=12</action>
      <action>maincpu.pb@02358=12</action>
      <action>maincpu.pb@02458=12</action>
      <action>maincpu.pb@01D5B=01</action>
      <action>maincpu.pb@01E5B=01</action>
      <action>maincpu.pb@01F5B=01</action>
      <action>maincpu.pb@0205B=01</action>
      <action>maincpu.pb@0215B=01</action>
      <action>maincpu.pb@0225B=01</action>
      <action>maincpu.pb@0235B=01</action>
      <action>maincpu.pb@0245B=01</action>
    </script>
  </cheat>

  <cheat desc="Change Current Enemies into Boss Now!">
    <script state="on">
      <action>maincpu.pw@010DA=3100, maincpu.pw@011DA=3100, maincpu.pw@012DA=3100, maincpu.pw@013DA=3100</action>
      <action>maincpu.pw@010DC=ADB2, maincpu.pw@011DC=ADB2, maincpu.pw@012DC=ADB2, maincpu.pw@013DC=ADB2</action>
      <action>maincpu.pw@01100=0100, maincpu.pw@01200=0100, maincpu.pw@01300=0100, maincpu.pw@01400=0100</action>
      <action>maincpu.pb@01102=02, maincpu.pb@01202=02, maincpu.pb@01302=02, maincpu.pb@01402=02</action>
      <action>maincpu.pb@0115E=01, maincpu.pb@0125E=01, maincpu.pb@0135E=01, maincpu.pb@0145E=01</action>
      <action>maincpu.pw@01138=031A, maincpu.pw@01238=031A, maincpu.pw@01338=031A, maincpu.pw@01438=031A</action>
      <action>maincpu.pb@091F2=00</action>
      <action>maincpu.pw@1F30A=0191, maincpu.pw@1F30C=02DD, maincpu.pw@1F30E=3FFF, maincpu.pw@1F310=4A52</action>
      <action>maincpu.pw@1F312=77BD, maincpu.pw@1F314=2D26, maincpu.pw@1F316=5671, maincpu.pw@1F318=6318</action>
      <action>maincpu.pw@1F31A=77DE, maincpu.pw@1F31C=0000, maincpu.pw@1F31E=39C6, maincpu.pw@1F320=0849</action>
      <action>maincpu.pw@1F322=0CAB, maincpu.pw@1F324=256D, maincpu.pw@1F326=03E0, maincpu.pw@1F328=03E0</action>
      <action>maincpu.pw@1F32A=0CCA, maincpu.pw@1F32C=1D53, maincpu.pw@1F32E=329B, maincpu.pw@1F330=7BDE</action>
      <action>maincpu.pw@1F332=6739, maincpu.pw@1F334=5294, maincpu.pw@1F336=3DEF, maincpu.pw@1F338=294A</action>
      <action>maincpu.pw@1F33A=14A5, maincpu.pw@1F33C=0000, maincpu.pw@1F5E0=0CAB, maincpu.pw@1F5E2=1D53</action>
      <action>maincpu.pw@1F5E4=2A5A, maincpu.pw@1F5E6=5410, maincpu.pw@1F5E8=701C, maincpu.pw@1F5EA=019C</action>
      <action>maincpu.pw@1F5EC=02DD, maincpu.pw@1F5EE=3FFF, maincpu.pw@1F5F0=4A52, maincpu.pw@1F5F2=77BD</action>
      <action>maincpu.pw@1F5F4=2D26, maincpu.pw@1F5F6=5671, maincpu.pw@1F5F8=6717, maincpu.pw@1F5FA=7FFE</action>
      <action>maincpu.pw@1F5FC=0000</action>
    </script>
  </cheat>

  <cheat desc=" "/>

  <cheat desc="P1 Infinite Lives">
    <script state="run">
      <action>maincpu.pb@0930A=05</action>
    </script>
  </cheat>

  <cheat desc="P1 Infinite Energy">
    <script state="run">
      <action>maincpu.pw@008E8=0300</action>
    </script>
  </cheat>

  <cheat desc="P1 Select Perm. Weapon"> <comment>Rocket Launcher includes Infinite Ammo, best used with Invincibility to avoid the risk of littering the screen with Rocket Launchers when you get hit.</comment>
    <parameter>
      <item value="0x00000000">None</item>
      <item value="0x00010063">Rocket Launcher</item>
    </parameter>
    <script state="run">
      <action>maincpu.pd@0930C=param</action>
    </script>
  </cheat>

  <cheat desc=" "/>

  <cheat desc="P2 Infinite Lives">
    <script state="run">
      <action>maincpu.pb@093C4=05</action>
    </script>
  </cheat>

  <cheat desc="P2 Infinite Energy">
    <script state="run">
      <action>maincpu.pw@009E8=0300</action>
    </script>
  </cheat>

  <cheat desc="P2 Select Perm. Weapon"> <comment>Rocket Launcher includes Infinite Ammo, best used with Invincibility to avoid the risk of littering the screen with Rocket Launchers when you get hit.</comment>
    <parameter>
      <item value="0x00000000">None</item>
      <item value="0x00010063">Rocket Launcher</item>
    </parameter>
    <script state="run">
      <action>maincpu.pd@093C6=param</action>
    </script>
  </cheat>

  <cheat desc=" "/>

  <cheat desc="Select Region"> <comment>Enable it and reset to see the effect</comment>
    <parameter>
      <item value="0x00">JAPAN</item>
      <item value="0x01">US (FABTEK)</item>
      <item value="0x02">KOREA</item>
      <item value="0x03">TAIWAN</item>
    </parameter>
    <script state="on">
      <action>temp0 =maincpu.mb@FFFFB</action>
    </script>
    <script state="run">
      <action>maincpu.mb@FFFFB=param</action>
    </script>
    <script state="off">
      <action>maincpu.mb@FFFFB=temp0 </action>
    </script>
  </cheat>

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