[rezon] Rezon

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

[rezon] Rezon

Post by jman »

Code: Select all

<cheat desc="no hit">
    <script state="on">
        <action>maincpu.mb@86cc = 60</action> <!-- background -->
        <action>maincpu.mb@88e7 = 72</action> <!-- objects -->
    </script>
    <script state="off">
        <action>maincpu.mb@86cc = 67</action>
        <action>maincpu.mb@88e7 = 74</action>
    </script>
</cheat>

<cheat desc="auto fire">
    <script state="on">
        <action>maincpu.mb@8a1a = 66</action>
    </script>
    <script state="off">
        <action>maincpu.mb@8a1a = 67</action>
    </script>
</cheat>

<cheat desc="player speed">
    <parameter>
        <item value="0x0001">01 (slow)</item>
        <item value="0x0002">02       </item>
        <item value="0x0004">03       </item>
        <item value="0x0006">04       </item>
        <item value="0x0008">05 (fast)</item>
    </parameter>
    <script state="on">
        <action>maincpu.mw@8a56 = 343c</action> <!-- move.w #$xx,D2 -->
    </script>
    <script state="change">
        <action>maincpu.mw@8a58 = param</action>
    </script>
    <script state="off">
        <action>maincpu.md@8a56 = 14332000</action>
    </script>
</cheat>

<cheat desc="bullet speed">
    <parameter>
        <item value="0x01">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@8f5f = param</action>
    </script>
    <script state="off">
        <action>maincpu.mb@8f5f = 10</action>
    </script>
</cheat>

<cheat desc="pod direction change by button 2">
    <script state="on">
        <action>maincpu.mb@08a8e =               60</action> <!-- fixed pod (move to left) -->
        <action>maincpu.mb@08ad6 =               60</action> <!-- fixed pod (move to right) -->
        <action>maincpu.mq@08b58 = 4eb90003f0706674</action>
        <action>maincpu.mq@3f070 = 0800000566340828</action>
        <action>maincpu.mq@3f078 = 00050009672c3229</action>
        <action>maincpu.mq@3f080 = 000a4a6d1c62670c</action>
        <action>maincpu.mq@3f088 = 59416c1472003b41</action>
        <action>maincpu.mq@3f090 = 1c62600c58410c41</action>
        <action>maincpu.mq@3f098 = 00116304721160ee</action>
        <action>maincpu.mq@3f0a0 = 3341000ae2493341</action>
        <action>maincpu.mq@3f0a8 = 00020c6d00011c5a</action>
        <action>maincpu.mq@3f0b0 = 4e75000000000000</action>
        <!--
        3f070 | 0800 0005      : btst   #$5,D0
        3f074 | 6634           : bne    $3f0aa
        3f076 | 0828 0005 0009 : btst   #$5,($9,A0)
        3f07c | 672c           : beq    $3f0aa
        3f07e | 3229 000a      : move.w ($a,A1),D1
        3f082 | 4a6d 1c62      : tst.w  ($1c62,A5)
        3f086 | 670c           : beq    $3f094
        3f088 | 5941           : subq.w #4,D1
        3f08a | 6c14           : bge    $3f0a0
        3f08c | 7200           : moveq  #$0,D1
        3f08e | 3b41 1c62      : move.w D1,($1c62,A5)
        3f092 | 600c           : bra    $3f0a0
        3f094 | 5841           : addq.w #4,D1
        3f096 | 0c41 0011      : cmpi.w #$11,D1
        3f09a | 6304           : bls    $3f0a0
        3f09c | 7211           : moveq  #$11,D1
        3f09e | 60ee           : bra    $3f08e
        3f0a0 | 3341 000a      : move.w D1,($a,A1)
        3f0a4 | e249           : lsr.w  #1,D1
        3f0a6 | 3341 0002      : move.w D1,($2,A1)
        3f0aa | 0c6d 0001 1c5a : cmpi.w #$1,($1c5a,A5)
        3f0b0 | 4e75           : rts
        -->
    </script>
    <script state="off">
        <action>maincpu.mb@08a8e =               64</action>
        <action>maincpu.mb@08ad6 =               64</action>
        <action>maincpu.mq@08b58 = 0c6d00011c5a6674</action>
        <action>maincpu.mq@3f070 = 0000000000000000</action>
        <action>maincpu.mq@3f078 = 0000000000000000</action>
        <action>maincpu.mq@3f080 = 0000000000000000</action>
        <action>maincpu.mq@3f088 = 0000000000000000</action>
        <action>maincpu.mq@3f090 = 0000000000000000</action>
        <action>maincpu.mq@3f098 = 0000000000000000</action>
        <action>maincpu.mq@3f0a0 = 0000000000000000</action>
        <action>maincpu.mq@3f0a8 = 0000000000000000</action>
        <action>maincpu.mq@3f0b0 = 0000000000000000</action>
    </script>
