[raflesiau] Rafflesia

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
CheatFinder Corporal
CheatFinder Corporal
Posts: 116
Joined: Tue Dec 01, 2020 1:24 pm

[raflesiau] Rafflesia

Post by jman »

raflesiau is (re)added in 0.235.

Code: Select all

<cheat desc="no hit">
    <script state="on">
        <action>maincpu.mb@60c0 = 69</action>
    </script>
    <script state="off">
        <action>maincpu.mb@60c0 = 4e</action>
    </script>
</cheat>

<cheat desc="auto fire">
    <script state="on">
        <action>maincpu.md@64b8 = c6c26fcb</action>
    </script>
    <script state="off">
        <action>maincpu.md@64b8 = c6ca20fe</action>
    </script>
</cheat>

<cheat desc="player speed">
    <parameter>
        <item value="0x0100">01 (slow)</item>
        <item value="0x0280">02       </item>
        <item value="0x0400">03       </item>
        <item value="0x0680">04       </item>
        <item value="0x0800">05 (fast)</item>
    </parameter>
    <script state="change">
        <action>maincpu.mw@257e =  param</action> <!-- up -->
        <action>maincpu.mw@258e = -param</action> <!-- down -->
        <action>maincpu.mw@2598 = -param</action> <!-- left -->
        <action>maincpu.mw@2588 =  param</action> <!-- right -->
        <action>maincpu.mw@2582 =  param</action> <!-- upper-right : up -->
        <action>maincpu.mw@2584 =  param</action> <!-- upper-right : right -->
        <action>maincpu.mw@258a = -param</action> <!-- lower-right : down -->
        <action>maincpu.mw@258c =  param</action> <!-- lower-right : right -->
        <action>maincpu.mw@2592 = -param</action> <!-- lower-left : down -->
        <action>maincpu.mw@2594 = -param</action> <!-- lower-left : left -->
        <action>maincpu.mw@259a =  param</action> <!-- upper-left : up -->
        <action>maincpu.mw@259c = -param</action> <!-- upper-left : left -->
    </script>
    <script state="off">
        <action>maincpu.mw@257e = 0300</action>
        <action>maincpu.mw@258e = fd00</action>
        <action>maincpu.mw@2598 = fe00</action>
        <action>maincpu.mw@2588 = 0200</action>
        <action>maincpu.mw@2582 = 0300</action>
        <action>maincpu.mw@2584 = 0180</action>
        <action>maincpu.mw@258a = fd00</action>
        <action>maincpu.mw@258c = 0180</action>
        <action>maincpu.mw@2592 = fd00</action>
        <action>maincpu.mw@2594 = fe80</action>
        <action>maincpu.mw@259a = 0300</action>
        <action>maincpu.mw@259c = fe80</action>
    </script>
</cheat>

<cheat desc="bullet speed">
    <parameter>
        <item value="0x02">01 (slow)</item>
        <item value="0x08">02       </item>
        <item value="0x10">03       </item>
        <item value="0x18">04       </item>
        <item value="0x20">05 (fast)</item>
    </parameter>
    <script state="change">
        <action>maincpu.mb@64e0 = param</action> <!-- shot 1 -->
        <action>maincpu.mb@64f0 = param</action> <!-- shot 2 -->
    </script>
    <script state="off">
        <action>maincpu.mb@64e0 = 08</action>
        <action>maincpu.mb@64f0 = 10</action>
    </script>
</cheat>

<cheat desc="sound test mode">
    <comment>reset the game (F3) to enter sound test mode</comment>
    <script state="on">
        <action>maincpu.mq@0066 = 6c1177803ec10021</action>
        <action>maincpu.mq@006e = fec847b800dbd500</action>
        <action>maincpu.mq@0076 = 0120bffe3501207f</action>
        <action>maincpu.mq@007e = 04187e0320fbfe34</action>
        <action>maincpu.mq@0086 = 00c914d3afc0fdfe</action>
        <!--
        0066 | 21 00 c1 : ld   hl,$c100 // sound code address
        0069 | 3e 80    : ld   a,$80    // initialize sound code
        006b | 77       : ld   (hl),a
        006c | 11 6c 00 : ld   de,$006c
        006f | d5       : push de
        0070 | db 00    : in   a,($00)  // read input
        0072 | b8       : cp   b
        0073 | 47       : ld   b,a
        0074 | c8       : ret  z
        0075 | fe 7f    : cp   $7f
        0077 | 20 01    : jr   nz,$007a
        0079 | 35       : dec  (hl)     // decrease code
        007a | fe bf    : cp   $bf
        007c | 20 01    : jr   nz,$007f
        007e | 34       : inc  (hl)     // increase code
        007f | fe fb    : cp   $fb
        0081 | 20 03    : jr   nz,$0086
        0083 | 7e       : ld   a,(hl)   // play sound
        0084 | 18 04    : jr   $008a
        0086 | fe fd    : cp   $fd
        0088 | c0       : ret  nz
        0089 | af       : xor  a        // stop sound
        008a | d3 14    : out  ($14),a  // send sound code
        008c | c9       : ret
        -->
    </script>
    <script state="run">
        <output format="----- rafflesia sound test mode -----" line="10" align="center" />
        <output format="left : code decrement"                 line="11" align="center" />
        <output format="right : code increment"                line="12" align="center" />
        <output format="button 1 : play sound"                 line="13" align="center" />
        <output format="button 2 : 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@c100</argument>
        </output>
    </script>
    <script state="off">
        <action>maincpu.mq@0066 = 01accdc04532013e</action>
        <action>maincpu.mq@006e = 86cbc039210676c3</action>
        <action>maincpu.mq@0076 = c90031f323189ecb</action>
        <action>maincpu.mq@007e = 210b2040e6c0393a</action>
        <action>maincpu.mq@0086 = 0090da01d67ec028</action>
    </script>
</cheat>
Post Reply