<mamecheat version="1">

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

  <cheat desc="Infinite Lives">
    <script state="run">
      <action>maincpu.pw@04E14=0506</action>
    </script>
  </cheat>

  <cheat desc="Invincibility">
    <script state="on">
      <action>temp0 =maincpu.md@11774</action>
      <action>temp1 =maincpu.md@13CDF</action>
      <action>temp2 =maincpu.md@13CE3</action>
      <action>temp3 =maincpu.md@13CE7</action>
    </script>
    <script state="run">
      <action>maincpu.md@11774=323CE0C3</action>
      <action>maincpu.md@13CDF=0420A700</action> <!-- 1st = jp $3CE0, 2nd = and a/jp nz, $3CE7 -->
      <action>maincpu.md@13CE3=1764C3AF</action> <!-- xor a/jp $1764 (Normal Ghost) -->
      <action>maincpu.md@13CE7=1777C3AF</action> <!-- xor a/jp $1777 (Blue Ghost) -->
    </script>
    <script state="off">
      <action>maincpu.md@11774=temp0 </action>
      <action>maincpu.md@13CDF=temp1 </action>
      <action>maincpu.md@13CE3=temp2 </action>
      <action>maincpu.md@13CE7=temp3 </action>
    </script>
  </cheat>

  <cheat desc="Move Manually">
    <script state="on">
      <action>temp0 =maincpu.md@118C5</action>
      <action>temp1 =maincpu.md@13E60</action>
      <action>temp2 =maincpu.md@13E64</action>
      <action>temp3 =maincpu.md@13E68</action>
      <action>temp4 =maincpu.md@13E6C</action>
    </script>
    <script state="run">
      <action>maincpu.md@118C5=CB3E60C3</action> <!-- This ROM cheat was made by nolberto82 -->
      <action>maincpu.md@13E60=2F50003A</action>
      <action>maincpu.md@13E64=04280FE6</action>
      <action>maincpu.md@13E68=18C8C32F</action>
      <action>maincpu.md@13E6C=001A13C3</action>
    </script>
    <script state="off">
      <action>maincpu.md@118C5=temp0 </action>
      <action>maincpu.md@13E60=temp1 </action>
      <action>maincpu.md@13E64=temp2 </action>
      <action>maincpu.md@13E68=temp3 </action>
      <action>maincpu.md@13E6C=temp4 </action>
    </script>
  </cheat>

  <cheat desc="Enable Speed Hack"> <comment>This will greatly speed up your character.</comment>
    <script state="on">
      <action>temp0 =maincpu.mw@1180B</action>
    </script>
    <script state="run">
      <action>maincpu.mw@1180B=3218</action>
    </script>
    <script state="off">
      <action>maincpu.mw@1180B=temp0 </action>
    </script>
  </cheat>

  <cheat desc="Finish this Level Now!">
    <script state="on">
      <action condition="maincpu.pb@430A==F4">maincpu.pb@4E0E=E0</action> <!-- Ms. Pac Board 0 -->
      <action condition="maincpu.pb@430A==EB">maincpu.pb@4E0E=F4</action> <!-- Ms. Pac Board 1 -->
      <action condition="maincpu.pb@430A==E9">maincpu.pb@4E0E=F2</action> <!-- Ms. Pac Board 2 -->
      <action condition="maincpu.pb@430A==DF">maincpu.pb@4E0E=EE</action> <!-- Ms. Pac Board 3 -->
    </script>
  </cheat>

  <cheat desc="Select Starting Level"> <comment>Note: Maze colour may not be correct for the first life (this is only the case for some of the mspacman sets). For the best effect deactivate this cheat after you've started the Level</comment>
    <parameter>
      <item value="0x01">Strawberry</item>
      <item value="0x02">Orange</item>
      <item value="0x03">Pretzel</item>
      <item value="0x04">Apple</item>
      <item value="0x05">Pear</item>
      <item value="0x06">Banana</item>
      <item value="0x07">Multifruit 1a</item>
      <item value="0x08">Multifruit 1b</item>
      <item value="0x09">Multifruit 2</item>
    </parameter>
    <script state="run">
      <action>maincpu.rq@10F40=0693C34E1332003E</action>
      <action>maincpu.rd@10690=3A0F40C3</action>
      <action>maincpu.rb@10F41=param</action>
      <action condition="maincpu.pb@4E13==00">maincpu.pb@4E13=param</action>
      <action condition="maincpu.pb@4E0A==68">maincpu.pb@4E0A=param + 0x68</action> <!-- NORMAL Difficulty -->
      <action condition="maincpu.pb@4E0A==7D">maincpu.pb@4E0A=param + 0x7D</action> <!-- HARD Difficulty -->
    </script>
    <script state="off">
      <action>maincpu.rq@10F40=00</action>
      <action>maincpu.rd@10690=3A4E1332</action>
    </script>
  </cheat>

  <cheat desc="Select Ghost Changeback Speed">
    <parameter>
      <item value="0x0000">Stay blue until eaten</item>
      <item value="0x0258">Slow</item>
      <item value="0x0168">Moderate</item>
      <item value="0x00F0">Quick</item>
      <item value="0x0078">Lightning</item>
      <item value="0x0001">No change to blue</item>
    </parameter>
    <script state="run">
      <action>maincpu.pw@04DBD=param</action>
    </script>
  </cheat>

  <cheat desc="---------------------"/>
  <cheat desc="Ghost Status Cheats"/>
  <cheat desc="---------------------"/>

  <cheat desc="Red always blue">
    <script state="run">
      <action>maincpu.pb@04DA7=01</action>
    </script>
  </cheat>

  <cheat desc="Pink always blue">
    <script state="run">
      <action>maincpu.pb@04DA8=01</action>
    </script>
  </cheat>

  <cheat desc="Green always blue">
    <script state="run">
      <action>maincpu.pb@04DA9=01</action>
    </script>
  </cheat>

  <cheat desc="Orange always blue">
    <script state="run">
      <action>maincpu.pb@04DAA=01</action>
    </script>
  </cheat>

  <cheat desc="Ghosts Always Edible (No Pts)">
    <script state="run">
      <action>maincpu.pb@04DA5=00</action>
    </script>
  </cheat>

  <cheat desc=" "/>

  <cheat desc="Sound Test">
    <parameter min="1" max="17" step="1"/>
    <script state="change">
      <action condition="maincpu.pb@4E6E==00">maincpu.pb@4E6E=01</action>
      <action>maincpu.pb@4ECC=0</action>
      <action>maincpu.pb@4EDC=0</action>
      <action>maincpu.pb@4E9C=0</action>
      <action>maincpu.pb@4EAC=0</action>
      <action>maincpu.pb@4EBC=0</action>
      <action>maincpu.pb@4E0A=0</action>
      <action>maincpu.pb@4E13=0</action>
      <action condition="(param==1)">maincpu.pb@4ECC=1</action>
      <action condition="(param==1)">maincpu.pb@4EDC=1</action>
      <action condition="(param==2)">maincpu.pb@4E0A=69</action>
      <action condition="(param==2)">maincpu.pb@4E13=1</action>
      <action condition="(param==3)">maincpu.pb@4E0A=6c</action>
      <action condition="(param==3)">maincpu.pb@4E13=4</action>
      <action condition="(param==4)">maincpu.pb@4E0A=70</action>
      <action condition="(param==4)">maincpu.pb@4E13=8</action>
      <action condition="(param GE 2) and (param LE 4)">maincpu.pb@4ECC=2</action>
      <action condition="(param GE 2) and (param LE 4)">maincpu.pb@4EDC=2</action>
      <action condition="(param GE 5) and (param LE 6)">maincpu.pb@4E9C=80>>(C-param)</action>
      <action condition="(param GE 7) and (param LE C)">maincpu.pb@4EAC=80>>(D-param)</action>
      <action condition="(param GE D)">maincpu.pb@4EBC=80>>(14-param)</action>
    </script>
  </cheat>

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