[vaportra]+ Vapor Trail/Kuhga

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: 1316
Joined: Tue Dec 01, 2020 1:24 pm
Been thanked: 9 times

[vaportra]+ Vapor Trail/Kuhga

Post by jman »

vaportra.xml

Code: Select all

<!-- Vapor Trail - Hyper Offence Formation (World revision 1) -->
<mamecheat version="1">

    <cheat desc="no hit">
        <script state="on">
            <action>maincpu.mb@37E2 = 60</action> <!-- bullet -->
            <action>maincpu.mb@4885 = 18</action> <!-- enemy -->
        </script>
        <script state="off">
            <action>maincpu.mb@37E2 = 64</action>
            <action>maincpu.mb@4885 = 1A</action>
        </script>
    </cheat>

    <cheat desc="rapid fire">
        <script state="on">
            <action>maincpu.mb@32C9 = 01</action> <!-- special unit (silph) -->
            <action>maincpu.mb@338F = 01</action> <!-- special unit (valkyrie) -->
            <action>maincpu.mb@33D3 = 01</action> <!-- special unit (seylen) -->
            <action>maincpu.mb@349F = 01</action> <!-- bomb -->
            <action>maincpu.mb@34DF = 01</action> <!-- defender -->
            <action>maincpu.mb@351F = 01</action> <!-- missile -->
            <action>maincpu.mb@355F = 01</action> <!-- vulcan -->
        </script>
        <script state="off">
            <action>maincpu.mb@32C9 = 06</action>
            <action>maincpu.mb@338F = 10</action>
            <action>maincpu.mb@33D3 = 10</action>
            <action>maincpu.mb@349F = 10</action>
            <action>maincpu.mb@34DF = 10</action>
            <action>maincpu.mb@351F = 10</action>
            <action>maincpu.mb@355F = 10</action>
        </script>
    </cheat>

    <cheat desc="player speed">
        <parameter>
            <item value="0x00010000">01 (slow)</item>
            <item value="0x00030000">02       </item>
            <item value="0x00050000">03       </item>
            <item value="0x00070000">04       </item>
            <item value="0x00090000">05 (fast)</item>
        </parameter>
        <script state="on">
            <action>maincpu.mq@00EAE = 4EB900017A104E71</action>
            <action>maincpu.mq@17A10 = 283C000000004A82</action>
            <action>maincpu.mq@17A18 = 67066A0244842404</action>
            <action>maincpu.mq@17A20 = 283C000000004A83</action>
            <action>maincpu.mq@17A28 = 67066A0244842604</action>
            <action>maincpu.mq@17A30 = 2942003029430034</action>
            <action>maincpu.mq@17A38 = 4E75FFFFFFFFFFFF</action>
            <!--
            17A10 | 283C xxxx xxxx : move.l  #$xxxx, D4   // x position
            17A16 | 4A82           : tst.l   D2
            17A18 | 6706           : beq     $17a20
            17A1A | 6A02           : bpl     $17a1e
            17A1C | 4484           : neg.l   D4
            17A1E | 2404           : move.l  D4, D2
            17A20 | 283C xxxx xxxx : move.l  #$xxxx, D4   // y position
            17A26 | 4A83           : tst.l   D3
            17A28 | 6706           : beq     $17a30
            17A2A | 6A02           : bpl     $17a2e
            17A2C | 4484           : neg.l   D4
            17A2E | 2604           : move.l  D4, D3
            17A30 | 2942 0030      : move.l  D2, ($30,A4)
            17A34 | 2943 0034      : move.l  D3, ($34,A4)
            17A38 | 4E75           : rts
            -->
        </script>
        <script state="change">
            <action>maincpu.md@17A12 = param</action>
            <action>maincpu.md@17A22 = param</action>
        </script>
        <script state="off">
            <action>maincpu.mq@00EAE = 2942003029430034</action>
            <action>maincpu.mq@17A10 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@17A18 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@17A20 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@17A28 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@17A30 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@17A38 = FFFFFFFFFFFFFFFF</action>
        </script>
    </cheat>

    <cheat desc="max bullets up">
        <script state="on">
            <action>maincpu.mb@269B = 02</action>
        </script>
        <script state="off">
            <action>maincpu.mb@269B = D4</action>
        </script>
    </cheat>

    <cheat desc="short hit mark">
        <script state="on">
            <action>maincpu.mb@2DF8 = 60</action>
            <action>maincpu.mb@2E0A = 60</action>
        </script>
        <script state="off">
            <action>maincpu.mb@2DF8 = 64</action>
            <action>maincpu.mb@2E0A = 64</action>
        </script>
    </cheat>

    <cheat desc="sound test mode">
        <comment>reset the game (F3) to enter sound test mode</comment>
        <script state="on">
            <action>maincpu.mw@169A6 = 0001            </action> <!-- stop opening theme -->
            <action>maincpu.md@169CE = 00017A40        </action>
            <action>maincpu.mq@17A40 = 41F8C00043F90010</action>
            <action>maincpu.mq@17A48 = 000712001029FFFA</action>
            <action>maincpu.mq@17A50 = B20067F60C0000FB</action>
            <action>maincpu.mq@17A58 = 660253100C0000F7</action>
            <action>maincpu.mq@17A60 = 660252100C0000FD</action>
            <action>maincpu.mq@17A68 = 6604041000100C00</action>
            <action>maincpu.mq@17A70 = 00FE660406100010</action>
            <action>maincpu.mq@17A78 = 0C0000EF66021290</action>
            <action>maincpu.mq@17A80 = 0C0000DF660412BC</action>
            <action>maincpu.mq@17A88 = 000160BEFFFFFFFF</action>
            <!--
            17A40 | 41F8 C000      : lea     $c000.w, A0   // sound code address ($FFC000)
            17A44 | 43F9 0010 0007 : lea     $100007.l, A1 // sound latch address
            17A4A | 1200           : move.b  D0, D1
            17A4C | 1029 FFFA      : move.b  (-$6,A1), D0  // read input ($100001)
            17A50 | B200           : cmp.b   D0, D1
            17A52 | 67F6           : beq     $17a4a
            17A54 | 0C00 00FB      : cmpi.b  #-$5, D0
            17A58 | 6602           : bne     $17a5c
            17A5A | 5310           : subq.b  #1, (A0)      // decrease code -01
            17A5C | 0C00 00F7      : cmpi.b  #-$9, D0
            17A60 | 6602           : bne     $17a64
            17A62 | 5210           : addq.b  #1, (A0)      // increase code +01
            17A64 | 0C00 00FD      : cmpi.b  #-$3, D0
            17A68 | 6604           : bne     $17a6e
            17A6A | 0410 0010      : subi.b  #$10, (A0)    // decrease code -10
            17A6E | 0C00 00FE      : cmpi.b  #-$2, D0
            17A72 | 6604           : bne     $17a78
            17A74 | 0610 0010      : addi.b  #$10, (A0)    // increase code +10
            17A78 | 0C00 00EF      : cmpi.b  #-$11, D0
            17A7C | 6602           : bne     $17a80
            17A7E | 1290           : move.b  (A0), (A1)    // play sound
            17A80 | 0C00 00DF      : cmpi.b  #-$21, D0
            17A84 | 6604           : bne     $17a8a
            17A86 | 12BC 0001      : move.b  #$1, (A1)     // stop sound
            17A8A | 60BE           : bra     $17a4a
            -->
        </script>
        <script state="run">
            <output format="----- 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@FFC000</argument>
            </output>
        </script>
        <script state="off">
            <action>maincpu.mw@169A6 = 0004            </action>
            <action>maincpu.md@169CE = 00003E36        </action>
            <action>maincpu.mq@17A40 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@17A48 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@17A50 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@17A58 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@17A60 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@17A68 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@17A70 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@17A78 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@17A80 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@17A88 = FFFFFFFFFFFFFFFF</action>
        </script>
    </cheat>

