[xexexj] Xexex

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

[xexexj] Xexex

Post by jman »

Code: Select all

<cheat desc="no hit">
    <script state="on">
        <!-- objects -->
        <action>maincpu.md@07dea =         0007ebf0</action>
        <action>maincpu.md@07f14 =         0007ebfc</action>
        <action>maincpu.mq@7ebf0 = 611667064eb90000</action>
        <action>maincpu.mq@7ebf8 = 7e024e75610a6706</action>
        <action>maincpu.mq@7ec00 = 4eb900007f2a4e75</action>
        <action>maincpu.mq@7ec08 = 2a56bbfc00092700</action>
        <action>maincpu.mq@7ec10 = 6614162800220c03</action>
        <action>maincpu.mq@7ec18 = 001f670a0c03003f</action>
        <action>maincpu.mq@7ec20 = 67040c0300ff4e75</action>
        <!--
        7ebf0 | 6116           : bsr     $7ec08
        7ebf2 | 6706           : beq     $7ebfa
        7ebf4 | 4eb9 0000 7e02 : jsr     $7e02.l
        7ebfa | 4e75           : rts
        7ebfc | 610a           : bsr     $7ec08
        7ebfe | 6706           : beq     $7ec06
        7ec00 | 4eb9 0000 7f2a : jsr     $7f2a.l
        7ec06 | 4e75           : rts
        7ec08 | 2a56           : movea.l (A6),A5
        7ec0a | bbfc 0009 2700 : cmpa.l  #$92700,A5
        7ec10 | 6614           : bne     $7ec26
        7ec12 | 1628 0022      : move.b  ($22,A0),D3
        7ec16 | 0c03 001f      : cmpi.b  #$1f,D3
        7ec1a | 670a           : beq     $7ec26
        7ec1c | 0c03 003f      : cmpi.b  #$3f,D3
        7ec20 | 6704           : beq     $7ec26
        7ec22 | 0c03 00ff      : cmpi.b  #-$1,D3
        7ec26 | 4e75           : rts
        -->
        <!-- background -->
        <action>maincpu.mw@64f8c = 0002</action>
        <action>maincpu.mw@64fb2 = 0002</action>
    </script>
    <script state="off">
        <action>maincpu.md@07dea =         00007e00</action>
        <action>maincpu.md@07f14 =         00007f28</action>
        <action>maincpu.mq@7ebf0 = ffffffffffffffff</action>
        <action>maincpu.mq@7ebf8 = ffffffffffffffff</action>
        <action>maincpu.mq@7ec00 = ffffffffffffffff</action>
        <action>maincpu.mq@7ec08 = ffffffffffffffff</action>
        <action>maincpu.mq@7ec10 = ffffffffffffffff</action>
        <action>maincpu.mq@7ec18 = ffffffffffffffff</action>
        <action>maincpu.mq@7ec20 = ffffffffffffffff</action>
        <action>maincpu.mw@64f8c =             a53e</action>
        <action>maincpu.mw@64fb2 =             a518</action>
    </script>
</cheat>

<cheat desc="auto fire">
    <script state="on">
        <action>maincpu.mb@68a8f = 02</action> <!-- fire in charging -->
        <action>maincpu.mb@68aae = 60</action> <!-- timer -->
    </script>
    <script state="off">
        <action>maincpu.mb@68a8f = 28</action>
        <action>maincpu.mb@68aae = 67</action>
    </script>
</cheat>

<cheat desc="player speed">
    <parameter>
        <item value="0x00008000">01 (slow)</item>
        <item value="0x00010000">02       </item>
        <item value="0x00038000">03       </item>
        <item value="0x00050000">04       </item>
        <item value="0x00078000">05 (fast)</item>
    </parameter>
    <script state="on">
        <action>maincpu.mq@692e2 = 4eb90007ec304e71</action>
        <action>maincpu.mq@7ec30 = 243c000000002028</action>
        <action>maincpu.mq@7ec38 = 006467066a024482</action>
        <action>maincpu.mq@7ec40 = 2002243c00000000</action>
        <action>maincpu.mq@7ec48 = 2228006067066a02</action>
        <action>maincpu.mq@7ec50 = 448222024e75ffff</action>
        <!--
        7ec30 | 243c xxxx xxxx : move.l #$xxxx,D2
        7ec36 | 2028 0064      : move.l ($64,A0),D0
        7ec3a | 6706           : beq    $7ec42
        7ec3c | 6a02           : bpl    $7ec40
        7ec3e | 4482           : neg.l  D2
        7ec40 | 2002           : move.l D2,D0
        7ec42 | 243c xxxx xxxx : move.l #$xxxx,D2
        7ec48 | 2228 0060      : move.l ($60,A0),D1
        7ec4c | 6706           : beq    $7ec54
        7ec4e | 6a02           : bpl    $7ec52
        7ec50 | 4482           : neg.l  D2
        7ec52 | 2202           : move.l D2,D1
        7ec54 | 4e75           : rts
        -->
    </script>
    <script state="change">
        <action>maincpu.md@7ec32 = param</action>
        <action>maincpu.md@7ec44 = param</action>
    </script>
    <script state="off">
        <action>maincpu.mq@692e2 = 2028006422280060</action>
        <action>maincpu.mq@7ec30 = ffffffffffffffff</action>
        <action>maincpu.mq@7ec38 = ffffffffffffffff</action>
        <action>maincpu.mq@7ec40 = ffffffffffffffff</action>
        <action>maincpu.mq@7ec48 = ffffffffffffffff</action>
        <action>maincpu.mq@7ec50 = ffffffffffffffff</action>
    </script>
