[asukaj] Asuka & Asuka

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

[asukaj] Asuka & Asuka

Post by jman »

Code: Select all

<cheat desc="P1 no hit">
    <script state="on">
        <action>maincpu.mb@15a72 = 60</action>
    </script>
    <script state="off">
        <action>maincpu.mb@15a72 = 66</action>
    </script>
</cheat>

<cheat desc="P2 no hit">
    <script state="on">
        <action>maincpu.mb@15a82 = 60</action>
    </script>
    <script state="off">
        <action>maincpu.mb@15a82 = 66</action>
    </script>
</cheat>

<cheat desc="P1 auto fire">
    <script state="on">
        <action>maincpu.mb@0ecbe = 60</action> <!-- "S" -->
        <action>maincpu.mb@1214e = 60</action> <!-- "L","B" -->
    </script>
    <script state="off">
        <action>maincpu.mb@0ecbe = 66</action>
        <action>maincpu.mb@1214e = 66</action>
    </script>
</cheat>

<cheat desc="P2 auto fire">
    <script state="on">
        <action>maincpu.mb@0f434 = 60</action> <!-- "S" -->
        <action>maincpu.mb@12b66 = 60</action> <!-- "L","B" -->
    </script>
    <script state="off">
        <action>maincpu.mb@0f434 = 66</action>
        <action>maincpu.mb@12b66 = 66</action>
    </script>
</cheat>

<cheat desc="P1 player speed">
    <parameter>
        <item value="0x52">01 (slow)</item>
        <item value="0x54">02       </item>
        <item value="0x58">03       </item>
        <item value="0x5c">04       </item>
        <item value="0x50">05 (fast)</item>
    </parameter>
    <script state="change">
        <action>maincpu.mb@107d0 = param + 1</action> <!-- down -->
        <action>maincpu.mb@107f8 = param    </action> <!-- up -->
        <action>maincpu.mb@1082e = param + 1</action> <!-- left -->
        <action>maincpu.mb@10860 = param    </action> <!-- right -->
        <action>maincpu.mb@1089e = param + 1</action> <!-- lower-left : left -->
        <action>maincpu.mb@108a4 = param + 1</action> <!-- lower-left : down -->
        <action>maincpu.mb@108e2 = param    </action> <!-- lower-right : right -->
        <action>maincpu.mb@108e8 = param + 1</action> <!-- lower-right : down -->
        <action>maincpu.mb@10926 = param + 1</action> <!-- upper-left : left -->
        <action>maincpu.mb@1092c = param    </action> <!-- upper-left : up -->
        <action>maincpu.mb@1096a = param    </action> <!-- upper-right : right -->
        <action>maincpu.mb@10970 = param    </action> <!-- upper-right : up -->
    </script>
    <script state="off">
        <action>maincpu.mb@107d0 = 55</action>
        <action>maincpu.mb@107f8 = 56</action>
        <action>maincpu.mb@1082e = 55</action>
        <action>maincpu.mb@10860 = 54</action>
        <action>maincpu.mb@1089e = 55</action>
        <action>maincpu.mb@108a4 = 55</action>
        <action>maincpu.mb@108e2 = 54</action>
        <action>maincpu.mb@108e8 = 55</action>
        <action>maincpu.mb@10926 = 55</action>
        <action>maincpu.mb@1092c = 54</action>
        <action>maincpu.mb@1096a = 54</action>
        <action>maincpu.mb@10970 = 54</action>
    </script>
</cheat>

<cheat desc="P2 player speed">
    <parameter>
        <item value="0x52">01 (slow)</item>
        <item value="0x54">02       </item>
        <item value="0x58">03       </item>
        <item value="0x5c">04       </item>
        <item value="0x50">05 (fast)</item>
    </parameter>
    <script state="change">
        <action>maincpu.mb@10a42 = param + 1</action> <!-- down -->
        <action>maincpu.mb@10a6a = param    </action> <!-- up -->
        <action>maincpu.mb@10aa0 = param + 1</action> <!-- left -->
        <action>maincpu.mb@10ad2 = param    </action> <!-- right -->
        <action>maincpu.mb@10b10 = param + 1</action> <!-- lower-left : left -->
        <action>maincpu.mb@10b16 = param + 1</action> <!-- lower-left : down -->
        <action>maincpu.mb@10b54 = param    </action> <!-- lower-right : right -->
        <action>maincpu.mb@10b5a = param + 1</action> <!-- lower-right : down -->
        <action>maincpu.mb@10b98 = param + 1</action> <!-- upper-left : left -->
        <action>maincpu.mb@10b9e = param    </action> <!-- upper-left : up -->
        <action>maincpu.mb@10bdc = param    </action> <!-- upper-right : right -->
        <action>maincpu.mb@10be2 = param    </action> <!-- upper-right : up -->
    </script>
    <script state="off">
        <action>maincpu.mb@10a42 = 55</action>
        <action>maincpu.mb@10a6a = 56</action>
        <action>maincpu.mb@10aa0 = 55</action>
        <action>maincpu.mb@10ad2 = 54</action>
        <action>maincpu.mb@10b10 = 55</action>
        <action>maincpu.mb@10b16 = 55</action>
        <action>maincpu.mb@10b54 = 54</action>
        <action>maincpu.mb@10b5a = 55</action>
        <action>maincpu.mb@10b98 = 55</action>
        <action>maincpu.mb@10b9e = 54</action>
        <action>maincpu.mb@10bdc = 54</action>
        <action>maincpu.mb@10be2 = 54</action>
    </script>