</mamecheat>
vaportra3.xml

Code: Select all

<!-- Vapor Trail - Hyper Offence Formation (World revision 3?) -->
<mamecheat version="1">

    <cheat desc="no hit">
        <script state="on">
            <action>maincpu.mb@37E2 = 60</action> <!-- bullet -->
            <action>maincpu.mb@4885 = 18</action> <!-- enemy -->
        </script>
        <script state="off">
            <action>maincpu.mb@37E2 = 64</action>
            <action>maincpu.mb@4885 = 1A</action>
        </script>
    </cheat>

    <cheat desc="rapid fire">
        <script state="on">
            <action>maincpu.mb@32C9 = 01</action> <!-- special unit (silph) -->
            <action>maincpu.mb@338F = 01</action> <!-- special unit (valkyrie) -->
            <action>maincpu.mb@33D3 = 01</action> <!-- special unit (seylen) -->
            <action>maincpu.mb@349F = 01</action> <!-- bomb -->
            <action>maincpu.mb@34DF = 01</action> <!-- defender -->
            <action>maincpu.mb@351F = 01</action> <!-- missile -->
            <action>maincpu.mb@355F = 01</action> <!-- vulcan -->
        </script>
        <script state="off">
            <action>maincpu.mb@32C9 = 06</action>
            <action>maincpu.mb@338F = 10</action>
            <action>maincpu.mb@33D3 = 10</action>
            <action>maincpu.mb@349F = 10</action>
            <action>maincpu.mb@34DF = 10</action>
            <action>maincpu.mb@351F = 10</action>
            <action>maincpu.mb@355F = 10</action>
        </script>
    </cheat>

    <cheat desc="player speed">
        <parameter>
            <item value="0x00010000">01 (slow)</item>
            <item value="0x00030000">02       </item>
            <item value="0x00050000">03       </item>
            <item value="0x00070000">04       </item>
            <item value="0x00090000">05 (fast)</item>
        </parameter>
        <script state="on">
            <action>maincpu.mq@00EAE = 4EB900017A104E71</action>
            <action>maincpu.mq@17A10 = 283C000000004A82</action>
            <action>maincpu.mq@17A18 = 67066A0244842404</action>
            <action>maincpu.mq@17A20 = 283C000000004A83</action>
            <action>maincpu.mq@17A28 = 67066A0244842604</action>
            <action>maincpu.mq@17A30 = 2942003029430034</action>
            <action>maincpu.mq@17A38 = 4E75FFFFFFFFFFFF</action>
            <!--
            17A10 | 283C xxxx xxxx : move.l  #$xxxx, D4   // x position
            17A16 | 4A82           : tst.l   D2
            17A18 | 6706           : beq     $17a20
            17A1A | 6A02           : bpl     $17a1e
            17A1C | 4484           : neg.l   D4
            17A1E | 2404           : move.l  D4, D2
            17A20 | 283C xxxx xxxx : move.l  #$xxxx, D4   // y position
            17A26 | 4A83           : tst.l   D3
            17A28 | 6706           : beq     $17a30
            17A2A | 6A02           : bpl     $17a2e
            17A2C | 4484           : neg.l   D4
            17A2E | 2604           : move.l  D4, D3
            17A30 | 2942 0030      : move.l  D2, ($30,A4)
            17A34 | 2943 0034      : move.l  D3, ($34,A4)
            17A38 | 4E75           : rts
            -->
        </script>
        <script state="change">
            <action>maincpu.md@17A12 = param</action>
            <action>maincpu.md@17A22 = param</action>
        </script>
        <script state="off">
            <action>maincpu.mq@00EAE = 2942003029430034</action>
            <action>maincpu.mq@17A10 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@17A18 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@17A20 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@17A28 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@17A30 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@17A38 = FFFFFFFFFFFFFFFF</action>
        </script>
    </cheat>

    <cheat desc="max bullets up">
        <script state="on">
            <action>maincpu.mb@269B = 02</action>
        </script>
        <script state="off">
            <action>maincpu.mb@269B = D4</action>
        </script>
    </cheat>

    <cheat desc="short hit mark">
        <script state="on">
            <action>maincpu.mb@2DF8 = 60</action>
            <action>maincpu.mb@2E0A = 60</action>
        </script>
        <script state="off">
            <action>maincpu.mb@2DF8 = 64</action>
            <action>maincpu.mb@2E0A = 64</action>
        </script>
    </cheat>

    <cheat desc="sound test mode">
        <comment>reset the game (F3) to enter sound test mode</comment>
        <script state="on">
            <action>maincpu.mw@169A6 = 0001            </action> <!-- stop opening theme -->
            <action>maincpu.md@169CE = 00017A40        </action>
            <action>maincpu.mq@17A40 = 41F8C00043F90010</action>
            <action>maincpu.mq@17A48 = 000712001029FFFA</action>
            <action>maincpu.mq@17A50 = B20067F60C0000FB</action>
            <action>maincpu.mq@17A58 = 660253100C0000F7</action>
            <action>maincpu.mq@17A60 = 660252100C0000FD</action>
            <action>maincpu.mq@17A68 = 6604041000100C00</action>
            <action>maincpu.mq@17A70 = 00FE660406100010</action>
            <action>maincpu.mq@17A78 = 0C0000EF66021290</action>
            <action>maincpu.mq@17A80 = 0C0000DF660412BC</action>
            <action>maincpu.mq@17A88 = 000160BEFFFFFFFF</action>
            <!--
            17A40 | 41F8 C000      : lea     $c000.w, A0   // sound code address ($FFC000)
            17A44 | 43F9 0010 0007 : lea     $100007.l, A1 // sound latch address
            17A4A | 1200           : move.b  D0, D1
            17A4C | 1029 FFFA      : move.b  (-$6,A1), D0  // read input ($100001)
            17A50 | B200           : cmp.b   D0, D1
            17A52 | 67F6           : beq     $17a4a
            17A54 | 0C00 00FB      : cmpi.b  #-$5, D0
            17A58 | 6602           : bne     $17a5c
            17A5A | 5310           : subq.b  #1, (A0)      // decrease code -01
            17A5C | 0C00 00F7      : cmpi.b  #-$9, D0
            17A60 | 6602           : bne     $17a64
            17A62 | 5210           : addq.b  #1, (A0)      // increase code +01
            17A64 | 0C00 00FD      : cmpi.b  #-$3, D0
            17A68 | 6604           : bne     $17a6e
            17A6A | 0410 0010      : subi.b  #$10, (A0)    // decrease code -10
            17A6E | 0C00 00FE      : cmpi.b  #-$2, D0
            17A72 | 6604           : bne     $17a78
            17A74 | 0610 0010      : addi.b  #$10, (A0)    // increase code +10
            17A78 | 0C00 00EF      : cmpi.b  #-$11, D0
            17A7C | 6602           : bne     $17a80
            17A7E | 1290           : move.b  (A0), (A1)    // play sound
            17A80 | 0C00 00DF      : cmpi.b  #-$21, D0
            17A84 | 6604           : bne     $17a8a
            17A86 | 12BC 0001      : move.b  #$1, (A1)     // stop sound
            17A8A | 60BE           : bra     $17a4a
            -->
        </script>
        <script state="run">
            <output format="----- 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@FFC000</argument>
            </output>
        </script>
        <script state="off">
            <action>maincpu.mw@169A6 = 0004            </action>
            <action>maincpu.md@169CE = 00003E36        </action>
            <action>maincpu.mq@17A40 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@17A48 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@17A50 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@17A58 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@17A60 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@17A68 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@17A70 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@17A78 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@17A80 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@17A88 = FFFFFFFFFFFFFFFF</action>
        </script>
    </cheat>

