<mamecheat version="1">

  <cheat desc="Infinite Lives">
    <script state="run">
      <action>maincpu.pb@83E2=05</action>
    </script>
  </cheat>

  <cheat desc="Invincibility">
    <script state="on">
      <action>temp0 =maincpu.mb@131D</action>
      <action>temp1 =maincpu.mb@0F2F</action>
      <action>temp2 =maincpu.mb@0F21</action>
    </script>
    <script state="run">
      <action>maincpu.mb@131D=18</action>
      <action>maincpu.mb@0F2F=C9</action>
      <action>maincpu.mb@0F21=23</action> <!-- 1 against bullets, 2 against rocks/mines + space stations, 3 against ships (also needs 2) -->
    </script>
    <script state="off">
      <action>maincpu.mb@131D=temp0 </action>
      <action>maincpu.mb@0F2F=temp1 </action>
      <action>maincpu.mb@0F21=temp2 </action>
    </script>
  </cheat>

  <cheat desc=" "/>

  <cheat desc="Sound Test">
    <parameter min="1" max="13" step="1"/>
    <script state="change">
      <action>maincpu.pb@temp1=00</action>
      <action condition="(param LT 0D)">temp0=8A08+param</action>
      <action condition="(param LT 0D)">maincpu.pb@temp0=01</action>
      <action condition="(param == 0D)">maincpu.pb@8A16=01</action>
      <action>temp1=8A08+param</action>
    </script>
  </cheat>

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