</cheat>

<cheat desc="bullet speed">
    <parameter>
        <item value="0x01">01 (slow)</item>
        <item value="0x06">02       </item>
        <item value="0x0c">03       </item>
        <item value="0x12">04       </item>
        <item value="0x18">05 (fast)</item>
    </parameter>
    <script state="change">
        <action>maincpu.mb@1113b = param</action>
    </script>
    <script state="off">
        <action>maincpu.mb@1113b = 07</action>
    </script>
</cheat>

<cheat desc="sound test mode">
    <comment>reset the game (F3) to enter sound test mode</comment>
    <script state="on">
        <action>maincpu.md@01336 =         0003fa60</action>
        <action>maincpu.mq@3fa60 = 41f90010010033c0</action>
        <action>maincpu.mq@3fa68 = 0040000014011239</action>
        <action>maincpu.mq@3fa70 = 00400005b40167ee</action>
        <action>maincpu.mq@3fa78 = 0c0100fb66025310</action>
        <action>maincpu.mq@3fa80 = 0c0100f766025210</action>
        <action>maincpu.mq@3fa88 = 0c0100fd66040410</action>
        <action>maincpu.mq@3fa90 = 00100c0100fe6604</action>
        <action>maincpu.mq@3fa98 = 061000100c0100ef</action>
        <action>maincpu.mq@3faa0 = 6604101060080c01</action>
        <action>maincpu.mq@3faa8 = 00df660642004eb8</action>
        <action>maincpu.mq@3fab0 = 16ee60b2ffffffff</action>
        <!--
        03fa60 | 41f9 0010 0100 : lea    $100100.l,A0 // sound code address
        03fa66 | 33c0 0040 0000 : move.w D0,$400000.l // watchdog
        03fa6c | 1401           : move.b D1,D2
        03fa6e | 1239 0040 0005 : move.b $400005.l,D1 // read input
        03fa74 | b401           : cmp.b  D1,D2
        03fa76 | 67ee           : beq    $3fa66
        03fa78 | 0c01 00fb      : cmpi.b #-$5,D1
        03fa7c | 6602           : bne    $3fa80
        03fa7e | 5310           : subq.b #1,(A0)      // decrease code -01
        03fa80 | 0c01 00f7      : cmpi.b #-$9,D1
        03fa84 | 6602           : bne    $3fa88
        03fa86 | 5210           : addq.b #1,(A0)      // increase code +01
        03fa88 | 0c01 00fd      : cmpi.b #-$3,D1
        03fa8c | 6604           : bne    $3fa92
        03fa8e | 0410 0010      : subi.b #$10,(A0)    // decrease code -10
        03fa92 | 0c01 00fe      : cmpi.b #-$2,D1
        03fa96 | 6604           : bne    $3fa9c
        03fa98 | 0610 0010      : addi.b #$10,(A0)    // increase code +10
        03fa9c | 0c01 00ef      : cmpi.b #-$11,D1
        03faa0 | 6604           : bne    $3faa6
        03faa2 | 1010           : move.b (A0),D0      // play sound
        03faa4 | 6008           : bra    $3faae
        03faa6 | 0c01 00df      : cmpi.b #-$21,D1
        03faaa | 6606           : bne    $3fab2
        03faac | 4200           : clr.b  D0           // stop sound
        03faae | 4eb8 16ee      : jsr    $16ee.w      // send sound code
        03fab2 | 60b2           : bra    $3fa66
        -->
    </script>
    <script state="run">
        <output format="----- asuka &amp; asuka 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@100100</argument>
        </output>
    </script>
    <script state="off">
        <action>maincpu.md@01336 =         00005aaa</action>
        <action>maincpu.mq@3fa60 = ffffffffffffffff</action>
        <action>maincpu.mq@3fa68 = ffffffffffffffff</action>
        <action>maincpu.mq@3fa70 = ffffffffffffffff</action>
        <action>maincpu.mq@3fa78 = ffffffffffffffff</action>
        <action>maincpu.mq@3fa80 = ffffffffffffffff</action>
        <action>maincpu.mq@3fa88 = ffffffffffffffff</action>
        <action>maincpu.mq@3fa90 = ffffffffffffffff</action>
        <action>maincpu.mq@3fa98 = ffffffffffffffff</action>
        <action>maincpu.mq@3faa0 = ffffffffffffffff</action>
        <action>maincpu.mq@3faa8 = ffffffffffffffff</action>
        <action>maincpu.mq@3fab0 = ffffffffffffffff</action>
    </script>
</cheat>
Post Reply