</cheat>

<cheat desc="sound test mode">
    <comment>reset the game (F3) to enter sound test mode</comment>
    <script state="on">
        <action>maincpu.mb@07bd5 =               02</action> <!-- disable next sequence at boot -->
        <action>maincpu.md@013a6 =         0003f0c0</action>
        <action>maincpu.mq@3f0c0 = 41ed100043ed1002</action>
        <action>maincpu.mq@3f0c8 = 025000ff10390040</action>
        <action>maincpu.mq@3f0d0 = 0001b01167400c00</action>
        <action>maincpu.mq@3f0d8 = 00fe660253500c00</action>
        <action>maincpu.mq@3f0e0 = 00fd660252500c00</action>
        <action>maincpu.mq@3f0e8 = 00f7660404500010</action>
        <action>maincpu.mq@3f0f0 = 0c0000fb66040650</action>
        <action>maincpu.mq@3f0f8 = 00100c0000ef660a</action>
        <action>maincpu.mq@3f100 = 3f104eb900005fe0</action>
        <action>maincpu.mq@3f108 = 544f0c0000df6606</action>
        <action>maincpu.mq@3f110 = 4eb90000611e1280</action>
        <action>maincpu.mq@3f118 = 4e75000000000000</action>
        <!--
        3f0c0 | 41ed 1000      : lea    ($1000,A5),A0 // sound code address
        3f0c4 | 43ed 1002      : lea    ($1002,A5),A1 // input check address
        3f0c8 | 0250 00ff      : andi.w #$ff,(A0)
        3f0cc | 1039 0040 0001 : move.b $400001.l,D0  // read input
        3f0d2 | b011           : cmp.b  (A1),D0
        3f0d4 | 6740           : beq    $3f116
        3f0d6 | 0c00 00fe      : cmpi.b #-$2,D0
        3f0da | 6602           : bne    $3f0de
        3f0dc | 5350           : subq.w #1,(A0)       // decrease code -01
        3f0de | 0c00 00fd      : cmpi.b #-$3,D0
        3f0e2 | 6602           : bne    $3f0e6
        3f0e4 | 5250           : addq.w #1,(A0)       // increase code +01
        3f0e6 | 0c00 00f7      : cmpi.b #-$9,D0
        3f0ea | 6604           : bne    $3f0f0
        3f0ec | 0450 0010      : subi.w #$10,(A0)     // decrease code -10
        3f0f0 | 0c00 00fb      : cmpi.b #-$5,D0
        3f0f4 | 6604           : bne    $3f0fa
        3f0f6 | 0650 0010      : addi.w #$10,(A0)     // increase code +10
        3f0fa | 0c00 00ef      : cmpi.b #-$11,D0
        3f0fe | 660a           : bne    $3f10a
        3f100 | 3f10           : move.w (A0),-(A7)    // play sound
        3f102 | 4eb9 0000 5fe0 : jsr    $5fe0.l
        3f108 | 544f           : addq.w #2,A7
        3f10a | 0c00 00df      : cmpi.b #-$21,D0
        3f10e | 6606           : bne    $3f116
        3f110 | 4eb9 0000 611e : jsr    $611e.l       // stop sound
        3f116 | 1280           : move.b D0,(A1)
        3f118 | 4e75           : rts
        -->
    </script>
    <script state="run">
        <output format="----- rezon 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="down : decrease code -10"           line="13" align="center" />
        <output format="up : increase 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@201001</argument>
        </output>
    </script>
    <script state="off">
        <action>maincpu.mb@07bd5 =               00</action>
        <action>maincpu.md@013a6 =         00002d18</action>
        <action>maincpu.mq@3f0c0 = 41ed100043ed1002</action>
        <action>maincpu.mq@3f0c8 = 025000ff10390040</action>
        <action>maincpu.mq@3f0d0 = 0001b01167400c00</action>
        <action>maincpu.mq@3f0d8 = 00fe660253500c00</action>
        <action>maincpu.mq@3f0e0 = 00fd660252500c00</action>
        <action>maincpu.mq@3f0e8 = 00f7660404500010</action>
        <action>maincpu.mq@3f0f0 = 0c0000fb66040650</action>
        <action>maincpu.mq@3f0f8 = 00100c0000ef660a</action>
        <action>maincpu.mq@3f100 = 3f104eb900005fe0</action>
        <action>maincpu.mq@3f108 = 544f0c0000df6606</action>
        <action>maincpu.mq@3f110 = 4eb90000611e1280</action>
        <action>maincpu.mq@3f118 = 4e75000000000000</action>
    </script>
