<mamecheat version="1">

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

  <cheat desc="----------------------------"/>
  <cheat desc="Cheats for Galaga Original"/>
  <cheat desc="----------------------------"/>

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

  <cheat desc="Invincibility">
    <script state="on">
      <action>temp0 =maincpu.mb@02C251</action>
      <action>temp1 =maincpu.mb@02D7BC</action>
    </script>
    <script state="run">
      <action>maincpu.mb@02C251=24</action>
      <action>maincpu.mb@02D7BC=60</action> <!-- 1st = Capture Beam, 2nd = Object -->
    </script>
    <script state="off">
      <action>maincpu.mb@02C251=temp0 </action>
      <action>maincpu.mb@02D7BC=temp1 </action>
    </script>
  </cheat>

  <cheat desc="Rapid Fire PL1">
    <script state="run">
      <action>maincpu.pb@400051=10|(maincpu.pb@400051 BAND ~10)</action>
    </script>
  </cheat>

  <cheat desc="Rapid Fire PL2">
    <script state="run">
      <action>maincpu.pb@400052=10|(maincpu.pb@400052 BAND ~10)</action>
    </script>
  </cheat>

  <cheat desc="-------------------------------"/>
  <cheat desc="Cheats for Galaga Arrangement"/>
  <cheat desc="-------------------------------"/>

  <cheat desc="Select Game Mode">
    <parameter>
      <item value="0x00">Normal Mode</item>
      <item value="0x01">Time Attack Mode</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@407787=param</action>
    </script>
  </cheat>

  <cheat desc="Select Starting Stage"> <comment>Set on Galaga Arrangement title screen</comment>
    <parameter min="1" max="29" step="1"/>
    <script state="on">
      <action>maincpu.pb@4068BB=FF</action>
    </script>
    <script state="change">
      <action>maincpu.pb@4068BB=(param)</action>
    </script>
  </cheat>

  <cheat desc="Infinite Time">
    <script state="run">
      <action>maincpu.pd@407780=00000000</action>
    </script>
  </cheat>

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

  <cheat desc=" "/>

  <cheat desc="Invincibility PL1">
    <script state="run">
      <action>maincpu.pb@((maincpu.pd@4068A0)+58)=FF</action>
      <action>maincpu.pb@((maincpu.pd@4068A0)+65)=02</action>
    </script>
  </cheat>

  <cheat desc="Select Shot PL1">
    <parameter>
      <item value="0x00">Twin Shot</item>
      <item value="0x04">Wide Shot</item>
      <item value="0x08">Triple Shot</item>
      <item value="0x0C">3-way Shot</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@((maincpu.pd@4068A8)+45)=param</action>
    </script>
  </cheat>

  <cheat desc="Rapid Fire - Normal PL1">
    <script state="run">
      <action>maincpu.pb@400051=10|(maincpu.pb@400051 BAND ~10)</action>
    </script>
  </cheat>

  <cheat desc="Rapid Fire - Special PL1">
    <script state="run">
      <action>maincpu.pb@400051=10|(maincpu.pb@400051 BAND ~10)</action>
      <action>maincpu.pb@((maincpu.pd@4068A8)+4C)=00</action>
    </script>
  </cheat>

  <cheat desc=" "/>

  <cheat desc="Invincibility PL2">
    <script state="run">
      <action>maincpu.pb@((maincpu.pd@4068A4)+58)=FF</action>
      <action>maincpu.pb@((maincpu.pd@4068A4)+65)=02</action>
    </script>
  </cheat>

  <cheat desc="Select Shot PL2">
    <parameter>
      <item value="0x00">Twin Shot</item>
      <item value="0x04">Wide Shot</item>
      <item value="0x08">Triple Shot</item>
      <item value="0x0C">3-way Shot</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@((maincpu.pd@4068AC)+45)=param</action>
    </script>
  </cheat>

  <cheat desc="Rapid Fire - Normal PL2">
    <script state="run">
      <action>maincpu.pb@400052=10|(maincpu.pb@400052 BAND ~10)</action>
    </script>
  </cheat>

  <cheat desc="Rapid Fire - Special PL2">
    <script state="run">
      <action>maincpu.pb@400052=10|(maincpu.pb@400052 BAND ~10)</action>
      <action>maincpu.pb@((maincpu.pd@4068AC)+4C)=00</action>
    </script>
  </cheat>

  <cheat desc="-----------------------------"/>
  <cheat desc="Cheats for Xevious Original"/>
  <cheat desc="-----------------------------"/>

  <cheat desc="Infinite Lives">
    <script state="on">
      <action>temp0 =maincpu.mb@072252</action>
      <action>temp1 =maincpu.mb@072253</action>
    </script>
    <script state="run">
      <action>maincpu.mb@072252=30</action>
      <action>maincpu.mb@072253=2D</action>
    </script>
    <script state="off">
      <action>maincpu.mb@072252=temp0 </action>
      <action>maincpu.mb@072253=temp1 </action>
    </script>
  </cheat>

  <cheat desc="--------------------------------"/>
  <cheat desc="Cheats for Xevious Arrangement"/>
  <cheat desc="--------------------------------"/>

  <cheat desc="Select Current Area"> <comment>Works after you die (ONLY in single mode) or you finish the area</comment>
    <parameter>
      <item value="0x00">Area 1</item>
      <item value="0x01">Area 2</item>
      <item value="0x02">Area 3</item>
      <item value="0x03">Area 4</item>
      <item value="0x04">Area 5</item>
      <item value="0x05">Area 6</item>
      <item value="0x06">Area 7</item>
      <item value="0x07">Area 8</item>
      <item value="0x08">Area 9</item>
      <item value="0x09">Area 10</item>
      <item value="0x0A">Area 11</item>
      <item value="0x0B">Area 12</item>
      <item value="0x0C">Area 13</item>
      <item value="0x0D">Area 14</item>
      <item value="0x0E">Area 15</item>
      <item value="0x0F">Area 16-1</item>
      <item value="0x10">Area 16-2</item>
      <item value="0x11">Extra Area 1</item>
      <item value="0x12">Extra Area 2</item>
      <item value="0x13">Extra Area 3</item>
    </parameter>
    <script state="change">
      <action>maincpu.pb@((maincpu.pd@406AA2)+33)=param</action>
    </script>
  </cheat>

  <cheat desc="Select Game Mode"> <comment>In Maniac Mode you will play with a harder rank.</comment>
    <parameter>
      <item value="0x02">Normal Mode</item>
      <item value="0x08">Maniac Mode</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@40643D=param</action>
    </script>
  </cheat>

  <cheat desc=" "/>

  <cheat desc="Infinite Lives PL1">
    <script state="run">
      <action>maincpu.pb@((maincpu.pd@406A9A)+2B)=FF</action>
    </script>
  </cheat>

  <cheat desc="Invincibility PL1">
    <script state="run">
      <action>maincpu.pb@((maincpu.pd@406A9A)+4B)=03</action>
    </script>
  </cheat>

  <cheat desc="Always Have Power Up PL1">
    <script state="run">
      <action>maincpu.pb@((maincpu.pd@4066CC)+6D)=06</action>
    </script>
  </cheat>

  <cheat desc="Rapid Fire PL1">
    <script state="run">
      <action>maincpu.pd@((maincpu.pd@4066CC)+70)=00010000</action>
    </script>
  </cheat>

  <cheat desc=" "/>

  <cheat desc="Infinite Lives PL2">
    <script state="run">
      <action>maincpu.pb@((maincpu.pd@406A9E)+2B)=FF</action>
    </script>
  </cheat>

  <cheat desc="Invincibility PL2">
    <script state="run">
      <action>maincpu.pb@((maincpu.pd@406A9E)+4B)=03</action>
    </script>
  </cheat>

  <cheat desc="Always Have Power Up PL2">
    <script state="run">
      <action>maincpu.pb@((maincpu.pd@404D00)+6D)=06</action>
    </script>
  </cheat>

  <cheat desc="Rapid Fire PL2">
    <script state="run">
      <action>maincpu.pd@((maincpu.pd@404D00)+70)=00010000</action>
    </script>
  </cheat>

  <cheat desc="---------------------------"/>
  <cheat desc="Cheats for Mappy Original"/>
  <cheat desc="---------------------------"/>

  <cheat desc="Infinite Lives">
    <script state="run">
      <action>maincpu.pb@406C67=06</action>
    </script>
  </cheat>

  <cheat desc="Invincibility">
    <script state="on">
      <action>temp0 =maincpu.mb@0ACBE1</action>
      <action>temp1 =maincpu.mb@0AD155</action>
      <action>temp2 =maincpu.mb@0AD32F</action>
    </script>
    <script state="run">
      <action>maincpu.mb@0ACBE1=28</action>
      <action>maincpu.mb@0AD155=2A</action> <!-- 1st = Mewkies, 2nd = Nyamco -->
      <action>maincpu.mb@0AD32F=08</action> <!-- Gosenzo-Sama -->
    </script>
    <script state="off">
      <action>maincpu.mb@0ACBE1=temp0 </action>
      <action>maincpu.mb@0AD155=temp1 </action>
      <action>maincpu.mb@0AD32F=temp2 </action>
    </script>
  </cheat>

  <cheat desc="------------------------------"/>
  <cheat desc="Cheats for Mappy Arrangement"/>
  <cheat desc="------------------------------"/>

  <cheat desc="Select Game Mode">
    <parameter>
      <item value="0x00">Normal Mode</item>
      <item value="0x01">Real Mode</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@406FCB=param</action>
    </script>
  </cheat>

  <cheat desc="Infinite Lives PL1">
    <script state="run">
      <action>maincpu.pb@40703B=05</action>
    </script>
  </cheat>

  <cheat desc="Invincibility PL1">
    <script state="run">
      <action>maincpu.pb@40712D=03</action>
    </script>
  </cheat>

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

  <cheat desc="Invincibility PL2">
    <script state="run">
      <action>maincpu.pb@407177=03</action>
    </script>
  </cheat>

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