[daioh] Daioh

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

[daioh] Daioh

Post by jman »

Code: Select all

<cheat desc="no hit">
    <script state="on">
        <action>maincpu.mb@a6e7 = 2c</action>
    </script>
    <script state="off">
        <action>maincpu.mb@a6e7 = 02</action>
    </script>
</cheat>

<cheat desc="auto fire">
    <script state="on">
        <action>maincpu.mw@f6f0 = 4e71</action>
    </script>
    <script state="off">
        <action>maincpu.mw@f6f0 = 6204</action>
    </script>
</cheat>

<cheat desc="player speed">
    <parameter>
        <item value="0x01">01 (slow)</item>
        <item value="0x02">02       </item>
        <item value="0x04">03       </item>
        <item value="0x06">04       </item>
        <item value="0x08">05 (fast)</item>
    </parameter>
    <script state="on">
        <action>maincpu.md@0f5a8 =         00040eb0</action>
        <action>maincpu.mq@40eb0 = 102c001061161940</action>
        <action>maincpu.mq@40eb8 = 0010102c0012610c</action>
        <action>maincpu.mq@40ec0 = 194000124eb90000</action>
        <action>maincpu.mq@40ec8 = 9ea04e7572054a00</action>
        <action>maincpu.mq@40ed0 = 67066a0244011001</action>
        <action>maincpu.mq@40ed8 = 4e75ffffffffffff</action>
        <!--
        40eb0 | 102c 0010      : move.b ($10,A4),D0
        40eb4 | 6116           : bsr    $40ecc
        40eb6 | 1940 0010      : move.b D0,($10,A4)
        40eba | 102c 0012      : move.b ($12,A4),D0
        40ebe | 610c           : bsr    $40ecc
        40ec0 | 1940 0012      : move.b D0,($12,A4)
        40ec4 | 4eb9 0000 9ea0 : jsr    $9ea0.l
        40eca | 4e75           : rts
        40ecc | 72xx           : moveq  #$xx,D1
        40ece | 4a00           : tst.b  D0
        40ed0 | 6706           : beq    $40ed8
        40ed2 | 6a02           : bpl    $40ed6
        40ed4 | 4401           : neg.b  D1
        40ed6 | 1001           : move.b D1,D0
        40ed8 | 4e75           : rts
        -->
    </script>
    <script state="change">
        <action>maincpu.mb@40ecd = param</action>
    </script>
    <script state="off">
        <action>maincpu.md@0f5a8 =         00009ea0</action>
        <action>maincpu.mq@40eb0 = ffffffffffffffff</action>
        <action>maincpu.mq@40eb8 = ffffffffffffffff</action>
        <action>maincpu.mq@40ec0 = ffffffffffffffff</action>
        <action>maincpu.mq@40ec8 = ffffffffffffffff</action>
        <action>maincpu.mq@40ed0 = ffffffffffffffff</action>
        <action>maincpu.mq@40ed8 = ffffffffffffffff</action>
    </script>
</cheat>