</cheat>

<cheat desc="sound test mode">
    <comment>set &quot;skip ram/rom check&quot; then reset the game (F3)</comment>
    <script state="on">
        <action>maincpu.mq@01124 = 4ef90007ec604e71</action>
        <action>maincpu.mq@7ec60 = 41f9000810001200</action>
        <action>maincpu.mq@7ec68 = 1039000da001b200</action>
        <action>maincpu.mq@7ec70 = 67f40c0000fe6602</action>
        <action>maincpu.mq@7ec78 = 53100c0000fd6602</action>
        <action>maincpu.mq@7ec80 = 52100c0000f76604</action>
        <action>maincpu.mq@7ec88 = 041000100c0000fb</action>
        <action>maincpu.mq@7ec90 = 6604061000100c00</action>
        <action>maincpu.mq@7ec98 = 00ef66041e106008</action>
        <action>maincpu.mq@7eca0 = 0c0000df66064207</action>
        <action>maincpu.mq@7eca8 = 4eb8691860b8ffff</action>
        <!--
        7ec60 | 41f9 0008 1000 : lea    $81000.l,A0 // sound code address
        7ec66 | 1200           : move.b D0,D1
        7ec68 | 1039 000d a001 : move.b $da001.l,D0 // read input
        7ec6e | b200           : cmp.b  D0,D1
        7ec70 | 67f4           : beq    $7ec66
        7ec72 | 0c00 00fe      : cmpi.b #-$2,D0
        7ec76 | 6602           : bne    $7ec7a
        7ec78 | 5310           : subq.b #1,(A0)     // decrease code -01
        7ec7a | 0c00 00fd      : cmpi.b #-$3,D0
        7ec7e | 6602           : bne    $7ec82
        7ec80 | 5210           : addq.b #1,(A0)     // increase code +01
        7ec82 | 0c00 00f7      : cmpi.b #-$9,D0
        7ec86 | 6604           : bne    $7ec8c
        7ec88 | 0410 0010      : subi.b #$10,(A0)   // decrease code -10
        7ec8c | 0c00 00fb      : cmpi.b #-$5,D0
        7ec90 | 6604           : bne    $7ec96
        7ec92 | 0610 0010      : addi.b #$10,(A0)   // increase code +10
        7ec96 | 0c00 00ef      : cmpi.b #-$11,D0
        7ec9a | 6604           : bne    $7eca0
        7ec9c | 1e10           : move.b (A0),D7     // play sound
        7ec9e | 6008           : bra    $7eca8
        7eca0 | 0c00 00df      : cmpi.b #-$21,D0
        7eca4 | 6606           : bne    $7ecac
        7eca6 | 4207           : clr.b  D7          // stop sound
        7eca8 | 4eb8 6918      : jsr    $6918.w     // send sound code
        7ecac | 60b8           : bra    $7ec66
        -->
    </script>
    <script state="run">
        <output format="----- xexex 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@81000</argument>
        </output>
    </script>
    <script state="off">
        <action>maincpu.mq@01124 = 46fc000060000028</action>
        <action>maincpu.mq@7ec60 = ffffffffffffffff</action>
        <action>maincpu.mq@7ec68 = ffffffffffffffff</action>
        <action>maincpu.mq@7ec70 = ffffffffffffffff</action>
        <action>maincpu.mq@7ec78 = ffffffffffffffff</action>
        <action>maincpu.mq@7ec80 = ffffffffffffffff</action>
        <action>maincpu.mq@7ec88 = ffffffffffffffff</action>
        <action>maincpu.mq@7ec90 = ffffffffffffffff</action>
        <action>maincpu.mq@7ec98 = ffffffffffffffff</action>
        <action>maincpu.mq@7eca0 = ffffffffffffffff</action>
        <action>maincpu.mq@7eca8 = ffffffffffffffff</action>
    </script>
</cheat>

<cheat desc="skip ram/rom check">
    <script state="on">
        <action>maincpu.mw@1078 = 107a</action>
    </script>
    <script state="off">
        <action>maincpu.mw@1078 = 2478</action>
    </script>
</cheat>
Post Reply