<mamecheat version="1">

  <cheat desc="Infinite Credits">
    <script state="run">
      <action>maincpu.pb@1B63=99</action>
    </script>
  </cheat>

  <cheat desc="Invincibility">
    <script state="on">
      <action>temp0 =maincpu.mw@7381</action>
      <action>temp1 =maincpu.mb@73E0</action>
      <action>temp2 =maincpu.mb@73E5</action>
      <action>temp3 =maincpu.mb@73F2</action>
    </script>
    <script state="run">
      <action>maincpu.mw@7381=200A</action>
      <action>maincpu.mb@73E0=39</action>
      <action>maincpu.mb@73E5=15</action>
      <action>maincpu.mb@73F2=08</action>
    </script>
    <script state="off">
      <action>maincpu.mw@7381=temp0 </action>
      <action>maincpu.mb@73E0=temp1 </action>
      <action>maincpu.mb@73E5=temp2 </action>
      <action>maincpu.mb@73F2=temp3 </action>
    </script>
  </cheat>

  <cheat desc="Rapid Fire - Antiair">
    <script state="run">
      <action>maincpu.pb@18F4=00</action>
    </script>
  </cheat>

  <cheat desc="Rapid Fire - Antisurface">
    <script state="run">
      <action>maincpu.pb@18F5=00</action>
    </script>
  </cheat>

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

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

  <cheat desc=" "/>
  <cheat desc="Sound Test is enabled after you've 1st inserted a credit"/>
  <cheat desc="Up / Down = Select a code,   B1 = Play, B2 = Stop"/>
  <cheat desc=" "/>


  <cheat desc="Sound Test" tempvariables="12">
    <script state="on">
      <action>temp0 =maincpu.md@409E</action>
      <action>temp1 =maincpu.md@40A1</action>
      <action>temp2 =maincpu.md@40A5</action>
      <action>temp3 =maincpu.md@40A9</action>
      <action>temp4 =maincpu.md@40AD</action>
      <action>temp5 =maincpu.md@40B1</action>
      <action>temp6 =maincpu.md@40B5</action>
      <action>temp7 =maincpu.md@40B9</action>
      <action>temp8 =maincpu.md@40BD</action>
      <action>temp9 =maincpu.md@40C1</action>
      <action>temp10=maincpu.md@40C5</action>
      <action>temp11=maincpu.md@40C8</action>
    </script>
    <script state="run">
      <output format="Sound Code : %02X">
        <argument>maincpu.pb@(1801)</argument>
      </output>
      <action>maincpu.md@409E=B6080000|(maincpu.md@409E BAND ~FFFFFF00)</action> <!-- LDA $0800 -->
      <action>maincpu.md@40A1=91002723</action> <!-- CMPA $00 / BEQ $40C8 -->
      <action>maincpu.md@40A5=81F7270E</action> <!-- CMPA #$F7 / BEQ $40B7 -->
      <action>maincpu.md@40A9=81FB270E</action> <!-- CMPA #$FB / BEQ $40BB -->
      <action>maincpu.md@40AD=81FE270E</action> <!-- CMPA #$FE / BEQ $40BF -->
      <action>maincpu.md@40B1=81FD270E</action> <!-- CMPA #$FD / BEQ $40C3 -->
      <action>maincpu.md@40B5=20110C01</action> <!-- BRA $40C8 / INC $01 -->
      <action>maincpu.md@40B9=200D0A01</action> <!-- BRA $40C8 / DEC $01 -->
      <action>maincpu.md@40BD=2009D601</action> <!-- BRA $40C8 / LDB $01 -->
      <action>maincpu.md@40C1=2002C600</action> <!-- BRA $40C5 / LDB #$00 -->
      <action>maincpu.md@40C5=F7080200|(maincpu.md@40C5 BAND ~FFFFFF00)</action> <!-- STB $0802 -->
      <action>maincpu.md@40C8=970020D2</action> <!-- STA $00 / BRA $409E -->
    </script>
    <script state="off">
      <action>maincpu.md@409E=temp0 </action>
      <action>maincpu.md@40A1=temp1 </action>
      <action>maincpu.md@40A5=temp2 </action>
      <action>maincpu.md@40A9=temp3 </action>
      <action>maincpu.md@40AD=temp4 </action>
      <action>maincpu.md@40B1=temp5 </action>
      <action>maincpu.md@40B5=temp6 </action>
      <action>maincpu.md@40B9=temp7 </action>
      <action>maincpu.md@40BD=temp8 </action>
      <action>maincpu.md@40C1=temp9 </action>
      <action>maincpu.md@40C5=temp10</action>
      <action>maincpu.md@40C8=temp11</action>
    </script>
  </cheat>

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