<mamecheat version="1">

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

  <cheat desc=" "/>
  <cheat desc="The winning hand cheat must be activated when there are 14 tiles in your"/>
  <cheat desc="hand, then press the RON key ('Z' by default). The tiles do not visually"/>
  <cheat desc="change until you make a move."/>
  <cheat desc=" "/>

  <cheat desc="Always winning hand (TEST)"> <comment>This cheat hasn't been fully tested, report any problems on the cheat forums</comment>
    <script state="run">
      <action>maincpu.pd@A200=00000002</action>
      <action>maincpu.pd@A204=00000000</action>
      <action>maincpu.pb@A208=01</action>
      <action>maincpu.pd@A210=00000001</action>
      <action>maincpu.pd@A214=00000000</action>
      <action>maincpu.pb@A218=01</action>
      <action>maincpu.pd@A220=00000001</action>
      <action>maincpu.pd@A224=00000000</action>
      <action>maincpu.pb@A228=01</action>
      <action>maincpu.pd@A230=01010101</action>
      <action>maincpu.pd@A234=00010101|(maincpu.pd@A234 BAND ~00FFFFFF)</action>
    </script>
  </cheat>

  <cheat desc="Get winning hand Now! (TEST)"> <comment>This cheat hasn't been fully tested, report any problems on the cheat forums</comment>
    <script state="on">
      <action>maincpu.pd@A200=00000002</action>
      <action>maincpu.pd@A204=00000000</action>
      <action>maincpu.pb@A208=01</action>
      <action>maincpu.pd@A210=00000001</action>
      <action>maincpu.pd@A214=00000000</action>
      <action>maincpu.pb@A218=01</action>
      <action>maincpu.pd@A220=00000001</action>
      <action>maincpu.pd@A224=00000000</action>
      <action>maincpu.pb@A228=01</action>
      <action>maincpu.pd@A230=01010101</action>
      <action>maincpu.pd@A234=00010101|(maincpu.pd@A234 BAND ~00FFFFFF)</action>
    </script>
  </cheat>

  <cheat desc="Watch ALL 14 tiles - Player">
    <script state="run">
      <output format="%02X %02X %02X %02X %02X %02X %02X %02X %02X %02X %02X %02X %02X %02X">
        <argument count="14">maincpu.pb@(A381 + argindex)</argument>
      </output>
    </script>
  </cheat>

  <cheat desc="Watch ALL 14 tiles - C.P.U.">
    <script state="run">
      <output format="%02X %02X %02X %02X %02X %02X %02X %02X %02X %02X %02X %02X %02X %02X">
        <argument count="14">maincpu.pb@(A181 + argindex)</argument>
      </output>
    </script>
  </cheat>

  <cheat desc=" "/>
  <cheat desc="Here is the look-up list for the above watches."/>
  <cheat desc="value     common name    chinese"/>
  <cheat desc="??h       - no tile -"/>
  <cheat desc="00h-08h   1-9 'chars'    1-9 'wan'"/>
  <cheat desc="10h-18h   1-9 'dots'     1-9 'tung'"/>
  <cheat desc="20h-28h   1-9 'bamboo'   1-9 'tiao'"/>
  <cheat desc="30h-33h   East,South,West+North 'wind'"/>
  <cheat desc="34h-36h   White,Green+Red 'dragon'"/>

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