</cheat>
"pod direction change by button 2" is incomplete. You need to push button 2 twice when pod direction is left or right.
jman
Posts: 842
Joined: Tue Dec 01, 2020 1:24 pm

[rezon]+ Rezon

Post by jman »

rezon.xml

Code: Select all

<!-- Rezon -->
<mamecheat version="1">

    <cheat desc="no hit">
        <script state="on">
            <action>maincpu.mb@86CC = 60</action> <!-- background -->
            <action>maincpu.mb@88E7 = 72</action> <!-- objects -->
        </script>
        <script state="off">
            <action>maincpu.mb@86CC = 67</action>
            <action>maincpu.mb@88E7 = 74</action>
        </script>
    </cheat>

    <cheat desc="auto fire">
        <script state="on">
            <action>maincpu.mb@8A1A = 66</action>
        </script>
        <script state="off">
            <action>maincpu.mb@8A1A = 67</action>
        </script>
    </cheat>

    <cheat desc="player speed">
        <parameter>
            <item value="0x0001">01 (slow)</item>
            <item value="0x0002">02       </item>
            <item value="0x0004">03       </item>
            <item value="0x0006">04       </item>
            <item value="0x0008">05 (fast)</item>
        </parameter>
        <script state="on">
            <action>maincpu.mw@8A56 = 343C</action>
        </script>
        <script state="change">
            <action>maincpu.mw@8A58 = param</action>
        </script>
        <script state="off">
            <action>maincpu.md@8A56 = 14332000</action>
        </script>
    </cheat>

    <cheat desc="bullet speed">
        <parameter>
            <item value="0x01">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@8F5F = param</action>
        </script>
        <script state="off">
            <action>maincpu.mb@8F5F = 10</action>
        </script>
    </cheat>

    <cheat desc="pod direction change by button 2">
        <script state="on">
            <action>maincpu.mb@08A8E = 60              </action> <!-- fixed pod (move to left) -->
            <action>maincpu.mb@08AD6 = 60              </action> <!-- fixed pod (move to right) -->
            <action>maincpu.mq@08B58 = 4EB90003F0706674</action>
            <action>maincpu.mq@3F070 = 0800000566340828</action>
            <action>maincpu.mq@3F078 = 00050009672C3229</action>
            <action>maincpu.mq@3F080 = 000A4A6D1C62670C</action>
            <action>maincpu.mq@3F088 = 59416C1472003B41</action>
            <action>maincpu.mq@3F090 = 1C62600C58410C41</action>
            <action>maincpu.mq@3F098 = 00116304721160EE</action>
            <action>maincpu.mq@3F0A0 = 3341000AE2493341</action>
            <action>maincpu.mq@3F0A8 = 00020C6D00011C5A</action>
            <action>maincpu.mq@3F0B0 = 4E75000000000000</action>
            <!--
            3F070 | 0800 0005      : btst    #$5, D0
            3F074 | 6634           : bne     $3f0aa
            3F076 | 0828 0005 0009 : btst    #$5, ($9,A0)
            3F07C | 672C           : beq     $3f0aa
            3F07E | 3229 000A      : move.w  ($a,A1), D1
            3F082 | 4A6D 1C62      : tst.w   ($1c62,A5)
            3F086 | 670C           : beq     $3f094
            3F088 | 5941           : subq.w  #4, D1
            3F08A | 6C14           : bge     $3f0a0
            3F08C | 7200           : moveq   #$0, D1
            3F08E | 3B41 1C62      : move.w  D1, ($1c62,A5)
            3F092 | 600C           : bra     $3f0a0
            3F094 | 5841           : addq.w  #4, D1
            3F096 | 0C41 0011      : cmpi.w  #$11, D1
            3F09A | 6304           : bls     $3f0a0
            3F09C | 7211           : moveq   #$11, D1
            3F09E | 60EE           : bra     $3f08e
            3F0A0 | 3341 000A      : move.w  D1, ($a,A1)
            3F0A4 | E249           : lsr.w   #1, D1
            3F0A6 | 3341 0002      : move.w  D1, ($2,A1)
            3F0AA | 0C6D 0001 1C5A : cmpi.w  #$1, ($1c5a,A5)
            3F0B0 | 4E75           : rts
            -->
        </script>
        <script state="off">
            <action>maincpu.mb@08A8E = 64              </action>
            <action>maincpu.mb@08AD6 = 64              </action>
            <action>maincpu.mq@08B58 = 0C6D00011C5A6674</action>
            <action>maincpu.mq@3F070 = 0000000000000000</action>
            <action>maincpu.mq@3F078 = 0000000000000000</action>
            <action>maincpu.mq@3F080 = 0000000000000000</action>
            <action>maincpu.mq@3F088 = 0000000000000000</action>
            <action>maincpu.mq@3F090 = 0000000000000000</action>
            <action>maincpu.mq@3F098 = 0000000000000000</action>
            <action>maincpu.mq@3F0A0 = 0000000000000000</action>
            <action>maincpu.mq@3F0A8 = 0000000000000000</action>
            <action>maincpu.mq@3F0B0 = 0000000000000000</action>
        </script>
    </cheat>

    <cheat desc="sound test mode">
        <comment>reset the game (F3) to enter sound test mode</comment>
        <script state="on">
            <action>maincpu.mb@07BD5 = 02              </action> <!-- disable next sequence at boot -->
            <action>maincpu.md@013A6 = 0003F0C0        </action>
            <action>maincpu.mq@3F0C0 = 41ED100043ED1002</action>
            <action>maincpu.mq@3F0C8 = 025000FF10390040</action>
            <action>maincpu.mq@3F0D0 = 0001B011673C0C00</action>
            <action>maincpu.mq@3F0D8 = 00FE660253500C00</action>
            <action>maincpu.mq@3F0E0 = 00FD660252500C00</action>
            <action>maincpu.mq@3F0E8 = 00F7660404500010</action>
            <action>maincpu.mq@3F0F0 = 0C0000FB66040650</action>
            <action>maincpu.mq@3F0F8 = 00100C0000EF6608</action>
            <action>maincpu.mq@3F100 = 3F104EB85FE0544F</action>
            <action>maincpu.mq@3F108 = 0C0000DF66044EB8</action>
            <action>maincpu.mq@3F110 = 611E12804E750000</action>
            <!--
            3F0C0 | 41ED 1000      : lea     ($1000,A5), A0 // sound code address ($201000)
            3F0C4 | 43ED 1002      : lea     ($1002,A5), A1 // temporary input address ($201002)
            3F0C8 | 0250 00FF      : andi.w  #$ff, (A0)     // mask sound code (0x00 - 0xff)
            3F0CC | 1039 0040 0001 : move.b  $400001.l, D0  // read input
            3F0D2 | B011           : cmp.b   (A1), D0
            3F0D4 | 673C           : beq     $3f112
            3F0D6 | 0C00 00FE      : cmpi.b  #-$2, D0
            3F0DA | 6602           : bne     $3f0de
            3F0DC | 5350           : subq.w  #1, (A0)       // decrease code -01
            3F0DE | 0C00 00FD      : cmpi.b  #-$3, D0
            3F0E2 | 6602           : bne     $3f0e6
            3F0E4 | 5250           : addq.w  #1, (A0)       // increase code +01
            3F0E6 | 0C00 00F7      : cmpi.b  #-$9, D0
            3F0EA | 6604           : bne     $3f0f0
            3F0EC | 0450 0010      : subi.w  #$10, (A0)     // decrease code -10
            3F0F0 | 0C00 00FB      : cmpi.b  #-$5, D0
            3F0F4 | 6604           : bne     $3f0fa
            3F0F6 | 0650 0010      : addi.w  #$10, (A0)     // increase code +10
            3F0FA | 0C00 00EF      : cmpi.b  #-$11, D0
            3F0FE | 6608           : bne     $3f108
            3F100 | 3F10           : move.w  (A0), -(A7)    // play sound
            3F102 | 4EB8 5FE0      : jsr     $5fe0.w
            3F106 | 544F           : addq.w  #2, A7
            3F108 | 0C00 00DF      : cmpi.b  #-$21, D0
            3F10C | 6604           : bne     $3f112
            3F10E | 4EB8 611E      : jsr     $611e.w        // stop sound
            3F112 | 1280           : move.b  D0, (A1)
            3F114 | 4E75           : rts
            -->
        </script>
        <script state="run">
            <output format="----- rezon 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="down : decrease code -10"           line="13" align="center" />
            <output format="up : increase 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 %02X &gt;&gt;"  line="19" align="center">
                <argument>maincpu.pb@201001</argument>
            </output>
        </script>
        <script state="off">
            <action>maincpu.mb@07BD5 = 00              </action>
            <action>maincpu.md@013A6 = 00002D18        </action>
            <action>maincpu.mq@3F0C0 = 0000000000000000</action>
            <action>maincpu.mq@3F0C8 = 0000000000000000</action>
            <action>maincpu.mq@3F0D0 = 0000000000000000</action>
            <action>maincpu.mq@3F0D8 = 0000000000000000</action>
            <action>maincpu.mq@3F0E0 = 0000000000000000</action>
            <action>maincpu.mq@3F0E8 = 0000000000000000</action>
            <action>maincpu.mq@3F0F0 = 0000000000000000</action>
            <action>maincpu.mq@3F0F8 = 0000000000000000</action>
            <action>maincpu.mq@3F100 = 0000000000000000</action>
            <action>maincpu.mq@3F108 = 0000000000000000</action>
            <action>maincpu.mq@3F110 = 0000000000000000</action>
        </script>
    </cheat>