<cheat desc="bullet speed - red">
    <parameter>
        <item value="0x06">01 (slow)</item>
        <item value="0x0c">02       </item>
        <item value="0x12">03       </item>
        <item value="0x18">04       </item>
        <item value="0x1e">05 (fast)</item>
    </parameter>
    <script state="change">
        <action>maincpu.mb@fbf2 = param</action>
        <action>maincpu.mb@fd4c = param</action>
        <action>maincpu.mb@fd5e = param</action>
        <action>maincpu.mb@fdee = param</action>
        <action>maincpu.mb@fe08 = param</action>
        <action>maincpu.mb@fe30 = param</action>
        <action>maincpu.mb@fe4a = param</action>
    </script>
    <script state="off">
        <action>maincpu.mb@fbf2 = 0d</action>
        <action>maincpu.mb@fd4c = 0c</action>
        <action>maincpu.mb@fd5e = 0c</action>
        <action>maincpu.mb@fdee = 0c</action>
        <action>maincpu.mb@fe08 = 0b</action>
        <action>maincpu.mb@fe30 = 0b</action>
        <action>maincpu.mb@fe4a = 0c</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@08c3e = 4ef900040ee04e41</action>
        <action>maincpu.mq@40ee0 = 41ed100043f90002</action>
        <action>maincpu.mq@40ee8 = 921a45e9004e1401</action>
        <action>maincpu.mq@40ef0 = 122d770fb40167f6</action>
        <action>maincpu.mq@40ef8 = 0c0100fe66025310</action>
        <action>maincpu.mq@40f00 = 0c0100fd66025210</action>
        <action>maincpu.mq@40f08 = 0c0100f766040410</action>
        <action>maincpu.mq@40f10 = 00100c0100fb6604</action>
        <action>maincpu.mq@40f18 = 061000100c0100ef</action>
        <action>maincpu.mq@40f20 = 661210100c00000e</action>
        <action>maincpu.mq@40f28 = 64044e9160060400</action>
        <action>maincpu.mq@40f30 = 000e4e920c0100df</action>
        <action>maincpu.mq@40f38 = 660642004e914e92</action>
        <action>maincpu.mq@40f40 = 60acffffffffffff</action>
        <!--
        40ee0 | 41ed 1000      : lea    ($1000,A5),A0 // sound code address
        40ee4 | 43f9 0002 921a : lea    $2921a.l,A1   // subroutine for music
        40eea | 45e9 004e      : lea    ($4e,A1),A2   // subroutine for sfx
        40eee | 1401           : move.b D1,D2
        40ef0 | 122d 770f      : move.b ($770f,A5),D1 // read input
        40ef4 | b401           : cmp.b  D1,D2
        40ef6 | 67f6           : beq    $40eee
        40ef8 | 0c01 00fe      : cmpi.b #-$2,D1
        40efc | 6602           : bne    $40f00
        40efe | 5310           : subq.b #1,(A0)       // decrease code -01
        40f00 | 0c01 00fd      : cmpi.b #-$3,D1
        40f04 | 6602           : bne    $40f08
        40f06 | 5210           : addq.b #1,(A0)       // increase code +01
        40f08 | 0c01 00f7      : cmpi.b #-$9,D1
        40f0c | 6604           : bne    $40f12
        40f0e | 0410 0010      : subi.b #$10,(A0)     // decrease code -10
        40f12 | 0c01 00fb      : cmpi.b #-$5,D1
        40f16 | 6604           : bne    $40f1c
        40f18 | 0610 0010      : addi.b #$10,(A0)     // increase code +10
        40f1c | 0c01 00ef      : cmpi.b #-$11,D1
        40f20 | 6612           : bne    $40f34
        40f22 | 1010           : move.b (A0),D0       // play sound
        40f24 | 0c00 000e      : cmpi.b #$e,D0
        40f28 | 6404           : bcc    $40f2e
        40f2a | 4e91           : jsr    (A1)          // music
        40f2c | 6006           : bra    $40f34
        40f2e | 0400 000e      : subi.b #$e,D0
        40f32 | 4e92           : jsr    (A2)          // sfx
        40f34 | 0c01 00df      : cmpi.b #-$21,D1
        40f38 | 6606           : bne    $40f40
        40f3a | 4200           : clr.b  D0            // stop sound
        40f3c | 4e91           : jsr    (A1)
        40f3e | 4e92           : jsr    (A2)
        40f40 | 60ac           : bra    $40eee
        -->
    </script>
    <script state="run">
        <output format="----- daioh sound test mode -----"  line="10" align="center" />
        <output format="left : decrease code -01"           line="11" align="center" />
        <output format="right : increase code +01"          line="12" align="center" />
        <output format="up : increase code +10"             line="13" align="center" />
        <output format="down : decrease code -10"           line="14" align="center" />
        <output format="button 1 : play sound"              line="15" align="center" />
        <output format="button 2 : stop sound"              line="16" align="center" />
        <output format="----------------------------"       line="17" align="center" />
        <output format="&lt;&lt; sound code %2.2X &gt;&gt;" line="19" align="center">
            <argument>maincpu.pb@101000</argument>
        </output>
    </script>
    <script state="off">
        <action>maincpu.mq@08c3e = 4eb90000d31a4e41</action>
        <action>maincpu.mq@40ee0 = ffffffffffffffff</action>
        <action>maincpu.mq@40ee8 = ffffffffffffffff</action>
        <action>maincpu.mq@40ef0 = ffffffffffffffff</action>
        <action>maincpu.mq@40ef8 = ffffffffffffffff</action>
        <action>maincpu.mq@40f00 = ffffffffffffffff</action>
        <action>maincpu.mq@40f08 = ffffffffffffffff</action>
        <action>maincpu.mq@40f10 = ffffffffffffffff</action>
        <action>maincpu.mq@40f18 = ffffffffffffffff</action>
        <action>maincpu.mq@40f20 = ffffffffffffffff</action>
        <action>maincpu.mq@40f28 = ffffffffffffffff</action>
        <action>maincpu.mq@40f30 = ffffffffffffffff</action>
        <action>maincpu.mq@40f38 = ffffffffffffffff</action>
        <action>maincpu.mq@40f40 = ffffffffffffffff</action>
    </script>
</cheat>
Post Reply