[mmahjong] Micom Mahjong

This forum is for posting M.A.M.E. Work In Progress "Arcade"cheats that are not quite ready for the prime time. If the cheats are buggy or the cheat descriptions are non-standard then please post them here. Help maybe given but there are no guarantees and they will only be added to the cheat file when the cheat file maintainer is happy with them.
Post Reply
jman
Posts: 865
Joined: Tue Dec 01, 2020 1:24 pm

[mmahjong] Micom Mahjong

Post by jman »

mmahjong is added in 0.247.

Code: Select all

<cheat desc="winning hand">
    <script state="on">
        <action>maincpu.mw@313b =             5200</action>
        <action>maincpu.pq@5200 = 0e01509f11520f21</action>
        <action>maincpu.pq@5208 = 1fc930b4cdb0ed00</action>
        <action>maincpu.pq@5210 = 2423232320201f1f</action>
        <action>maincpu.pq@5218 = 0000002525252424</action>
        <!--
        5200 | 21 0f 52 : ld   hl,$520F
        5203 | 11 9f 50 : ld   de,$509F
        5206 | 01 0e 00 : ld   bc,$000E
        5209 | ed b0    : ldir
        520b | cd b4 30 : call $30B4
        520e | c9       : ret
        520f - 521c     : tile table
        -->
    </script>
    <script state="off">
        <action>maincpu.mw@313b =             30b4</action>
        <action>maincpu.pq@5200 = 0000000000000000</action>
        <action>maincpu.pq@5208 = 0000000000000000</action>
        <action>maincpu.pq@5210 = 0000000000000000</action>
        <action>maincpu.pq@5218 = 0000000000000000</action>
    </script>
</cheat>
Basic codes are the following.

Code: Select all

<cheat desc="infinite time">
    <script state="run">
        <action>maincpu.pw@5076 = 58f0</action>
    </script>
</cheat>

<cheat desc="infinite score">
    <script state="run">
        <action>maincpu.pw@5078 = 7fff</action>
    </script>
</cheat>
Post Reply