<mamecheat version="1">

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

  <cheat desc="Infinite Playing Time">
    <script state="run">
      <action>maincpu.pd@0B00=00000000|(maincpu.pd@0B00 BAND ~00FFFFFF)</action>
    </script>
  </cheat>

  <cheat desc="Select Game"> <comment>Faster and easier than the ingame selection</comment>
    <parameter>
      <item value="0x00">1.  Excitebike</item>
      <item value="0x01">2.  Tetris</item>
      <item value="0x02">3.  Star Force</item>
      <item value="0x03">4.  Sky Destroyer</item>
      <item value="0x04">5.  Chess</item>
      <item value="0x05">6.  Kung Fu (Yie Ar KUNG-FU)</item>
      <item value="0x06">7.  Pac Man</item>
      <item value="0x07">8.  Baseball</item>
      <item value="0x08">9.  Circus Charlie</item>
      <item value="0x09">10. Ice Climber</item>
      <item value="0x0A">11. Warpman</item>
      <item value="0x0B">12. Road Fighter</item>
      <item value="0x0C">13. Balloon</item>
      <item value="0x0D">14. Battle City</item>
      <item value="0x0E">15. Super Mario</item>
      <item value="0x0F">16. Twinbee</item>
      <item value="0x10">17. Goonies</item>
      <item value="0x11">18. New Type</item>
      <item value="0x12">19. Tennis</item>
      <item value="0x13">20. Son Son</item>
      <item value="0x14">21. Galaga</item>
      <item value="0x15">22. F1 Race</item>
      <item value="0x16">23. Door Door (Super Pinball)</item>
      <item value="0x17">24. Bomb Jack (Mighty Bombjack)</item>
      <item value="0x18">25. Ninja</item>
      <item value="0x19">26. Gorilla 3</item>
      <item value="0x1A">27. Macross</item>
      <item value="0x1B">28. Mr Mario (Mario Bros.)</item>
      <item value="0x1C">29. Olympic (Track + Field)</item>
      <item value="0x1D">30. Wrecking</item>
      <item value="0x1E">31. Penguin</item>
      <item value="0x1F">32. Elevator</item>
      <item value="0x20">33. Arabian</item>
      <item value="0x21">34. Zippy (Zippy Race)</item>
      <item value="0x22">35. Star Soldier</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@0F01=param</action>
    </script>
  </cheat>

  <cheat desc="---------------"/>
  <cheat desc="1. Excitebike"/>
  <cheat desc="---------------"/>

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

  <cheat desc="No overheat">
    <script state="run">
      <action>maincpu.pb@0BB6=08</action>
    </script>
  </cheat>

  <cheat desc="Invincibility">
    <script state="on">
      <action>temp0 =maincpu.mb@DC69</action>
      <action>temp1 =maincpu.mb@E818</action>
    </script>
    <script state="run">
      <action>maincpu.mb@DC69=60</action> <!-- Bad landings -->
      <action>maincpu.mb@E818=60</action> <!-- Walls -->
    </script>
    <script state="off">
      <action>maincpu.mb@DC69=temp0 </action>
      <action>maincpu.mb@E818=temp1 </action>
    </script>
  </cheat>

  <cheat desc="No slowing surfaces">
    <script state="on">
      <action>temp0 =maincpu.md@CE0C</action>
      <action>temp1 =maincpu.mb@E91A</action>
    </script>
    <script state="run">
      <action>maincpu.md@CE0C=F0CE1F4C</action> <!-- Open stretches -->
      <action>maincpu.mb@E91A=60</action> <!-- Bushes -->
    </script>
    <script state="off">
      <action>maincpu.md@CE0C=temp0 </action>
      <action>maincpu.mb@E91A=temp1 </action>
    </script>
  </cheat>

  <cheat desc="-----------"/>
  <cheat desc="2. Tetris"/>
  <cheat desc="-----------"/>
  <cheat desc="---------------"/>
  <cheat desc="3. 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="4. Sky Destro (Sky Destroyer)"/>
  <cheat desc="-------------------------------"/>

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

  <cheat desc="----------"/>
  <cheat desc="5. Chess"/>
  <cheat desc="----------"/>
  <cheat desc="-----------------------------"/>
  <cheat desc="6. Kung Fu (Yie Ar KUNG-FU)"/>
  <cheat desc="-----------------------------"/>

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

  <cheat desc="Infinite Energy">
    <script state="run">
      <action condition="(frame % 120 == 0)">maincpu.pb@00DB=00</action>
    </script>
  </cheat>

  <cheat desc="Always 1 Hit to Kill Opponent">
    <script state="run">
      <action>maincpu.pb@00DC=09</action>
    </script>
  </cheat>

  <cheat desc="1 Hit to Kill Opponent Now!">
    <script state="on">
      <action>maincpu.pb@00DC=09</action>
    </script>
  </cheat>

  <cheat desc="------------"/>
  <cheat desc="7. 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="8. Baseball"/>
  <cheat desc="-------------"/>
  <cheat desc="-------------------"/>
  <cheat desc="9. Circus Charlie"/>
  <cheat desc="-------------------"/>

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

  <cheat desc="Invincibility [STAGE 1]">
    <script state="on">
      <action>temp0 =maincpu.mb@E88E</action>
      <action>temp1 =maincpu.mb@E8D6</action>
    </script>
    <script state="run">
      <action>maincpu.mb@E88E=00</action> <!-- Cup of Fire -->
      <action>maincpu.mb@E8D6=00</action> <!-- Ring of Fire -->
    </script>
    <script state="off">
      <action>maincpu.mb@E88E=temp0 </action>
      <action>maincpu.mb@E8D6=temp1 </action>
    </script>
  </cheat>

  <cheat desc="Invincibility [STAGE 2]">
    <script state="on">
      <action>temp0 =maincpu.mb@EC09</action>
    </script>
    <script state="run">
      <action>maincpu.mb@EC09=00</action> <!-- Monkey on Rope -->
    </script>
    <script state="off">
      <action>maincpu.mb@EC09=temp0 </action>
    </script>
  </cheat>

  <cheat desc="Invincibility [STAGE 3]">
    <script state="on">
      <action>temp0 =maincpu.mb@DAA3</action>
      <action>temp1 =maincpu.mb@EE85</action>
    </script>
    <script state="run">
      <action>maincpu.mb@DAA3=0A</action> <!-- Floor (walk on air if you miss) -->
      <action>maincpu.mb@EE85=00</action> <!-- Collisions -->
    </script>
    <script state="off">
      <action>maincpu.mb@DAA3=temp0 </action>
      <action>maincpu.mb@EE85=temp1 </action>
    </script>
  </cheat>

  <cheat desc="Invincibility [STAGE 4]">
    <script state="on">
      <action>temp0 =maincpu.mb@F0ED</action>
      <action>temp1 =maincpu.md@D9E2</action>
    </script>
    <script state="run">
      <action>maincpu.mb@F0ED=00</action> <!-- Collisions with platforms -->
      <action>maincpu.md@D9E2=00CE354C|(maincpu.md@D9E2 BAND ~00FFFFFF)</action> <!-- Brings you back onto the podium if you don't dismount -->
    </script>
    <script state="off">
      <action>maincpu.mb@F0ED=temp0 </action>
      <action>maincpu.md@D9E2=temp1 </action>
    </script>
  </cheat>

  <cheat desc="-----------------"/>
  <cheat desc="10. Ice Climber"/>
  <cheat desc="-----------------"/>

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

  <cheat desc="Invincibility">
    <script state="on">
      <action>temp0 =maincpu.mw@D340</action>
    </script>
    <script state="run">
      <action>maincpu.mw@D340=00A9</action>
    </script>
    <script state="off">
      <action>maincpu.mw@D340=temp0 </action>
    </script>
  </cheat>

  <cheat desc="Infinite Bonus Round Time">
    <script state="run">
      <action>maincpu.pw@07FA=9A99</action>
    </script>
  </cheat>

  <cheat desc="-------------"/>
  <cheat desc="11. Warpman"/>
  <cheat desc="-------------"/>
  <cheat desc="------------------"/>
  <cheat desc="12. Road Fighter"/>
  <cheat desc="------------------"/>

  <cheat desc="Infinite Fuel"> <comment>Turn OFF at the end of the level</comment>
    <script state="run">
      <action>maincpu.pb@00C8=65</action>
    </script>
  </cheat>

  <cheat desc="Invincibility"> <comment>Use in conjunction with the Infinite Fuel cheat as if you run out of fuel the game will still end</comment>
    <script state="on">
      <action>temp0 =maincpu.mb@DEEE</action>
      <action>temp1 =maincpu.mb@E154</action>
      <action>temp2 =maincpu.mb@E136</action>
    </script>
    <script state="run">
      <action>maincpu.mb@DEEE=60</action>
      <action>maincpu.mb@E154=A5</action> <!-- Pt 1 Walls, Pt 2 Cars + Oil Slicks -->
      <action>maincpu.mb@E136=60</action> <!-- Trucks -->
    </script>
    <script state="off">
      <action>maincpu.mb@DEEE=temp0 </action>
      <action>maincpu.mb@E154=temp1 </action>
      <action>maincpu.mb@E136=temp2 </action>
    </script>
  </cheat>

  <cheat desc="-------------"/>
  <cheat desc="13. Balloon"/>
  <cheat desc="-------------"/>

  <cheat desc="Infinite Lives">
    <script state="run">
      <action>maincpu.pb@0041=07</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. Super Mario"/>
  <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="16. Twinbee"/>
  <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="17. 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="18. New Type"/>
  <cheat desc="--------------"/>

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

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

  <cheat desc="Invincibility"> <comment>Don't get stuck behind any scenery at the bottom of the screen or you may still get trapped and die</comment>
    <script state="on">
      <action>temp0 =maincpu.mb@899E</action>
    </script>
    <script state="run">
      <action>maincpu.mb@899E=A9</action>
    </script>
    <script state="off">
      <action>maincpu.mb@899E=temp0 </action>
    </script>
  </cheat>

  <cheat desc="Invincibility">
    <script state="on">
      <action>temp0 =maincpu.mb@8D6D</action>
    </script>
    <script state="run">
      <action>maincpu.mb@8D6D=A5</action> <!-- Pt 1 Water, Pt 2 Enemies -->
    </script>
    <script state="off">
      <action>maincpu.mb@8D6D=temp0 </action>
    </script>
  </cheat>

  <cheat desc="Invincibility">
    <script state="on">
      <action>temp0 =maincpu.mb@8DA2</action>
    </script>
    <script state="run">
      <action>maincpu.mb@8DA2=A5</action> <!-- Weapon Fire -->
    </script>
    <script state="off">
      <action>maincpu.mb@8DA2=temp0 </action>
    </script>
  </cheat>

  <cheat desc="------------"/>
  <cheat desc="19. Tennis"/>
  <cheat desc="------------"/>

  <cheat desc="Infinite Faults">
    <script state="run">
      <action>maincpu.pb@007A=00</action>
    </script>
  </cheat>

  <cheat desc="Select Difficulty Level"> <comment>This effects the game speed, lower is slower.</comment>
    <parameter min="1" max="5" step="1"/>
    <script state="run">
      <action>maincpu.pb@004C=(param-1)</action>
    </script>
  </cheat>

  <cheat desc=" "/>

  <cheat desc="'Game' Score = 40 Now! Player">
    <script state="on">
      <action>maincpu.pb@0058=03</action>
    </script>
  </cheat>

  <cheat desc="'Set 1' Score = 5 Now! Player">
    <script state="on">
      <action>maincpu.pb@0051=05</action>
    </script>
  </cheat>

  <cheat desc="'Set 2' Score = 5 Now! Player">
    <script state="on">
      <action>maincpu.pb@0052=86</action>
    </script>
  </cheat>

  <cheat desc="'Set 3' Score = 5 Now! Player">
    <script state="on">
      <action>maincpu.pb@0053=86</action>
    </script>
  </cheat>

  <cheat desc=" "/>

  <cheat desc="'Game' Score always = 0 CPU">
    <script state="run">
      <action>maincpu.pb@0059=00</action>
    </script>
  </cheat>

  <cheat desc="'Game' Score = 0 Now! CPU">
    <script state="on">
      <action>maincpu.pb@0059=00</action>
    </script>
  </cheat>

  <cheat desc="'Set 1' Score always = 0 CPU">
    <script state="run">
      <action>maincpu.pb@0054=00</action>
    </script>
  </cheat>

  <cheat desc="'Set 1' Score = 0 Now! CPU">
    <script state="on">
      <action>maincpu.pb@0054=00</action>
    </script>
  </cheat>

  <cheat desc="'Set 2' Score always = 0 CPU">
    <script state="run">
      <action>maincpu.pb@0055=00</action>
    </script>
  </cheat>

  <cheat desc="'Set 2' Score = 0 Now! CPU">
    <script state="on">
      <action>maincpu.pb@0055=00</action>
    </script>
  </cheat>

  <cheat desc="'Set 3' Score always = 0 CPU">
    <script state="run">
      <action>maincpu.pb@0056=00</action>
    </script>
  </cheat>

  <cheat desc="'Set 3' Score = 0 Now! CPU">
    <script state="on">
      <action>maincpu.pb@0056=00</action>
    </script>
  </cheat>

  <cheat desc="-------------"/>
  <cheat desc="20. Son Son"/>
  <cheat desc="-------------"/>

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

  <cheat desc="Invincibility">
    <script state="on">
      <action>temp0 =maincpu.mb@B317</action>
      <action>temp1 =maincpu.mb@B446</action>
      <action>temp2 =maincpu.mb@B494</action>
      <action>temp3 =maincpu.mb@B4B2</action>
      <action>temp4 =maincpu.mb@B4D8</action>
    </script>
    <script state="run">
      <action>maincpu.mb@B317=AD</action>
      <action>maincpu.mb@B446=AD</action>
      <action>maincpu.mb@B494=AD</action>
      <action>maincpu.mb@B4B2=AD</action>
      <action>maincpu.mb@B4D8=AD</action>
    </script>
    <script state="off">
      <action>maincpu.mb@B317=temp0 </action>
      <action>maincpu.mb@B446=temp1 </action>
      <action>maincpu.mb@B494=temp2 </action>
      <action>maincpu.mb@B4B2=temp3 </action>
      <action>maincpu.mb@B4D8=temp4 </action>
    </script>
  </cheat>

  <cheat desc="------------"/>
  <cheat desc="21. 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="22. F1 Race"/>
  <cheat desc="-------------"/>

  <cheat desc="Infinite Time">
    <script state="run">
      <action>maincpu.pw@0077=0909</action>
    </script>
  </cheat>

  <cheat desc="Invincibility">
    <script state="on">
      <action>temp0 =maincpu.mb@D763</action>
      <action>temp1 =maincpu.mb@D76F</action>
      <action>temp2 =maincpu.mw@E3EA</action>
    </script>
    <script state="run">
      <action>maincpu.mb@D763=00</action> <!-- LH Posts -->
      <action>maincpu.mb@D76F=19</action> <!-- RH Posts -->
      <action>maincpu.mw@E3EA=38EA</action> <!-- Cars -->
    </script>
    <script state="off">
      <action>maincpu.mb@D763=temp0 </action>
      <action>maincpu.mb@D76F=temp1 </action>
      <action>maincpu.mw@E3EA=temp2 </action>
    </script>
  </cheat>

  <cheat desc="-------------------------------"/>
  <cheat desc="23. Door Door (Super Pinball)"/>
  <cheat desc="-------------------------------"/>

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

  <cheat desc="---------------------------------"/>
  <cheat desc="24. Bomb Jack (Mighty Bombjack)"/>
  <cheat desc="---------------------------------"/>

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

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

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

  <cheat desc="-----------"/>
  <cheat desc="25. Ninja"/>
  <cheat desc="-----------"/>

  <cheat desc="Infinite Time">
    <script state="run">
      <action>maincpu.pb@0161=FF</action>
    </script>
  </cheat>

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

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

  <cheat desc="Invincibility"> <comment>Water still kills though</comment>
    <script state="on">
      <action>temp0 =maincpu.mb@95F1</action>
      <action>temp1 =maincpu.mw@ABE5</action>
      <action>temp2 =maincpu.mb@B2CC</action>
      <action>temp3 =maincpu.mb@B8D9</action>
    </script>
    <script state="run">
      <action>maincpu.mb@95F1=60</action> <!-- Helmet wearing Ninjas -->
      <action>maincpu.mw@ABE5=38EA</action> <!-- Little Ninjas -->
      <action>maincpu.mb@B2CC=60</action> <!-- Weapons -->
      <action>maincpu.mb@B8D9=00</action> <!-- Dumbells -->
    </script>
    <script state="off">
      <action>maincpu.mb@95F1=temp0 </action>
      <action>maincpu.mw@ABE5=temp1 </action>
      <action>maincpu.mb@B2CC=temp2 </action>
      <action>maincpu.mb@B8D9=temp3 </action>
    </script>
  </cheat>

  <cheat desc="---------------"/>
  <cheat desc="26. Gorilla 3"/>
  <cheat desc="---------------"/>

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

  <cheat desc="Invincibility">
    <script state="on">
      <action>temp0 =maincpu.mb@CBE0</action>
      <action>temp1 =maincpu.mb@D86C</action>
    </script>
    <script state="run">
      <action>maincpu.mb@CBE0=60</action>
      <action>maincpu.mb@D86C=1E</action> <!-- Pt 1 collisions, Pt 2 stop gorilla falling -->
    </script>
    <script state="off">
      <action>maincpu.mb@CBE0=temp0 </action>
      <action>maincpu.mb@D86C=temp1 </action>
    </script>
  </cheat>

  <cheat desc="All Plants Safe">
    <script state="on">
      <action>temp0 =maincpu.mb@E278</action>
    </script>
    <script state="run">
      <action>maincpu.mb@E278=60</action>
    </script>
    <script state="off">
      <action>maincpu.mb@E278=temp0 </action>
    </script>
  </cheat>

  <cheat desc="-------------"/>
  <cheat desc="27. 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="28. Mr Mario (Mario Bros)"/>
  <cheat desc="---------------------------"/>

  <cheat desc="Infinite Bonus Time">
    <script state="run">
      <action>maincpu.pb@04B1=99</action>
    </script>
  </cheat>

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

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

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

  <cheat desc="-------------"/>
  <cheat desc="29. Olympic"/>
  <cheat desc="-------------"/>
  <cheat desc="--------------"/>
  <cheat desc="30. Wrecking"/>
  <cheat desc="--------------"/>
  <cheat desc="-------------"/>
  <cheat desc="31. Penguin"/>
  <cheat desc="-------------"/>
  <cheat desc="--------------"/>
  <cheat desc="32. Elevator"/>
  <cheat desc="--------------"/>
  <cheat desc="-------------"/>
  <cheat desc="33. Arabian"/>
  <cheat desc="-------------"/>

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

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

  <cheat desc="------------------------"/>
  <cheat desc="34. Zippy (Zippy Race)"/>
  <cheat desc="------------------------"/>

  <cheat desc="Infinite Fuel">
    <script state="run">
      <action>maincpu.pb@0021=1C</action>
    </script>
  </cheat>

  <cheat desc="------------------"/>
  <cheat desc="35. 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>

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