</mamecheat>
vaportrau.xml

Code: Select all

<!-- Vapor Trail - Hyper Offence Formation (US) -->
<mamecheat version="1">

    <cheat desc="no hit">
        <script state="on">
            <action>maincpu.mb@37E2 = 60</action> <!-- bullet -->
            <action>maincpu.mb@4885 = 18</action> <!-- enemy -->
        </script>
        <script state="off">
            <action>maincpu.mb@37E2 = 64</action>
            <action>maincpu.mb@4885 = 1A</action>
        </script>
    </cheat>

    <cheat desc="rapid fire">
        <script state="on">
            <action>maincpu.mb@32C9 = 01</action> <!-- special unit (silph) -->
            <action>maincpu.mb@338F = 01</action> <!-- special unit (valkyrie) -->
            <action>maincpu.mb@33D3 = 01</action> <!-- special unit (seylen) -->
            <action>maincpu.mb@349F = 01</action> <!-- bomb -->
            <action>maincpu.mb@34DF = 01</action> <!-- defender -->
            <action>maincpu.mb@351F = 01</action> <!-- missile -->
            <action>maincpu.mb@355F = 01</action> <!-- vulcan -->
        </script>
        <script state="off">
            <action>maincpu.mb@32C9 = 06</action>
            <action>maincpu.mb@338F = 10</action>
            <action>maincpu.mb@33D3 = 10</action>
            <action>maincpu.mb@349F = 10</action>
            <action>maincpu.mb@34DF = 10</action>
            <action>maincpu.mb@351F = 10</action>
            <action>maincpu.mb@355F = 10</action>
        </script>
    </cheat>

    <cheat desc="player speed">
        <parameter>
            <item value="0x00010000">01 (slow)</item>
            <item value="0x00030000">02       </item>
            <item value="0x00050000">03       </item>
            <item value="0x00070000">04       </item>
            <item value="0x00090000">05 (fast)</item>
        </parameter>
        <script state="on">
            <action>maincpu.mq@00EAE = 4EB900017A404E71</action>
            <action>maincpu.mq@17A40 = 283C000000004A82</action>
            <action>maincpu.mq@17A48 = 67066A0244842404</action>
            <action>maincpu.mq@17A50 = 283C000000004A83</action>
            <action>maincpu.mq@17A58 = 67066A0244842604</action>
            <action>maincpu.mq@17A60 = 2942003029430034</action>
            <action>maincpu.mq@17A68 = 4E75FFFFFFFFFFFF</action>
            <!--
            17A40 | 283C xxxx xxxx : move.l  #$xxxx, D4   // x position
            17A46 | 4A82           : tst.l   D2
            17A48 | 6706           : beq     $17a50
            17A4A | 6A02           : bpl     $17a4e
            17A4C | 4484           : neg.l   D4
            17A4E | 2404           : move.l  D4, D2
            17A50 | 283C xxxx xxxx : move.l  #$xxxx, D4   // y position
            17A56 | 4A83           : tst.l   D3
            17A58 | 6706           : beq     $17a60
            17A5A | 6A02           : bpl     $17a5e
            17A5C | 4484           : neg.l   D4
            17A5E | 2604           : move.l  D4, D3
            17A60 | 2942 0030      : move.l  D2, ($30,A4)
            17A64 | 2943 0034      : move.l  D3, ($34,A4)
            17A68 | 4E75           : rts
            -->
        </script>
        <script state="change">
            <action>maincpu.md@17A42 = param</action>
            <action>maincpu.md@17A52 = param</action>
        </script>
        <script state="off">
            <action>maincpu.mq@00EAE = 2942003029430034</action>
            <action>maincpu.mq@17A40 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@17A48 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@17A60 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@17A68 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@17A60 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@17A68 = FFFFFFFFFFFFFFFF</action>
        </script>
    </cheat>

    <cheat desc="max bullets up">
        <script state="on">
            <action>maincpu.mb@269B = 02</action>
        </script>
        <script state="off">
            <action>maincpu.mb@269B = D4</action>
        </script>
    </cheat>

    <cheat desc="short hit mark">
        <script state="on">
            <action>maincpu.mb@2DF8 = 60</action>
            <action>maincpu.mb@2E0A = 60</action>
        </script>
        <script state="off">
            <action>maincpu.mb@2DF8 = 64</action>
            <action>maincpu.mb@2E0A = 64</action>
        </script>
    </cheat>

    <cheat desc="sound test mode">
        <comment>reset the game (F3) to enter sound test mode</comment>
        <script state="on">
            <action>maincpu.mw@169A6 = 0001            </action> <!-- stop opening theme -->
            <action>maincpu.md@169CE = 00017A70        </action>
            <action>maincpu.mq@17A70 = 41F8C00043F90010</action>
            <action>maincpu.mq@17A78 = 000712001029FFFA</action>
            <action>maincpu.mq@17A80 = B20067F60C0000FB</action>
            <action>maincpu.mq@17A88 = 660253100C0000F7</action>
            <action>maincpu.mq@17A90 = 660252100C0000FD</action>
            <action>maincpu.mq@17A98 = 6604041000100C00</action>
            <action>maincpu.mq@17AA0 = 00FE660406100010</action>
            <action>maincpu.mq@17AA8 = 0C0000EF66021290</action>
            <action>maincpu.mq@17AB0 = 0C0000DF660412BC</action>
            <action>maincpu.mq@17AB8 = 000160BEFFFFFFFF</action>
            <!--
            17A70 | 41F8 C000      : lea     $c000.w, A0   // sound code address ($FFC000)
            17A74 | 43F9 0010 0007 : lea     $100007.l, A1 // sound latch address
            17A7A | 1200           : move.b  D0, D1
            17A7C | 1029 FFFA      : move.b  (-$6,A1), D0  // read input ($100001)
            17A80 | B200           : cmp.b   D0, D1
            17A82 | 67F6           : beq     $17a7a
            17A84 | 0C00 00FB      : cmpi.b  #-$5, D0
            17A88 | 6602           : bne     $17a8c
            17A8A | 5310           : subq.b  #1, (A0)      // decrease code -01
            17A8C | 0C00 00F7      : cmpi.b  #-$9, D0
            17A90 | 6602           : bne     $17a94
            17A92 | 5210           : addq.b  #1, (A0)      // increase code +01
            17A94 | 0C00 00FD      : cmpi.b  #-$3, D0
            17A98 | 6604           : bne     $17a9e
            17A9A | 0410 0010      : subi.b  #$10, (A0)    // decrease code -10
            17A9E | 0C00 00FE      : cmpi.b  #-$2, D0
            17AA2 | 6604           : bne     $17aa8
            17AA4 | 0610 0010      : addi.b  #$10, (A0)    // increase code +10
            17AA8 | 0C00 00EF      : cmpi.b  #-$11, D0
            17AAC | 6602           : bne     $17ab0
            17AAE | 1290           : move.b  (A0), (A1)    // play sound
            17AB0 | 0C00 00DF      : cmpi.b  #-$21, D0
            17AB4 | 6604           : bne     $17aba
            17AB6 | 12BC 0001      : move.b  #$1, (A1)     // stop sound
            17ABA | 60BE           : bra     $17a7a
            -->
        </script>
        <script state="run">
            <output format="----- 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@FFC000</argument>
            </output>
        </script>
        <script state="off">
            <action>maincpu.mw@169A6 = 0004            </action>
            <action>maincpu.md@169CE = 00003E36        </action>
            <action>maincpu.mq@17A70 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@17A78 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@17A80 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@17A88 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@17A90 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@17A98 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@17AA0 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@17AA8 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@17AB0 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@17AB8 = FFFFFFFFFFFFFFFF</action>
        </script>
    </cheat>

