[pandoras] Pandora's Palace

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: 843
Joined: Tue Dec 01, 2020 1:24 pm

[pandoras] Pandora's Palace

Post by jman »

Code: Select all

<cheat desc="no hit">
    <script state="on">
        <action>maincpu.mb@c26f =       20</action> <!-- flame -->
        <action>maincpu.mb@c1e6 =       00</action> <!-- fire -->
        <action>maincpu.md@c0a8 = 1600fa12</action> <!-- monster -->
        <action>maincpu.mb@b025 =       20</action> <!-- fall off platform -->
        <action>maincpu.mb@b1e4 =       00</action> <!-- jump off platform -->
    </script>
    <script state="off">
        <action>maincpu.mb@c26f =       27</action>
        <action>maincpu.mb@c1e6 =       0a</action>
        <action>maincpu.md@c0a8 = 102700f9</action>
        <action>maincpu.mb@b025 =       26</action>
        <action>maincpu.mb@b1e4 =       5a</action>
    </script>
</cheat>

<cheat desc="timer speed">
    <parameter>
        <item value="0x01">01 (slow)</item>
        <item value="0x10">02       </item>
        <item value="0x30">03       </item>
        <item value="0x80">04       </item>
        <item value="0xff">05 (fast)</item>
    </parameter>
    <script state="change">
        <action>maincpu.mb@b73a = param</action>
    </script>
    <script state="off">
        <action>maincpu.mb@b73a = 30</action>
    </script>
</cheat>

<cheat desc="sound test mode">
    <comment>set ram/rom check skip then reset the game (F3)</comment>
    <script state="on">
        <action>maincpu.md@858d =         7eff708d</action>
        <action>maincpu.mq@ff70 = 97819635918127f8</action>
        <action>maincpu.mq@ff78 = 810126020a808102</action>
        <action>maincpu.mq@ff80 = 26020c8081102604</action>
        <action>maincpu.mq@ff88 = d680200581042604</action>
        <action>maincpu.mq@ff90 = 5fbd8ced20daffff</action>
        <!--
        ff70 | 97 81    : STA  $81
        ff72 | 96 35    : LDA  $35   // read input
        ff74 | 91 81    : CMPA $81
        ff76 | 27 f8    : BEQ  $FF70
        ff78 | 81 01    : CMPA #$01
        ff7a | 26 02    : BNE  $FF7E
        ff7c | 0a 80    : DEC  $80   // decrease code
        ff7e | 81 02    : CMPA #$02
        ff80 | 26 02    : BNE  $FF84
        ff82 | 0c 80    : INC  $80   // increase code
        ff84 | 81 10    : CMPA #$10
        ff86 | 26 04    : BNE  $FF8C
        ff88 | d6 80    : LDB  $80   // play sound
        ff8a | 20 05    : BRA  $FF91
        ff8c | 81 04    : CMPA #$04
        ff8e | 26 04    : BNE  $FF94
        ff90 | 5f       : CLRB       // stop sound
        ff91 | bd 8c ed : JSR  $8CED // send sound code
        ff94 | 20 da    : BRA  $FF70
        -->
    </script>
    <script state="run">
        <output format="----- pandora's palace sound test mode -----" line="10" align="center" />
        <output format="left : decrease code"                         line="11" align="center" />
        <output format="right : increase code"                        line="12" align="center" />
        <output format="button 1 : play sound"                        line="13" align="center" />
        <output format="up : stop sound"                              line="14" align="center" />
        <output format="----------------------------"                 line="15" align="center" />
        <output format="&lt;&lt; sound code %2.2X &gt;&gt;"           line="17" align="center">
            <argument>maincpu.pb@6080</argument>
        </output>
    </script>
    <script state="off">
        <action>maincpu.md@858d =         8e145f8d</action>
        <action>maincpu.mq@ff70 = ffffffffffffffff</action>
        <action>maincpu.mq@ff78 = ffffffffffffffff</action>
        <action>maincpu.mq@ff80 = ffffffffffffffff</action>
        <action>maincpu.mq@ff88 = ffffffffffffffff</action>
        <action>maincpu.mq@ff90 = ffffffffffffffff</action>
    </script>
</cheat>

<cheat desc="skip ram/rom check">
    <script state="on">
        <action>maincpu.mw@81fb = 200b</action> <!-- ram 1 (read) -->
        <action>maincpu.mw@8212 = 200e</action> <!-- ram 1 (write) -->
        <action>maincpu.mw@8232 = 201e</action> <!-- ram 2 -->
        <action>maincpu.mw@8262 = 8334</action> <!-- rom -->
        <action>    sub.mw@e135 = 200b</action> <!-- ram 1 (read) -->
        <action>    sub.mw@e14c = 200e</action> <!-- ram 1 (write) -->
        <action>    sub.mw@e16c = 201e</action> <!-- ram 2 -->
        <action>    sub.mw@e19c = e22e</action> <!-- rom -->
    </script>
    <script state="off">
        <action>maincpu.mw@81fb = 8601</action>
        <action>maincpu.mw@8212 = 8601</action>
        <action>maincpu.mw@8232 = 1f43</action>
        <action>maincpu.mw@8262 = 82c7</action>
        <action>    sub.mw@e135 = 8601</action>
        <action>    sub.mw@e14c = 8601</action>
        <action>    sub.mw@e16c = 1f43</action>
        <action>    sub.mw@e19c = e1e0</action>
    </script>
</cheat>
Post Reply