</mamecheat>
rezono.xml

Code: Select all

<!-- Rezon (earlier) -->
<mamecheat version="1">

    <cheat desc="no hit">
        <script state="on">
            <action>maincpu.mb@86CC = 60</action> <!-- background -->
            <action>maincpu.mb@88E7 = 72</action> <!-- objects -->
        </script>
        <script state="off">
            <action>maincpu.mb@86CC = 67</action>
            <action>maincpu.mb@88E7 = 74</action>
        </script>
    </cheat>

    <cheat desc="auto fire">
        <script state="on">
            <action>maincpu.mb@8A1A = 66</action>
        </script>
        <script state="off">
            <action>maincpu.mb@8A1A = 67</action>
        </script>
    </cheat>

    <cheat desc="player speed">
        <parameter>
            <item value="0x0001">01 (slow)</item>
            <item value="0x0002">02       </item>
            <item value="0x0004">03       </item>
            <item value="0x0006">04       </item>
            <item value="0x0008">05 (fast)</item>
        </parameter>
        <script state="on">
            <action>maincpu.mw@8A56 = 343C</action>
        </script>
        <script state="change">
            <action>maincpu.mw@8A58 = param</action>
        </script>
        <script state="off">
            <action>maincpu.md@8A56 = 14332000</action>
        </script>
    </cheat>

    <cheat desc="bullet speed">
        <parameter>
            <item value="0x01">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@8F5F = param</action>
        </script>
        <script state="off">
            <action>maincpu.mb@8F5F = 10</action>
        </script>
    </cheat>

    <cheat desc="pod direction change by button 2">
        <script state="on">
            <action>maincpu.mb@08A8E = 60              </action> <!-- fixed pod (move to left) -->
            <action>maincpu.mb@08AD6 = 60              </action> <!-- fixed pod (move to right) -->
            <action>maincpu.mq@08B58 = 4EB90003F0706674</action>
            <action>maincpu.mq@3F070 = 0800000566340828</action>
            <action>maincpu.mq@3F078 = 00050009672C3229</action>
            <action>maincpu.mq@3F080 = 000A4A6D1C62670C</action>
            <action>maincpu.mq@3F088 = 59416C1472003B41</action>
            <action>maincpu.mq@3F090 = 1C62600C58410C41</action>
            <action>maincpu.mq@3F098 = 00116304721160EE</action>
            <action>maincpu.mq@3F0A0 = 3341000AE2493341</action>
            <action>maincpu.mq@3F0A8 = 00020C6D00011C5A</action>
            <action>maincpu.mq@3F0B0 = 4E75000000000000</action>
            <!--
            3F070 | 0800 0005      : btst    #$5, D0
            3F074 | 6634           : bne     $3f0aa
            3F076 | 0828 0005 0009 : btst    #$5, ($9,A0)
            3F07C | 672C           : beq     $3f0aa
            3F07E | 3229 000A      : move.w  ($a,A1), D1
            3F082 | 4A6D 1C62      : tst.w   ($1c62,A5)
            3F086 | 670C           : beq     $3f094
            3F088 | 5941           : subq.w  #4, D1
            3F08A | 6C14           : bge     $3f0a0
            3F08C | 7200           : moveq   #$0, D1
            3F08E | 3B41 1C62      : move.w  D1, ($1c62,A5)
            3F092 | 600C           : bra     $3f0a0
            3F094 | 5841           : addq.w  #4, D1
            3F096 | 0C41 0011      : cmpi.w  #$11, D1
            3F09A | 6304           : bls     $3f0a0
            3F09C | 7211           : moveq   #$11, D1
            3F09E | 60EE           : bra     $3f08e
            3F0A0 | 3341 000A      : move.w  D1, ($a,A1)
            3F0A4 | E249           : lsr.w   #1, D1
            3F0A6 | 3341 0002      : move.w  D1, ($2,A1)
            3F0AA | 0C6D 0001 1C5A : cmpi.w  #$1, ($1c5a,A5)
            3F0B0 | 4E75           : rts
            -->
        </script>
        <script state="off">
            <action>maincpu.mb@08A8E = 64              </action>
            <action>maincpu.mb@08AD6 = 64              </action>
            <action>maincpu.mq@08B58 = 0C6D00011C5A6674</action>
            <action>maincpu.mq@3F070 = 0000000000000000</action>
            <action>maincpu.mq@3F078 = 0000000000000000</action>
            <action>maincpu.mq@3F080 = 0000000000000000</action>
            <action>maincpu.mq@3F088 = 0000000000000000</action>
            <action>maincpu.mq@3F090 = 0000000000000000</action>
            <action>maincpu.mq@3F098 = 0000000000000000</action>
            <action>maincpu.mq@3F0A0 = 0000000000000000</action>
            <action>maincpu.mq@3F0A8 = 0000000000000000</action>
            <action>maincpu.mq@3F0B0 = 0000000000000000</action>
        </script>
    </cheat>

    <cheat desc="sound test mode">
        <comment>reset the game (F3) to enter sound test mode</comment>
        <script state="on">
            <action>maincpu.mb@07BD5 = 02              </action> <!-- disable next sequence at boot -->
            <action>maincpu.md@013A6 = 0003F0C0        </action>
            <action>maincpu.mq@3F0C0 = 41ED100043ED1002</action>
            <action>maincpu.mq@3F0C8 = 025000FF10390040</action>
            <action>maincpu.mq@3F0D0 = 0001B011673C0C00</action>
            <action>maincpu.mq@3F0D8 = 00FE660253500C00</action>
            <action>maincpu.mq@3F0E0 = 00FD660252500C00</action>
            <action>maincpu.mq@3F0E8 = 00F7660404500010</action>
            <action>maincpu.mq@3F0F0 = 0C0000FB66040650</action>
            <action>maincpu.mq@3F0F8 = 00100C0000EF6608</action>
            <action>maincpu.mq@3F100 = 3F104EB85FE0544F</action>
            <action>maincpu.mq@3F108 = 0C0000DF66044EB8</action>
            <action>maincpu.mq@3F110 = 611E12804E750000</action>
            <!--
            3F0C0 | 41ED 1000      : lea     ($1000,A5), A0 // sound code address ($201000)
            3F0C4 | 43ED 1002      : lea     ($1002,A5), A1 // temporary input address ($201002)
            3F0C8 | 0250 00FF      : andi.w  #$ff, (A0)     // mask sound code (0x00 - 0xff)
            3F0CC | 1039 0040 0001 : move.b  $400001.l, D0  // read input
            3F0D2 | B011           : cmp.b   (A1), D0
            3F0D4 | 673C           : beq     $3f112
            3F0D6 | 0C00 00FE      : cmpi.b  #-$2, D0
            3F0DA | 6602           : bne     $3f0de
            3F0DC | 5350           : subq.w  #1, (A0)       // decrease code -01
            3F0DE | 0C00 00FD      : cmpi.b  #-$3, D0
            3F0E2 | 6602           : bne     $3f0e6
            3F0E4 | 5250           : addq.w  #1, (A0)       // increase code +01
            3F0E6 | 0C00 00F7      : cmpi.b  #-$9, D0
            3F0EA | 6604           : bne     $3f0f0
            3F0EC | 0450 0010      : subi.w  #$10, (A0)     // decrease code -10
            3F0F0 | 0C00 00FB      : cmpi.b  #-$5, D0
            3F0F4 | 6604           : bne     $3f0fa
            3F0F6 | 0650 0010      : addi.w  #$10, (A0)     // increase code +10
            3F0FA | 0C00 00EF      : cmpi.b  #-$11, D0
            3F0FE | 6608           : bne     $3f108
            3F100 | 3F10           : move.w  (A0), -(A7)    // play sound
            3F102 | 4EB8 5FE0      : jsr     $5fe0.w
            3F106 | 544F           : addq.w  #2, A7
            3F108 | 0C00 00DF      : cmpi.b  #-$21, D0
            3F10C | 6604           : bne     $3f112
            3F10E | 4EB8 611E      : jsr     $611e.w        // stop sound
            3F112 | 1280           : move.b  D0, (A1)
            3F114 | 4E75           : rts
            -->
        </script>
        <script state="run">
            <output format="----- rezon 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="down : decrease code -10"           line="13" align="center" />
            <output format="up : increase 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 %02X &gt;&gt;"  line="19" align="center">
                <argument>maincpu.pb@201001</argument>
            </output>
        </script>
        <script state="off">
            <action>maincpu.mb@07BD5 = 00              </action>
            <action>maincpu.md@013A6 = 00002D18        </action>
            <action>maincpu.mq@3F0C0 = 0000000000000000</action>
            <action>maincpu.mq@3F0C8 = 0000000000000000</action>
            <action>maincpu.mq@3F0D0 = 0000000000000000</action>
            <action>maincpu.mq@3F0D8 = 0000000000000000</action>
            <action>maincpu.mq@3F0E0 = 0000000000000000</action>
            <action>maincpu.mq@3F0E8 = 0000000000000000</action>
            <action>maincpu.mq@3F0F0 = 0000000000000000</action>
            <action>maincpu.mq@3F0F8 = 0000000000000000</action>
            <action>maincpu.mq@3F100 = 0000000000000000</action>
            <action>maincpu.mq@3F108 = 0000000000000000</action>
            <action>maincpu.mq@3F110 = 0000000000000000</action>
        </script>
    </cheat>

</mamecheat>
In 0.260, old rezon is renamed to rezono and rezont is renamed to rezon.
Post Reply