</mamecheat>
kuhga.xml

Code: Select all

<!-- Kuhga - Operation Code 'Vapor Trail' (Japan revision 3) -->
<mamecheat version="1">

    <cheat desc="no hit">
        <script state="on">
            <action>maincpu.mb@37E0 = 60</action> <!-- bullet -->
            <action>maincpu.mb@4881 = 18</action> <!-- enemy -->
        </script>
        <script state="off">
            <action>maincpu.mb@37E0 = 64</action>
            <action>maincpu.mb@4881 = 1A</action>
        </script>
    </cheat>

    <cheat desc="rapid fire">
        <script state="on">
            <action>maincpu.mb@32C7 = 01</action> <!-- special unit (silph) -->
            <action>maincpu.mb@338D = 01</action> <!-- special unit (valkyrie) -->
            <action>maincpu.mb@33D1 = 01</action> <!-- special unit (seylen) -->
            <action>maincpu.mb@349D = 01</action> <!-- bomb -->
            <action>maincpu.mb@34DD = 01</action> <!-- defender -->
            <action>maincpu.mb@351D = 01</action> <!-- missile -->
            <action>maincpu.mb@355D = 01</action> <!-- vulcan -->
        </script>
        <script state="off">
            <action>maincpu.mb@32C7 = 06</action>
            <action>maincpu.mb@338D = 10</action>
            <action>maincpu.mb@33D1 = 10</action>
            <action>maincpu.mb@349D = 10</action>
            <action>maincpu.mb@34DD = 10</action>
            <action>maincpu.mb@351D = 10</action>
            <action>maincpu.mb@355D = 10</action>
        </script>
    </cheat>

    <cheat desc="player speed">
        <parameter>
            <item value="0x00010000">01 (slow)</item>
            <item value="0x00030000">02       </item>
            <item value="0x00050000">03       </item>
            <item value="0x00070000">04       </item>
            <item value="0x00090000">05 (fast)</item>
        </parameter>
        <script state="on">
            <action>maincpu.mq@00EAC = 4EB9000179C04E71</action>
            <action>maincpu.mq@179C0 = 283C000000004A82</action>
            <action>maincpu.mq@179C8 = 67066A0244842404</action>
            <action>maincpu.mq@179D0 = 283C000000004A83</action>
            <action>maincpu.mq@179D8 = 67066A0244842604</action>
            <action>maincpu.mq@179E0 = 2942003029430034</action>
            <action>maincpu.mq@179E8 = 4E75FFFFFFFFFFFF</action>
            <!--
            179C0 | 283C xxxx xxxx : move.l  #$xxxx, D4   // x position
            179C6 | 4A82           : tst.l   D2
            179C8 | 6706           : beq     $179d0
            179CA | 6A02           : bpl     $179ce
            179CC | 4484           : neg.l   D4
            179CE | 2404           : move.l  D4, D2
            179D0 | 283C xxxx xxxx : move.l  #$xxxx, D4   // y position
            179D6 | 4A83           : tst.l   D3
            179D8 | 6706           : beq     $179e0
            179DA | 6A02           : bpl     $179de
            179DC | 4484           : neg.l   D4
            179DE | 2604           : move.l  D4, D3
            179E0 | 2942 0030      : move.l  D2, ($30,A4)
            179E4 | 2943 0034      : move.l  D3, ($34,A4)
            179E8 | 4E75           : rts
            -->
        </script>
        <script state="change">
            <action>maincpu.md@179C2 = param</action>
            <action>maincpu.md@179D2 = param</action>
        </script>
        <script state="off">
            <action>maincpu.mq@00EAC = 2942003029430034</action>
            <action>maincpu.mq@179C0 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@179C8 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@179D0 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@179D8 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@179E0 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@179E8 = FFFFFFFFFFFFFFFF</action>
        </script>
    </cheat>

    <cheat desc="max bullets up">
        <script state="on">
            <action>maincpu.mb@2699 = 02</action>
        </script>
        <script state="off">
            <action>maincpu.mb@2699 = D4</action>
        </script>
    </cheat>

    <cheat desc="short hit mark">
        <script state="on">
            <action>maincpu.mb@2DF6 = 60</action>
            <action>maincpu.mb@2E08 = 60</action>
        </script>
        <script state="off">
            <action>maincpu.mb@2DF6 = 64</action>
            <action>maincpu.mb@2E08 = 64</action>
        </script>
    </cheat>

    <cheat desc="sound test mode">
        <comment>reset the game (F3) to enter sound test mode</comment>
        <script state="on">
            <action>maincpu.mw@1691E = 0001            </action> <!-- stop opening theme -->
            <action>maincpu.md@16946 = 000179F0        </action>
            <action>maincpu.mq@179F0 = 41F8C00043F90010</action>
            <action>maincpu.mq@179F8 = 000712001029FFFA</action>
            <action>maincpu.mq@17A00 = B20067F60C0000FB</action>
            <action>maincpu.mq@17A08 = 660253100C0000F7</action>
            <action>maincpu.mq@17A10 = 660252100C0000FD</action>
            <action>maincpu.mq@17A18 = 6604041000100C00</action>
            <action>maincpu.mq@17A20 = 00FE660406100010</action>
            <action>maincpu.mq@17A28 = 0C0000EF66021290</action>
            <action>maincpu.mq@17A30 = 0C0000DF660412BC</action>
            <action>maincpu.mq@17A38 = 000160BEFFFFFFFF</action>
            <!--
            179F0 | 41F8 C000      : lea     $c000.w, A0   // sound code address ($FFC000)
            179F4 | 43F9 0010 0007 : lea     $100007.l, A1 // sound latch address
            179FA | 1200           : move.b  D0, D1
            179FC | 1029 FFFA      : move.b  (-$6,A1), D0  // read input ($100001)
            17A00 | B200           : cmp.b   D0, D1
            17A02 | 67F6           : beq     $179fa
            17A04 | 0C00 00FB      : cmpi.b  #-$5, D0
            17A08 | 6602           : bne     $17a0c
            17A0A | 5310           : subq.b  #1, (A0)      // decrease code -01
            17A0C | 0C00 00F7      : cmpi.b  #-$9, D0
            17A10 | 6602           : bne     $17a14
            17A12 | 5210           : addq.b  #1, (A0)      // increase code +01
            17A14 | 0C00 00FD      : cmpi.b  #-$3, D0
            17A18 | 6604           : bne     $17a1e
            17A1A | 0410 0010      : subi.b  #$10, (A0)    // decrease code -10
            17A1E | 0C00 00FE      : cmpi.b  #-$2, D0
            17A22 | 6604           : bne     $17a28
            17A24 | 0610 0010      : addi.b  #$10, (A0)    // increase code +10
            17A28 | 0C00 00EF      : cmpi.b  #-$11, D0
            17A2C | 6602           : bne     $17a30
            17A2E | 1290           : move.b  (A0), (A1)    // play sound
            17A30 | 0C00 00DF      : cmpi.b  #-$21, D0
            17A34 | 6604           : bne     $17a3a
            17A36 | 12BC 0001      : move.b  #$1, (A1)     // stop sound
            17A3A | 60BE           : bra     $179fa
            -->
        </script>
        <script state="run">
            <output format="----- 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@FFC000</argument>
            </output>
        </script>
        <script state="off">
            <action>maincpu.mw@1691E = 0004            </action>
            <action>maincpu.md@16946 = 00003E34        </action>
            <action>maincpu.mq@179F0 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@179F8 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@17A00 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@17A08 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@17A10 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@17A18 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@17A20 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@17A28 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@17A30 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@17A38 = FFFFFFFFFFFFFFFF</action>
        </script>
    </cheat>

</mamecheat>
jman

my wip cheat database back-up (06/01/2025 ver.)
https://u3.getuploader.com/...../download/58
downloadpass : jman2020
Post Reply