<mamecheat version="1">

  <cheat desc="Select Game"> <comment>Faster and easier than the ingame selection</comment>
    <parameter>
      <item value="0x0000">01. Star Soldier</item>
      <item value="0x0100">02. Goonies</item>
      <item value="0x0200">03. Mario Bros 2</item>
      <item value="0x0300">04. Grading (Gradius)</item>
      <item value="0x0400">05. Legedry (The Legend of Kage)</item>
      <item value="0x0500">06. B-Wings</item>
      <item value="0x0600">07. Exerion</item>
      <item value="0x0700">08. Front Line</item>
      <item value="0x0800">09. Macross</item>
      <item value="0x0900">10. Arkanoid</item>
      <item value="0x0A00">11. Islander (Wonder Boy)</item>
      <item value="0x0B00">12. Nuts + Milk</item>
      <item value="0x0001">13. Pac-man</item>
      <item value="0x0101">14. Battle City</item>
      <item value="0x0201">15. Dig Dug</item>
      <item value="0x0301">16. Pooyan</item>
      <item value="0x0401">17. Twin Bee</item>
      <item value="0x0501">18. Donkey Kong</item>
      <item value="0x0601">19. Spartan-X</item>
      <item value="0x0701">20. Galaxian</item>
      <item value="0x0801">21. Star Force</item>
      <item value="0x0901">22. Xevious</item>
      <item value="0x0A01">23. Galaga</item>
      <item value="0x0B01">24. Super Pinball</item>
    </parameter>
    <script state="run">
      <action>maincpu.pw@000B=param</action>
    </script>
  </cheat>

  <cheat desc=" "/>
  <cheat desc="01. Star Soldier"/>
  <cheat desc=" "/>

  <cheat desc="Select Starting Stage">
    <parameter min="1" max="7" step="1"/>
    <script state="run">
      <action condition="(maincpu.pb@0036==01)">maincpu.pb@0036=(param)</action>
    </script>
  </cheat>

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

  <cheat desc="Invincibility"> <comment>Doesn't work against crashing into the end of stage 'Mother Brain'</comment>
    <script state="run">
      <action>maincpu.pb@0040=37</action>
    </script>
  </cheat>

  <cheat desc="Auto 5-Way Shot">
    <script state="run">
      <action>maincpu.pw@003C=0504</action>
    </script>
  </cheat>

  <cheat desc="1 Hit Kills">
    <script state="run">
      <action>maincpu.pb@0027=FF</action>
    </script>
  </cheat>

  <cheat desc=" "/>
  <cheat desc="02. Goonies"/>
  <cheat desc=" "/>

  <cheat desc="Infinite Time">
    <script state="on">
      <action>temp0 =maincpu.pb@0090</action>
    </script>
    <script state="run">
      <action condition="(frame % 300 == 0) AND (maincpu.pb@0090!=temp0 )">maincpu.pb@0090=99</action>
    </script>
  </cheat>

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

  <cheat desc="Infinite Energy">
    <script state="run">
      <action>maincpu.pb@00A0=17</action>
    </script>
  </cheat>

  <cheat desc="Invincibility">
    <script state="run">
      <action>maincpu.pb@00D0=02</action>
      <action>maincpu.pb@05DD=02</action>
      <action>maincpu.pb@004B=9F</action>
    </script>
  </cheat>

  <cheat desc="Infinite Bombs">
    <script state="run">
      <action>maincpu.pb@05F3=FA</action>
    </script>
  </cheat>

  <cheat desc="Infinite Keys">
    <script state="run">
      <action>maincpu.pb@05DF=04</action>
    </script>
  </cheat>

  <cheat desc="Infinite Catapult Ammo">
    <script state="run">
      <action>maincpu.pb@05F2=64</action>
    </script>
  </cheat>

  <cheat desc="Maximum Rescues">
    <script state="run">
      <action>maincpu.pb@05D6=07</action>
    </script>
  </cheat>

  <cheat desc="Always have Earplugs"> <comment>No damage against gang's note attack</comment>
    <script state="run">
      <action>maincpu.pb@0049=01|(maincpu.pb@0049 BAND ~01)</action>
    </script>
  </cheat>

  <cheat desc="Always have Waterproof Wear"> <comment>No damage against steam, drop of water and waterfall</comment>
    <script state="run">
      <action>maincpu.pb@0049=02|(maincpu.pb@0049 BAND ~02)</action>
    </script>
  </cheat>

  <cheat desc="Always have Helmet"> <comment>No damage against a falling rock</comment>
    <script state="run">
      <action>maincpu.pb@0049=04|(maincpu.pb@0049 BAND ~04)</action>
    </script>
  </cheat>

  <cheat desc="Always have Fireproof Wear"> <comment>No damage against fire</comment>
    <script state="run">
      <action>maincpu.pb@0049=08|(maincpu.pb@0049 BAND ~08)</action>
    </script>
  </cheat>

  <cheat desc="Always have Rucksack"> <comment>Enables you to have 2 bombs at the same time</comment>
    <script state="run">
      <action>maincpu.pb@0049=10|(maincpu.pb@0049 BAND ~10)</action>
    </script>
  </cheat>

  <cheat desc="Always have Armor"> <comment>No damage against gang's gun, skeleton's bone attack and bat</comment>
    <script state="run">
      <action>maincpu.pb@0049=20|(maincpu.pb@0049 BAND ~20)</action>
    </script>
  </cheat>

  <cheat desc="Always have Hyper Shoes"> <comment>Enable long jump at the particular place</comment>
    <script state="run">
      <action>maincpu.pb@0049=40|(maincpu.pb@0049 BAND ~40)</action>
    </script>
  </cheat>

  <cheat desc="Rapid Fire">
    <script state="run">
      <action>maincpu.pb@0007=00|(maincpu.pb@0007 BAND ~40)</action>
    </script>
  </cheat>

  <cheat desc="Always have 7 Diamonds"> <comment>Energy recovery when you get a diamond</comment>
    <script state="run">
      <action>maincpu.pb@05D8=07</action>
    </script>
  </cheat>

  <cheat desc="Always Red Pod Changes Yellow"> <comment>Yellow Pod gives a extra life</comment>
    <script state="run">
      <action>maincpu.pb@0093=01</action>
    </script>
  </cheat>

  <cheat desc=" "/>
  <cheat desc="03. Mario Bros 2"/>
  <cheat desc=" "/>

  <cheat desc="Infinite Time">
    <script state="run">
      <action condition="(frame % 120 == 0)">maincpu.pb@07FA=0A</action>
    </script>
  </cheat>

  <cheat desc="Infinite Lives">
    <script state="run">
      <action>maincpu.pb@075A=08</action>
    </script>
  </cheat>

  <cheat desc="Invincibility"> <comment>You can still die when you fall down holes though</comment>
    <script state="on">
      <action>temp0 =maincpu.md@EEE9</action>
    </script>
    <script state="run">
      <action>maincpu.pb@079E=02</action>
      <action>maincpu.md@EEE9=00EA00A9|(maincpu.md@EEE9 BAND ~00FFFFFF)</action> <!-- ROM cheat to fix the flicker -->
    </script>
    <script state="off">
      <action>maincpu.md@EEE9=temp0 </action>
    </script>
  </cheat>

  <cheat desc="Moon Jump">
    <script state="run">
      <action>maincpu.pb@0709=00</action>
    </script>
  </cheat>

  <cheat desc="Select Sprite Movement">
    <parameter>
      <item value="0x00">Walker</item>
      <item value="0x01">Swimmer</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@0704=param</action>
    </script>
  </cheat>

  <cheat desc="Select Effect Now!"> <!-- Note Changing this to a perm cheat has the effect of giving you Invincibility with all the non-normal characters -->
    <parameter>
      <item value="0x01">Small Sprite</item>
      <item value="0x02">Big Sprite</item>
      <item value="0x03">Big Sprite with Firepower</item>
    </parameter>
    <script state="change">
      <action condition="(param==01)">maincpu.pb@0754=01</action>
      <action condition="(param==01)">maincpu.pb@0756=00</action>
      <action condition="(param==02)">maincpu.pb@0754=00</action>
      <action condition="(param==02)">maincpu.pb@0756=01</action>
      <action condition="(param==03)">maincpu.pb@0754=01</action>
      <action condition="(param==03)">maincpu.pb@0756=02</action>
    </script>
  </cheat>

  <cheat desc="Select Current World Level">
    <parameter min="1" max="8" step="1"/>
    <script state="on">
      <action>maincpu.pb@075F=01</action>
    </script>
    <script state="change">
      <action>maincpu.pb@075F=(param-1)</action>
    </script>
  </cheat>

  <cheat desc="No Bottomless Pits">
    <script state="run">
      <action>maincpu.pq@05B0=5454545454545454</action>
      <action>maincpu.pq@05B8=5454545454545454</action>
      <action>maincpu.pq@05C0=5454545454545454</action>
      <action>maincpu.pq@05C8=5454545454545454</action>
      <action>maincpu.pq@0680=5454545454545454</action>
      <action>maincpu.pq@0688=5454545454545454</action>
      <action>maincpu.pq@0690=5454545454545454</action>
      <action>maincpu.pq@0698=5454545454545454</action>
    </script>
  </cheat>

  <cheat desc=" "/>
  <cheat desc="04. Grading (Gradius)"/>
  <cheat desc=" "/>
  <!--  note ROM cheats from pc_gradius should work but they aren't quick enough it seems -->


  <cheat desc="Infinite Shields">
    <script state="run">
      <action>maincpu.pb@0046=0A</action>
    </script>
  </cheat>

  <cheat desc="Select Speed Up Speed"> <comment>Don't go too high!</comment>
    <parameter min="0" max="255" step="1"/>
    <script state="change">
      <action>maincpu.pb@0040=(param)</action>
    </script>
  </cheat>

  <cheat desc="Rapid Fire">
    <script state="run">
      <action>maincpu.pd@03A6=00000000|(maincpu.pd@03A6 BAND ~00FFFFFF)</action>
    </script>
  </cheat>

  <cheat desc="Always have a Good Speed Up">
    <script state="run">
      <action>maincpu.pb@0040=0A</action>
    </script>
  </cheat>

  <cheat desc="Always have Full Options">
    <script state="run">
      <action>maincpu.pb@0045=02</action>
    </script>
  </cheat>

  <cheat desc="Always have Missile">
    <script state="run">
      <action>maincpu.pb@0041=01</action>
    </script>
  </cheat>

  <cheat desc="Always have Laser"> <comment>You can't have Double then</comment>
    <script state="run">
      <action>maincpu.pb@0044=01</action>
    </script>
  </cheat>

  <cheat desc="Always have Double"> <comment>You can't have Laser then</comment>
    <script state="run">
      <action>maincpu.pb@0044=02</action>
    </script>
  </cheat>

  <cheat desc="Get a Good Speed Up Now!">
    <script state="on">
      <action>maincpu.pb@0040=0A</action>
    </script>
  </cheat>

  <cheat desc="Get Full Options Now!">
    <script state="on">
      <action>maincpu.pb@0045=02</action>
    </script>
  </cheat>

  <cheat desc="Get Missile Now!">
    <script state="on">
      <action>maincpu.pb@0041=01</action>
    </script>
  </cheat>

  <cheat desc="Get Laser Now!"> <comment>You can't have Double then</comment>
    <script state="on">
      <action>maincpu.pb@0044=01</action>
    </script>
  </cheat>

  <cheat desc="Get Double Now!"> <comment>You can't have Laser then</comment>
    <script state="on">
      <action>maincpu.pb@0044=02</action>
    </script>
  </cheat>

  <cheat desc="Lose missiles Now!">
    <script state="on">
      <action>maincpu.pb@0041=00</action>
    </script>
  </cheat>

  <cheat desc="Lose double/laser Now!">
    <script state="on">
      <action>maincpu.pb@0044=00</action>
    </script>
  </cheat>

  <cheat desc="Light Up Speed Button Now!">
    <script state="on">
      <action>maincpu.pb@0042=01</action>
    </script>
  </cheat>

  <cheat desc="Light Up Missile Button Now!">
    <script state="on">
      <action>maincpu.pb@0042=02</action>
    </script>
  </cheat>

  <cheat desc="Light Up Double Button Now!">
    <script state="on">
      <action>maincpu.pb@0042=03</action>
    </script>
  </cheat>

  <cheat desc="Light Up Laser Button Now!">
    <script state="on">
      <action>maincpu.pb@0042=04</action>
    </script>
  </cheat>

  <cheat desc="Light Up Option Button Now!">
    <script state="on">
      <action>maincpu.pb@0042=05</action>
    </script>
  </cheat>

  <cheat desc="Light Up ? Button Now!">
    <script state="on">
      <action>maincpu.pb@0042=06</action>
    </script>
  </cheat>

  <cheat desc="No button lit Now!">
    <script state="on">
      <action>maincpu.pb@0042=00</action>
    </script>
  </cheat>

  <cheat desc=""/>

  <cheat desc="Infinite Lives PL1">
    <script state="run">
      <action>maincpu.pb@0020=63</action>
    </script>
  </cheat>

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

  <cheat desc=" "/>
  <cheat desc="05. Legedry (The Legend of Kage)"/>
  <cheat desc=" "/>

  <cheat desc="Infinite Lives">
    <script state="run">
      <action>maincpu.pb@002B=63</action>
    </script>
  </cheat>

  <!--  :cham24:20800000:9B22:00000060:FFFFFFFF:Invincibility:NOT WORKING LOOKS LIKE THE POKING ISN'T FAST ENOUGH, watch it - only overwrites when the game is paused. bp 9b22 and then pc=9b21 proves it works -->

  <cheat desc=" "/>
  <cheat desc="06. B-Wings"/>
  <cheat desc=" "/>
  <cheat desc="This game doesn't work"/>
  <cheat desc=" "/>
  <cheat desc="07. Exerion"/>
  <cheat desc=" "/>

  <cheat desc="Infinite Lives">
    <script state="run">
      <action>maincpu.pb@003C=09</action>
    </script>
  </cheat>

  <cheat desc="Invincibility">
    <script state="on">
      <action>temp0 =maincpu.mw@8FA4</action>
      <action>temp1 =maincpu.mw@A5FE</action>
      <action>temp2 =maincpu.mw@A9B3</action>
      <action>temp3 =maincpu.mw@AB2B</action>
    </script>
    <script state="run">
      <action>maincpu.mw@8FA4=1390</action>
      <action>maincpu.mw@A5FE=2C90</action> <!-- Pt 1 Bullets, Pt 2 Enemies -->
      <action>maincpu.mw@A9B3=38EA</action> <!-- Mines -->
      <action>maincpu.mw@AB2B=1090</action> <!-- Missiles -->
    </script>
    <script state="off">
      <action>maincpu.mw@8FA4=temp0 </action>
      <action>maincpu.mw@A5FE=temp1 </action>
      <action>maincpu.mw@A9B3=temp2 </action>
      <action>maincpu.mw@AB2B=temp3 </action>
    </script>
  </cheat>

  <cheat desc=" "/>
  <cheat desc="08. Front Line"/>
  <cheat desc=" "/>

  <cheat desc="Infinite Lives">
    <script state="run">
      <action>maincpu.pb@0021=0A</action>
    </script>
  </cheat>

  <cheat desc="Invincibility">
    <script state="on">
      <action>temp0 =maincpu.md@D091</action>
      <action>temp1 =maincpu.md@FFE8</action>
      <action>temp2 =maincpu.md@FFEC</action>
    </script>
    <script state="run">
      <action>maincpu.md@D091=00FFE820|(maincpu.md@D091 BAND ~00FFFFFF)</action> <!-- D091 (20 E8 FF) jsr  $FFE8 -->
      <action>maincpu.md@FFE8=031083C0</action> <!-- FFE8 (C0 83) cpy  #$83, FFEA (10 03) bpl  $FFEF -->
      <action>maincpu.md@FFEC=60002599</action> <!-- FFEC (99 25 00) sta  $0025,y , FFEF (60) rts -->
    </script>
    <script state="off">
      <action>maincpu.md@D091=temp0 </action>
      <action>maincpu.md@FFE8=temp1 </action>
      <action>maincpu.md@FFEC=temp2 </action>
    </script>
  </cheat>

  <cheat desc=" "/>
  <cheat desc="09. Macross"/>
  <cheat desc=" "/>

  <cheat desc="Infinite Lives">
    <script state="run">
      <action>maincpu.pb@00F4=99</action>
    </script>
  </cheat>

  <cheat desc="Infinite Energy">
    <script state="run">
      <action>maincpu.pb@00EB=30</action>
    </script>
  </cheat>

  <cheat desc="Infinite Ammo">
    <script state="run">
      <action>maincpu.pb@00ED=06</action>
    </script>
  </cheat>

  <cheat desc=" "/>
  <cheat desc="10. Arkanoid"/>
  <cheat desc=" "/>

  <cheat desc="Infinite Lives">
    <script state="run">
      <action>maincpu.pb@000D=07</action>
    </script>
  </cheat>

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

  <cheat desc="Always Keep One Ball in Play">
    <script state="run">
      <action condition="(maincpu.pb@0037 LT 00) OR (maincpu.pb@0037 GT E8)">maincpu.pb@0037=C0</action>
    </script>
  </cheat>

  <cheat desc=" "/>
  <cheat desc="11. Islander (Wonder Boy)"/>
  <cheat desc=" "/>

  <cheat desc="Infinite Time">
    <script state="run">
      <action condition="(frame % 420 == 0)">maincpu.pb@0076=21</action>
    </script>
  </cheat>

  <cheat desc="Infinite Lives">
    <script state="run">
      <action>maincpu.pb@003F=09</action>
    </script>
  </cheat>

  <cheat desc="Invincibility"> <comment>Note - you will still die if you fall in any holes/water</comment>
    <script state="on">
      <action>temp0 =maincpu.mb@BFF4</action>
    </script>
    <script state="run">
      <action>maincpu.mb@BFF4=60</action>
    </script>
    <script state="off">
      <action>maincpu.mb@BFF4=temp0 </action>
    </script>
  </cheat>

  <cheat desc=" "/>
  <cheat desc="12. Nuts + Milk"/>
  <cheat desc=" "/>

  <cheat desc="Infinite Lives">
    <script state="run">
      <action>maincpu.pb@00BE=09</action>
    </script>
  </cheat>

  <cheat desc="Invincibility"> <comment>You can still die by dropping into the water though</comment>
    <script state="on">
      <action>temp0 =maincpu.mb@D669</action>
    </script>
    <script state="run">
      <action>maincpu.mb@D669=60</action>
    </script>
    <script state="off">
      <action>maincpu.mb@D669=temp0 </action>
    </script>
  </cheat>

  <cheat desc="Always have Maximum Bonus">
    <script state="run">
      <action>maincpu.pb@0021=63</action>
    </script>
  </cheat>

  <cheat desc=" "/>
  <cheat desc="13. Pac-man"/>
  <cheat desc=" "/>

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

  <cheat desc="Invincibility">
    <script state="on">
      <action>temp0 =maincpu.mb@D2A3</action>
    </script>
    <script state="run">
      <action>maincpu.mb@D2A3=04</action>
    </script>
    <script state="off">
      <action>maincpu.mb@D2A3=temp0 </action>
    </script>
  </cheat>

  <cheat desc=" "/>
  <cheat desc="14. Battle City"/>
  <cheat desc=" "/>

  <cheat desc="Infinite Lives">
    <script state="run">
      <action>maincpu.pb@0051=0A</action>
    </script>
  </cheat>

  <cheat desc="Always have Shield">
    <script state="run">
      <action>maincpu.pb@0089=02</action>
    </script>
  </cheat>

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

  <cheat desc=" "/>
  <cheat desc="15. Dig Dug"/>
  <cheat desc=" "/>

  <cheat desc="Infinite Lives">
    <script state="run">
      <action>maincpu.pb@0060=0A</action>
    </script>
  </cheat>

  <cheat desc="Invincibility">
    <script state="on">
      <action>temp0 =maincpu.mb@E406</action>
      <action>temp1 =maincpu.mw@E440</action>
    </script>
    <script state="run">
      <action condition="(maincpu.pb@00B0==06)">maincpu.pb@00B0=00</action>
      <action>maincpu.mb@E406=00</action> <!-- Pt 1 RAM Rocks, Pt 2 collisions -->
      <action>maincpu.mw@E440=38EA</action> <!-- Dragon Fire -->
    </script>
    <script state="off">
      <action>maincpu.mb@E406=temp0 </action>
      <action>maincpu.mw@E440=temp1 </action>
    </script>
  </cheat>

  <cheat desc=" "/>
  <cheat desc="16. Pooyan"/>
  <cheat desc=" "/>

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

  <cheat desc="Invincibility">
    <script state="on">
      <action>temp0 =maincpu.mb@D972</action>
      <action>temp1 =maincpu.mb@DB21</action>
      <action>temp2 =maincpu.mb@DC36</action>
    </script>
    <script state="run">
      <action>maincpu.mb@D972=A9</action> <!-- Stop Large Rock dropping -->
      <action>maincpu.mb@DB21=00</action> <!-- Small Rocks -->
      <action>maincpu.mb@DC36=60</action> <!-- Bites -->
    </script>
    <script state="off">
      <action>maincpu.mb@D972=temp0 </action>
      <action>maincpu.mb@DB21=temp1 </action>
      <action>maincpu.mb@DC36=temp2 </action>
    </script>
  </cheat>

  <cheat desc=" "/>
  <cheat desc="17. Twin Bee"/>
  <cheat desc=" "/>

  <cheat desc="Infinite Lives">
    <script state="on">
      <action>temp0 =maincpu.mb@B7BC</action>
    </script>
    <script state="run">
      <action>maincpu.mb@B7BC=A5</action>
    </script>
    <script state="off">
      <action>maincpu.mb@B7BC=temp0 </action>
    </script>
  </cheat>

  <cheat desc="Invincibility">
    <script state="on">
      <action>temp0 =maincpu.mb@EAA2</action>
    </script>
    <script state="run">
      <action>maincpu.mb@EAA2=B5</action>
    </script>
    <script state="off">
      <action>maincpu.mb@EAA2=temp0 </action>
    </script>
  </cheat>

  <cheat desc="Always have Bombs">
    <script state="on">
      <action>temp0 =maincpu.mb@EA6B</action>
    </script>
    <script state="run">
      <action>maincpu.mb@EA6B=B5</action>
    </script>
    <script state="off">
      <action>maincpu.mb@EA6B=temp0 </action>
    </script>
  </cheat>

  <cheat desc="Always have 3-Way Weapon">
    <script state="run">
      <action>maincpu.pb@07C7=01</action>
    </script>
  </cheat>

  <cheat desc=" "/>
  <cheat desc="18. Donkey Kong"/>
  <cheat desc=" "/>

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

  <cheat desc="Maximum Bonus">
    <script state="run">
      <action>maincpu.pb@002E=9A</action>
    </script>
  </cheat>

  <cheat desc="Invincibility">
    <script state="on">
      <action>temp0 =maincpu.mb@D22A</action>
      <action>temp1 =maincpu.mb@D61A</action>
      <action>temp2 =maincpu.mb@D6C2</action>
      <action>temp3 =maincpu.mb@EC62</action>
      <action>temp4 =maincpu.mb@ED9D</action>
      <action>temp5 =maincpu.mb@EDEF</action>
    </script>
    <script state="run">
      <action>maincpu.mb@D22A=A9</action> <!-- Walk on Air (works in conjunction with Walk off Platform) -->
      <action>maincpu.mb@D61A=00</action> <!-- Jump off Platform -->
      <action>maincpu.mb@D6C2=01</action> <!-- Walk off Platform -->
      <action>maincpu.mb@EC62=00</action> <!-- Normal Barrels -->
      <action>maincpu.mb@ED9D=00</action> <!-- Fire Barrels -->
      <action>maincpu.mb@EDEF=00</action> <!-- Oil Barrel on Fire -->
    </script>
    <script state="off">
      <action>maincpu.mb@D22A=temp0 </action>
      <action>maincpu.mb@D61A=temp1 </action>
      <action>maincpu.mb@D6C2=temp2 </action>
      <action>maincpu.mb@EC62=temp3 </action>
      <action>maincpu.mb@ED9D=temp4 </action>
      <action>maincpu.mb@EDEF=temp5 </action>
    </script>
  </cheat>

  <cheat desc=" "/>
  <cheat desc="19. Spartan-X"/>
  <cheat desc=" "/>

  <cheat desc="Infinite Time">
    <script state="run">
      <action condition="(frame % 60 == 0)">maincpu.pw@0392=0909</action>
    </script>
  </cheat>

  <cheat desc="Infinite Lives">
    <script state="run">
      <action>maincpu.pb@005C=0A</action>
    </script>
  </cheat>

  <cheat desc="Infinite Energy"> <comment>Turn OFF at the end of the level to progress</comment>
    <script state="run">
      <action>maincpu.pb@04A6=30</action>
    </script>
  </cheat>

  <cheat desc=" "/>
  <cheat desc="20. Galaxian"/>
  <cheat desc=" "/>

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

  <cheat desc="Invincibility">
    <script state="on">
      <action>temp0 =maincpu.mw@E60D</action>
      <action>temp1 =maincpu.mb@EC8A</action>
    </script>
    <script state="run">
      <action>maincpu.mw@E60D=38EA</action>
      <action>maincpu.mb@EC8A=60</action> <!-- Pt 1 bullets, Pt 2 collisions -->
    </script>
    <script state="off">
      <action>maincpu.mw@E60D=temp0 </action>
      <action>maincpu.mb@EC8A=temp1 </action>
    </script>
  </cheat>

  <cheat desc=" "/>
  <cheat desc="21. Star Force"/>
  <cheat desc=" "/>

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

  <cheat desc="Invincibility">
    <script state="on">
      <action>temp0 =maincpu.mb@DE97</action>
    </script>
    <script state="run">
      <action>maincpu.mb@DE97=A5</action>
    </script>
    <script state="off">
      <action>maincpu.mb@DE97=temp0 </action>
    </script>
  </cheat>

  <cheat desc=" "/>
  <cheat desc="22. Xevious"/>
  <cheat desc=" "/>

  <cheat desc="Infinite Lives">
    <script state="run">
      <action>maincpu.pb@008D=0A</action>
    </script>
  </cheat>

  <cheat desc="Invincibility">
    <script state="on">
      <action>temp0 =maincpu.mb@CEFC</action>
      <action>temp1 =maincpu.mw@EC20</action>
      <action>temp2 =maincpu.mw@EA5D</action>
    </script>
    <script state="run">
      <action>maincpu.mb@CEFC=60</action>
      <action>maincpu.mw@EC20=38EA</action> <!-- Pt 1 bullets, Pt 2 most collisions -->
      <action>maincpu.mw@EA5D=38EA</action> <!-- remaining collisions -->
    </script>
    <script state="off">
      <action>maincpu.mb@CEFC=temp0 </action>
      <action>maincpu.mw@EC20=temp1 </action>
      <action>maincpu.mw@EA5D=temp2 </action>
    </script>
  </cheat>

  <cheat desc=" "/>
  <cheat desc="23. Galaga"/>
  <cheat desc=" "/>

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

  <cheat desc="Invincibility">
    <script state="on">
      <action>temp0 =maincpu.mw@E84C</action>
      <action>temp1 =maincpu.mw@E890</action>
    </script>
    <script state="run">
      <action>maincpu.mw@E84C=EA18</action>
      <action>maincpu.mw@E890=EA18</action> <!-- Pt 1 Bullets, Pt 2 Enemies -->
    </script>
    <script state="off">
      <action>maincpu.mw@E84C=temp0 </action>
      <action>maincpu.mw@E890=temp1 </action>
    </script>
  </cheat>

  <cheat desc=" "/>
  <cheat desc="24. Super Pinball"/>
  <cheat desc=" "/>

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

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