[yiear]+ Yie Ar Kung-Fu

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

[yiear]+ Yie Ar Kung-Fu

Post by jman »

yiear.xml

Code: Select all

<!-- Yie Ar Kung-Fu (program code I) -->
<mamecheat version="1">

    <cheat desc="no hit">
        <script state="on">
            <action>maincpu.mw@a05b = 202e</action> <!-- attack -->
            <action>maincpu.mw@a196 = 1216</action> <!-- firearms -->
        </script>
        <script state="off">
            <action>maincpu.mw@a05b = 262e</action>
            <action>maincpu.mw@a196 = 1026</action>
        </script>
    </cheat>

    <cheat desc="auto fire">
        <script state="on">
            <action>maincpu.mw@96d3 = 0000</action> <!-- diagonal upper back punch -->
            <action>maincpu.mw@97b7 = 2700</action> <!-- normal attack -->
            <action>maincpu.mw@986b = 8600</action> <!-- upper attack -->
            <action>maincpu.mw@9a91 = 0000</action> <!-- diagonal upper back kick -->
            <action>maincpu.mw@c511 = 0000</action> <!-- diagonal upper front attack -->
        </script>
        <script state="off">
            <action>maincpu.mw@96d3 = 0105</action>
            <action>maincpu.mw@97b7 = 2721</action>
            <action>maincpu.mw@986c = 8605</action>
            <action>maincpu.mw@9a91 = fbc0</action>
            <action>maincpu.mw@c511 = d140</action>
        </script>
    </cheat>

    <cheat desc="attack speed up">
        <comment>normal attack only. not diagonal upper front/back attack</comment>
        <script state="on">
            <action>maincpu.mb@947d = 00</action>
        </script>
        <script state="off">
            <action>maincpu.mb@947d = 09</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.mb@8219 =               10</action> <!-- disable crosshatch -->
            <action>maincpu.mq@8115 = 9701b64e01b74f00</action>
            <action>maincpu.mq@811d = 910127f4d60081fe</action>
            <action>maincpu.mq@8125 = 26015a81fd26015c</action>
            <action>maincpu.mq@812d = 81f72602c01081fb</action>
            <action>maincpu.mq@8135 = 2602cb10d70081ef</action>
            <action>maincpu.mq@813d = 270581df26095ff7</action>
            <action>maincpu.mq@8145 = 5607c601f7560820</action>
            <action>maincpu.mq@814d = c7128e5030ed818c</action>
            <!--
            8115 | 97 01    : STA  $01
            8117 | b6 4e 01 : LDA  $4E01 // read input
            811a | b7 4f 00 : STA  $4F00 // watchdog
            811d | 91 01    : CMPA $01
            811f | 27 f4    : BEQ  $8115
            8121 | d6 00    : LDB  $00
            8123 | 81 fe    : CMPA #$FE
            8125 | 26 01    : BNE  $8128
            8127 | 5a       : DECB       // decrease code -01
            8128 | 81 fd    : CMPA #$FD
            812a | 26 01    : BNE  $812D
            812c | 5c       : INCB       // increase code +01
            812d | 81 f7    : CMPA #$F7
            812f | 26 02    : BNE  $8133
            8131 | c0 10    : SUBB #$10  // decrease code -10
            8133 | 81 fb    : CMPA #$FB
            8135 | 26 02    : BNE  $8139
            8137 | cb 10    : ADDB #$10  // increase code +10
            8139 | d7 00    : STB  $00
            813b | 81 ef    : CMPA #$EF
            813d | 27 05    : BEQ  $8144
            813f | 81 df    : CMPA #$DF
            8141 | 26 09    : BNE  $814C
            8143 | 5f       : CLRB
            8144 | f7 56 07 : STB  $5607 // send sound code
            8147 | c6 01    : LDB  #$01  // enable sound
            8149 | f7 56 08 : STB  $5608
            814c | 20 c7    : BRA  $8115
            -->
        </script>
        <script state="run">
            <output format="----- yie ar kung-fu 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@5100</argument>
            </output>
        </script>
        <script state="off">
            <action>maincpu.mb@8219 =               2e</action>
            <action>maincpu.mq@8115 = 96c526108e58419f</action>
            <action>maincpu.mq@811d = fd862197ff860197</action>
            <action>maincpu.mq@8125 = ca0cc5390aca261c</action>
            <action>maincpu.mq@812d = 860197ca0aff2715</action>
            <action>maincpu.mq@8135 = c6209efd301e9ffd</action>
            <action>maincpu.mq@813d = 8610a7846f1f3088</action>
            <action>maincpu.mq@8145 = 405a26f6394f39cc</action>
            <action>maincpu.mq@814d = 00008e5030ed818c</action>
        </script>
    </cheat>

    <cheat desc="skip ram/rom check">
        <script state="on">
            <action>maincpu.md@8183 = 16fe7a12</action>
        </script>
        <script state="off">
            <action>maincpu.md@8183 = 4f8e5000</action>
        </script>
    </cheat>

</mamecheat>
yiear2.xml

Code: Select all

<!-- Yie Ar Kung-Fu (program code G) -->
<mamecheat version="1">

    <cheat desc="no hit">
        <script state="on">
            <action>maincpu.mw@a049 = 202e</action> <!-- attack -->
            <action>maincpu.mw@a184 = 1216</action> <!-- firearms -->
        </script>
        <script state="off">
            <action>maincpu.mw@a049 = 262e</action>
            <action>maincpu.mw@a184 = 1026</action>
        </script>
    </cheat>

    <cheat desc="auto fire">
        <script state="on">
            <action>maincpu.mw@96c1 = 0000</action> <!-- diagonal upper back punch -->
            <action>maincpu.mw@97a5 = 2700</action> <!-- normal attack -->
            <action>maincpu.mw@9859 = 8600</action> <!-- upper attack -->
            <action>maincpu.mw@9a7f = 0000</action> <!-- diagonal upper back kick -->
            <action>maincpu.mw@c507 = 0000</action> <!-- diagonal upper front attack -->
        </script>
        <script state="off">
            <action>maincpu.mw@96c1 = 0105</action>
            <action>maincpu.mw@97a5 = 2721</action>
            <action>maincpu.mw@9859 = 8605</action>
            <action>maincpu.mw@9a7f = fbc0</action>
            <action>maincpu.mw@c507 = d138</action>
        </script>
    </cheat>

    <cheat desc="attack speed up">
        <comment>normal attack only. not diagonal upper front/back attack</comment>
        <script state="on">
            <action>maincpu.mb@946b = 00</action>
        </script>
        <script state="off">
            <action>maincpu.mb@946b = 09</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.mb@8215 =               10</action> <!-- disable crosshatch -->
            <action>maincpu.mq@810f = 9701b64e01b74f00</action>
            <action>maincpu.mq@8117 = 910127f4d60081fe</action>
            <action>maincpu.mq@811f = 26015a81fd26015c</action>
            <action>maincpu.mq@8127 = 81f72602c01081fb</action>
            <action>maincpu.mq@812f = 2602cb10d70081ef</action>
            <action>maincpu.mq@8137 = 270581df26095ff7</action>
            <action>maincpu.mq@813f = 5607c601f7560820</action>
            <action>maincpu.mq@8147 = c7128e5030ed818c</action>
            <!--
            810f | 97 01    : STA  $01
            8111 | b6 4e 01 : LDA  $4E01 // read input
            8114 | b7 4f 00 : STA  $4F00 // watchdog
            8117 | 91 01    : CMPA $01
            8119 | 27 f4    : BEQ  $810F
            811b | d6 00    : LDB  $00
            811d | 81 fe    : CMPA #$FE
            811f | 26 01    : BNE  $8122
            8121 | 5a       : DECB       // decrease code -01
            8122 | 81 fd    : CMPA #$FD
            8124 | 26 01    : BNE  $8127
            8126 | 5c       : INCB       // increase code +01
            8127 | 81 f7    : CMPA #$F7
            8129 | 26 02    : BNE  $812D
            812b | c0 10    : SUBB #$10  // decrease code -10
            812d | 81 fb    : CMPA #$FB
            812f | 26 02    : BNE  $8133
            8131 | cb 10    : ADDB #$10  // increase code +10
            8133 | d7 00    : STB  $00
            8135 | 81 ef    : CMPA #$EF
            8137 | 27 05    : BEQ  $813E
            8139 | 81 df    : CMPA #$DF
            813b | 26 09    : BNE  $8146
            813d | 5f       : CLRB
            813e | f7 56 07 : STB  $5607 // send sound code
            8141 | c6 01    : LDB  #$01  // enable sound
            8143 | f7 56 08 : STB  $5608
            8146 | 20 c7    : BRA  $810F
            -->
        </script>
        <script state="run">
            <output format="----- yie ar kung-fu 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@5100</argument>
            </output>
        </script>
        <script state="off">
            <action>maincpu.mb@8215 =               2e</action>
            <action>maincpu.mq@810f = 96c526108e58419f</action>
            <action>maincpu.mq@8117 = fd862197ff860197</action>
            <action>maincpu.mq@811f = ca0cc5390aca261c</action>
            <action>maincpu.mq@8127 = 860197ca0aff2715</action>
            <action>maincpu.mq@812f = c6209efd301e9ffd</action>
            <action>maincpu.mq@8137 = 8610a7846f1f3088</action>
            <action>maincpu.mq@813f = 405a26f6394f39cc</action>
            <action>maincpu.mq@8147 = 00008e5030ed818c</action>
        </script>
    </cheat>

    <cheat desc="skip ram/rom check">
        <script state="on">
            <action>maincpu.md@817c = 16fe8112</action>
        </script>
        <script state="off">
            <action>maincpu.md@817c = 4f8e5000</action>
        </script>
    </cheat>

</mamecheat>
yieartf.xml

Code: Select all

<!-- Yie Ar Kung-Fu (bootleg GX361 conversion) -->
<mamecheat version="1">

    <cheat desc="no hit">
        <script state="on">
            <action>maincpu.mw@9fa8 = 202e</action> <!-- attack -->
            <action>maincpu.mw@a0e3 = 1216</action> <!-- firearms -->
        </script>
        <script state="off">
            <action>maincpu.mw@9fa8 = 262e</action>
            <action>maincpu.mw@a0e3 = 1026</action>
        </script>
    </cheat>

    <cheat desc="auto fire">
        <script state="on">
            <action>maincpu.mw@962a = 0000</action> <!-- diagonal upper back punch -->
            <action>maincpu.mw@970a = 2700</action> <!-- normal attack -->
            <action>maincpu.mw@97bc = 8600</action> <!-- upper attack -->
            <action>maincpu.mw@99df = 0000</action> <!-- diagonal upper back kick -->
            <action>maincpu.mw@c421 = 0000</action> <!-- diagonal upper front attack -->
        </script>
        <script state="off">
            <action>maincpu.mw@962a = 0100</action>
            <action>maincpu.mw@970a = 2720</action>
            <action>maincpu.mw@97bc = 8605</action>
            <action>maincpu.mw@99df = fbce</action>
            <action>maincpu.mw@c421 = d18c</action>
        </script>
    </cheat>

    <cheat desc="attack speed up">
        <comment>normal attack only. not diagonal upper front/back attack</comment>
        <script state="on">
            <action>maincpu.mb@93de = 00</action>
        </script>
        <script state="off">
            <action>maincpu.mb@93de = 09</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.mb@819e =               10</action> <!-- disable crosshatch -->
            <action>maincpu.mq@8114 = 9701b61281b71000</action>
            <action>maincpu.mq@811c = 910127f4d60081fe</action>
            <action>maincpu.mq@8124 = 26015a81fd26015c</action>
            <action>maincpu.mq@812c = 81f72602c01081fb</action>
            <action>maincpu.mq@8134 = 2602cb10d70081ef</action>
            <action>maincpu.mq@813c = 270581df26095ff7</action>
            <action>maincpu.mq@8144 = 2e07c601f72e0820</action>
            <action>maincpu.mq@814c = c7cc00008e2830ed</action>
            <!--
            8114 | 97 01    : STA  $01
            8116 | b6 4e 01 : LDA  $1281 // read input
            8119 | b7 4f 00 : STA  $1000 // watchdog
            811c | 91 01    : CMPA $01
            811e | 27 f4    : BEQ  $8114
            8120 | d6 00    : LDB  $00
            8122 | 81 fe    : CMPA #$FE
            8124 | 26 01    : BNE  $8127
            8126 | 5a       : DECB       // decrease code -01
            8127 | 81 fd    : CMPA #$FD
            8129 | 26 01    : BNE  $812C
            812b | 5c       : INCB       // increase code +01
            812c | 81 f7    : CMPA #$F7
            812e | 26 02    : BNE  $8132
            8130 | c0 10    : SUBB #$10  // decrease code -10
            8132 | 81 fb    : CMPA #$FB
            8134 | 26 02    : BNE  $8138
            8136 | cb 10    : ADDB #$10  // increase code +10
            8138 | d7 00    : STB  $00
            813a | 81 ef    : CMPA #$EF
            813c | 27 05    : BEQ  $8143
            813e | 81 df    : CMPA #$DF
            8140 | 26 09    : BNE  $814B
            8142 | 5f       : CLRB
            8143 | f7 56 07 : STB  $2E07 // send sound code
            8146 | c6 01    : LDB  #$01  // enable sound
            8148 | f7 56 08 : STB  $2E08
            814b | 20 c7    : BRA  $8114
            -->
        </script>
        <script state="run">
            <output format="----- yie ar kung-fu 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@2900</argument>
            </output>
        </script>
        <script state="off">
            <action>maincpu.mb@819e =               2e</action>
            <action>maincpu.mq@8114 = 96c526108e30209f</action>
            <action>maincpu.mq@811c = fd862197ff860197</action>
            <action>maincpu.mq@8124 = ca0cc5390aca261e</action>
            <action>maincpu.mq@812c = 860197ca0aff2717</action>
            <action>maincpu.mq@8134 = c6209efd301f9ffd</action>
            <action>maincpu.mq@813c = 8610a7846f890800</action>
            <action>maincpu.mq@8144 = 3088405a26f4394f</action>
            <action>maincpu.mq@814c = 39cc00008e2830ed</action>
        </script>
    </cheat>

</mamecheat>
  • "attack speed up" : You get speed-up for normal attack. Not diagonal upper front/back attack.
  • "skip ram/rom check" : No code for yieartf because ram/rom check is deleted in this (bootleg) version.
BTW, this game has the timer (increase, time over happens at 0x3c00) so "infinite time" (RAM) code is available.
Image

yiear.xml, yiear2.xml

Code: Select all

    <cheat desc="infinite time">
        <script state="run">
            <action>maincpu.pw@5439 = 0000</action>
        </script>
    </cheat>
yieartf.xml

Code: Select all

    <cheat desc="infinite time">
        <script state="run">
            <action>maincpu.pw@2c39 = 0000</action>
        </script>
    </cheat>
jman

my wip cheat database back-up (06/01/2025 ver.)
https://u3.getuploader.com/...../download/58
downloadpass : jman2020
jman
Posts: 1316
Joined: Tue Dec 01, 2020 1:24 pm
Been thanked: 9 times

[yiear]+ Yie Ar Kung-Fu

Post by jman »

yiear.xml

Code: Select all

<!-- Yie Ar Kung-Fu (program code I) -->
<mamecheat version="1">

    <cheat desc="no hit">
        <script state="on">
            <action>maincpu.mw@A05B = 202E</action> <!-- attack -->
            <action>maincpu.mw@A196 = 1216</action> <!-- firearms -->
        </script>
        <script state="off">
            <action>maincpu.mw@A05B = 262E</action>
            <action>maincpu.mw@A196 = 1026</action>
        </script>
    </cheat>

    <cheat desc="rapid fire">
        <script state="on">
            <action>maincpu.mw@96D3 = 0000</action> <!-- diagonal upper back punch -->
            <action>maincpu.mw@97B7 = 2700</action> <!-- normal attack -->
            <action>maincpu.mw@986B = 8600</action> <!-- upper attack -->
            <action>maincpu.mw@9A91 = 0000</action> <!-- diagonal upper back kick -->
            <action>maincpu.mw@C511 = 0000</action> <!-- diagonal upper front attack -->
        </script>
        <script state="off">
            <action>maincpu.mw@96D3 = 0105</action>
            <action>maincpu.mw@97B7 = 2721</action>
            <action>maincpu.mw@986C = 8605</action>
            <action>maincpu.mw@9A91 = FBC0</action>
            <action>maincpu.mw@C511 = D140</action>
        </script>
    </cheat>

    <cheat desc="attack speed up">
        <comment>normal attack only. not diagonal upper front/back attack</comment>
        <script state="on">
            <action>maincpu.mb@947D = 00</action>
        </script>
        <script state="off">
            <action>maincpu.mb@947D = 09</action>
        </script>
    </cheat>

    <cheat desc="easy stage finish">
        <comment>press start button to finish current stage</comment>
        <script state="on">
            <action>maincpu.md@A6CE = BD570027</action>
        </script>
        <script state="run">
            <action>maincpu.pq@5700 = 3402DCEF8504270A</action>
            <action>maincpu.pq@5708 = C5022606D6F1C508</action>
            <action>maincpu.pq@5710 = 2008D6E127F6D6F1</action>
            <action>maincpu.pq@5718 = C51026063502E6C8</action>
            <action>maincpu.pq@5720 = 3A3935025F390000</action>
            <!--
            5700 | 34 02    : PSHS   A
            5702 | DC EF    : LDD    $EF
            5704 | 85 04    : BITA   #$04  // check cabinet type
            5706 | 27 0A    : BEQ    $5712
            5708 | C5 02    : BITB   #$02  // check upright controls
            570A | 26 06    : BNE    $5712
            570C | D6 F1    : LDB    $F1
            570E | C5 08    : BITB   #$08  // check 1P start button
            5710 | 20 08    : BRA    $571A
            5712 | D6 E1    : LDB    $E1   // check player
            5714 | 27 F6    : BEQ    $570C
            5716 | D6 F1    : LDB    $F1
            5718 | C5 10    : BITB   #$10  // check 2P start button
            571A | 26 06    : BNE    $5722
            571C | 35 02    : PULS   A
            571E | E6 C8 3A : LDB    $3A,U
            5721 | 39       : RTS
            5722 | 35 02    : PULS   A
            5724 | 5F       : CLRB
            5725 | 39       : RTS
            -->
        </script>
        <script state="off">
            <action>maincpu.md@A6CE = E6C83A27        </action>
            <action>maincpu.pq@5700 = 0000000000000000</action>
            <action>maincpu.pq@5708 = 0000000000000000</action>
            <action>maincpu.pq@5710 = 0000000000000000</action>
            <action>maincpu.pq@5718 = 0000000000000000</action>
            <action>maincpu.pq@5720 = 0000000000000000</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.mb@8219 = 10              </action> <!-- disable crosshatch -->
            <action>maincpu.mq@8115 = 9701B64E01B74F00</action>
            <action>maincpu.mq@811D = 910127F4D60081FE</action>
            <action>maincpu.mq@8125 = 26015A81FD26015C</action>
            <action>maincpu.mq@812D = 81F72602C01081FB</action>
            <action>maincpu.mq@8135 = 2602CB10D70081EF</action>
            <action>maincpu.mq@813D = 270581DF26095FF7</action>
            <action>maincpu.mq@8145 = 5607C601F7560820</action>
            <action>maincpu.mq@814D = C7128E5030ED818C</action>
            <!--
            8115 | 97 01    : STA    $01
            8117 | B6 4E 01 : LDA    $4E01 // read input
            811A | B7 4F 00 : STA    $4F00 // watchdog
            811D | 91 01    : CMPA   $01
            811F | 27 F4    : BEQ    $8115
            8121 | D6 00    : LDB    $00
            8123 | 81 FE    : CMPA   #$FE
            8125 | 26 01    : BNE    $8128
            8127 | 5A       : DECB         // decrease code -01
            8128 | 81 FD    : CMPA   #$FD
            812A | 26 01    : BNE    $812D
            812C | 5C       : INCB         // increase code +01
            812D | 81 F7    : CMPA   #$F7
            812F | 26 02    : BNE    $8133
            8131 | C0 10    : SUBB   #$10  // decrease code -10
            8133 | 81 FB    : CMPA   #$FB
            8135 | 26 02    : BNE    $8139
            8137 | CB 10    : ADDB   #$10  // increase code +10
            8139 | D7 00    : STB    $00
            813B | 81 EF    : CMPA   #$EF
            813D | 27 05    : BEQ    $8144 // play sound
            813F | 81 DF    : CMPA   #$DF
            8141 | 26 09    : BNE    $814C
            8143 | 5F       : CLRB         // stop sound
            8144 | F7 56 07 : STB    $5607 // send sound code
            8147 | C6 01    : LDB    #$01  // enable sound
            8149 | F7 56 08 : STB    $5608
            814C | 20 C7    : BRA    $8115
            -->
        </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@5100</argument>
            </output>
        </script>
        <script state="off">
            <action>maincpu.mb@8219 = 2E              </action>
            <action>maincpu.mq@8115 = 96C526108E58419F</action>
            <action>maincpu.mq@811D = FD862197FF860197</action>
            <action>maincpu.mq@8125 = CA0CC5390ACA261C</action>
            <action>maincpu.mq@812D = 860197CA0AFF2715</action>
            <action>maincpu.mq@8135 = C6209EFD301E9FFD</action>
            <action>maincpu.mq@813D = 8610A7846F1F3088</action>
            <action>maincpu.mq@8145 = 405A26F6394F39CC</action>
            <action>maincpu.mq@814D = 00008E5030ED818C</action>
        </script>
    </cheat>

    <cheat desc="skip ram/rom check">
        <script state="on">
            <action>maincpu.md@8183 = 16FE7A12</action>
        </script>
        <script state="off">
            <action>maincpu.md@8183 = 4F8E5000</action>
        </script>
    </cheat>

</mamecheat>
yiear2.xml

Code: Select all

<!-- Yie Ar Kung-Fu (program code G) -->
<mamecheat version="1">

    <cheat desc="no hit">
        <script state="on">
            <action>maincpu.mw@A049 = 202E</action> <!-- attack -->
            <action>maincpu.mw@A184 = 1216</action> <!-- firearms -->
        </script>
        <script state="off">
            <action>maincpu.mw@A049 = 262E</action>
            <action>maincpu.mw@A184 = 1026</action>
        </script>
    </cheat>

    <cheat desc="rapid fire">
        <script state="on">
            <action>maincpu.mw@96C1 = 0000</action> <!-- diagonal upper back punch -->
            <action>maincpu.mw@97A5 = 2700</action> <!-- normal attack -->
            <action>maincpu.mw@9859 = 8600</action> <!-- upper attack -->
            <action>maincpu.mw@9A7F = 0000</action> <!-- diagonal upper back kick -->
            <action>maincpu.mw@C507 = 0000</action> <!-- diagonal upper front attack -->
        </script>
        <script state="off">
            <action>maincpu.mw@96C1 = 0105</action>
            <action>maincpu.mw@97A5 = 2721</action>
            <action>maincpu.mw@9859 = 8605</action>
            <action>maincpu.mw@9A7F = FBC0</action>
            <action>maincpu.mw@C507 = D138</action>
        </script>
    </cheat>

    <cheat desc="attack speed up">
        <comment>normal attack only. not diagonal upper front/back attack</comment>
        <script state="on">
            <action>maincpu.mb@946B = 00</action>
        </script>
        <script state="off">
            <action>maincpu.mb@946B = 09</action>
        </script>
    </cheat>

    <cheat desc="easy stage finish">
        <comment>press start button to finish current stage</comment>
        <script state="on">
            <action>maincpu.md@A6B5 = BD570027</action>
        </script>
        <script state="run">
            <action>maincpu.pq@5700 = 3402DCEF8504270A</action>
            <action>maincpu.pq@5708 = C5022606D6F1C508</action>
            <action>maincpu.pq@5710 = 2008D6E127F6D6F1</action>
            <action>maincpu.pq@5718 = C51026063502E6C8</action>
            <action>maincpu.pq@5720 = 3A3935025F390000</action>
            <!--
            5700 | 34 02    : PSHS   A
            5702 | DC EF    : LDD    $EF
            5704 | 85 04    : BITA   #$04  // check cabinet type
            5706 | 27 0A    : BEQ    $5712
            5708 | C5 02    : BITB   #$02  // check upright controls
            570A | 26 06    : BNE    $5712
            570C | D6 F1    : LDB    $F1
            570E | C5 08    : BITB   #$08  // check 1P start button
            5710 | 20 08    : BRA    $571A
            5712 | D6 E1    : LDB    $E1   // check player
            5714 | 27 F6    : BEQ    $570C
            5716 | D6 F1    : LDB    $F1
            5718 | C5 10    : BITB   #$10  // check 2P start button
            571A | 26 06    : BNE    $5722
            571C | 35 02    : PULS   A
            571E | E6 C8 3A : LDB    $3A,U
            5721 | 39       : RTS
            5722 | 35 02    : PULS   A
            5724 | 5F       : CLRB
            5725 | 39       : RTS
            -->
        </script>
        <script state="off">
            <action>maincpu.md@A6B5 = E6C83A27        </action>
            <action>maincpu.pq@5700 = 0000000000000000</action>
            <action>maincpu.pq@5708 = 0000000000000000</action>
            <action>maincpu.pq@5710 = 0000000000000000</action>
            <action>maincpu.pq@5718 = 0000000000000000</action>
            <action>maincpu.pq@5720 = 0000000000000000</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.mb@8215 = 10              </action> <!-- disable crosshatch -->
            <action>maincpu.mq@810F = 9701B64E01B74F00</action>
            <action>maincpu.mq@8117 = 910127F4D60081FE</action>
            <action>maincpu.mq@811F = 26015A81FD26015C</action>
            <action>maincpu.mq@8127 = 81F72602C01081FB</action>
            <action>maincpu.mq@812F = 2602CB10D70081EF</action>
            <action>maincpu.mq@8137 = 270581DF26095FF7</action>
            <action>maincpu.mq@813F = 5607C601F7560820</action>
            <action>maincpu.mq@8147 = C7128E5030ED818C</action>
            <!--
            810F | 97 01    : STA    $01
            8111 | B6 4E 01 : LDA    $4E01 // read input
            8114 | B7 4F 00 : STA    $4F00 // watchdog
            8117 | 91 01    : CMPA   $01
            8119 | 27 F4    : BEQ    $810F
            811B | D6 00    : LDB    $00
            811D | 81 FE    : CMPA   #$FE
            811F | 26 01    : BNE    $8122
            8121 | 5A       : DECB         // decrease code -01
            8122 | 81 FD    : CMPA   #$FD
            8124 | 26 01    : BNE    $8127
            8126 | 5C       : INCB         // increase code +01
            8127 | 81 F7    : CMPA   #$F7
            8129 | 26 02    : BNE    $812D
            812B | C0 10    : SUBB   #$10  // decrease code -10
            812D | 81 FB    : CMPA   #$FB
            812F | 26 02    : BNE    $8133
            8131 | CB 10    : ADDB   #$10  // increase code +10
            8133 | D7 00    : STB    $00
            8135 | 81 EF    : CMPA   #$EF
            8137 | 27 05    : BEQ    $813E // play sound
            8139 | 81 DF    : CMPA   #$DF
            813B | 26 09    : BNE    $8146
            813D | 5F       : CLRB         // stop sound
            813E | F7 56 07 : STB    $5607 // send sound code
            8141 | C6 01    : LDB    #$01  // enable sound
            8143 | F7 56 08 : STB    $5608
            8146 | 20 C7    : BRA    $810F
            -->
        </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@5100</argument>
            </output>
        </script>
        <script state="off">
            <action>maincpu.mb@8215 = 2E              </action>
            <action>maincpu.mq@810F = 96C526108E58419F</action>
            <action>maincpu.mq@8117 = FD862197FF860197</action>
            <action>maincpu.mq@811F = CA0CC5390ACA261C</action>
            <action>maincpu.mq@8127 = 860197CA0AFF2715</action>
            <action>maincpu.mq@812F = C6209EFD301E9FFD</action>
            <action>maincpu.mq@8137 = 8610A7846F1F3088</action>
            <action>maincpu.mq@813F = 405A26F6394F39CC</action>
            <action>maincpu.mq@8147 = 00008E5030ED818C</action>
        </script>
    </cheat>

    <cheat desc="skip ram/rom check">
        <script state="on">
            <action>maincpu.md@817C = 16FE8112</action>
        </script>
        <script state="off">
            <action>maincpu.md@817C = 4F8E5000</action>
        </script>
    </cheat>

</mamecheat>
yieartf.xml

Code: Select all

<!-- Yie Ar Kung-Fu (bootleg GX361 conversion) -->
<mamecheat version="1">

    <cheat desc="no hit">
        <script state="on">
            <action>maincpu.mw@9FA8 = 202E</action> <!-- attack -->
            <action>maincpu.mw@A0E3 = 1216</action> <!-- firearms -->
        </script>
        <script state="off">
            <action>maincpu.mw@9FA8 = 262E</action>
            <action>maincpu.mw@A0E3 = 1026</action>
        </script>
    </cheat>

    <cheat desc="rapid fire">
        <script state="on">
            <action>maincpu.mw@962A = 0000</action> <!-- diagonal upper back punch -->
            <action>maincpu.mw@970A = 2700</action> <!-- normal attack -->
            <action>maincpu.mw@97BC = 8600</action> <!-- upper attack -->
            <action>maincpu.mw@99DF = 0000</action> <!-- diagonal upper back kick -->
            <action>maincpu.mw@C421 = 0000</action> <!-- diagonal upper front attack -->
        </script>
        <script state="off">
            <action>maincpu.mw@962A = 0100</action>
            <action>maincpu.mw@970A = 2720</action>
            <action>maincpu.mw@97BC = 8605</action>
            <action>maincpu.mw@99DF = FBCE</action>
            <action>maincpu.mw@C421 = D18C</action>
        </script>
    </cheat>

    <cheat desc="attack speed up">
        <comment>normal attack only. not diagonal upper front/back attack</comment>
        <script state="on">
            <action>maincpu.mb@93DE = 00</action>
        </script>
        <script state="off">
            <action>maincpu.mb@93DE = 09</action>
        </script>
    </cheat>

    <cheat desc="easy stage finish">
        <comment>press start button to finish current stage</comment>
        <script state="on">
            <action>maincpu.md@A623 = BD2F0027</action>
        </script>
        <script state="run">
            <action>maincpu.pq@2F00 = 3402DCEF8504270A</action>
            <action>maincpu.pq@2F08 = C5022606D6F1C508</action>
            <action>maincpu.pq@2F10 = 2008D6E127F6D6F1</action>
            <action>maincpu.pq@2F18 = C51026063502E6C8</action>
            <action>maincpu.pq@2F20 = 3A3935025F390000</action>
            <!--
            2F00 | 34 02    : PSHS   A
            2F02 | DC EF    : LDD    $EF
            2F04 | 85 04    : BITA   #$04  // check cabinet type
            2F06 | 27 0A    : BEQ    $2F12
            2F08 | C5 02    : BITB   #$02  // check upright controls
            2F0A | 26 06    : BNE    $2F12
            2F0C | D6 F1    : LDB    $F1
            2F0E | C5 08    : BITB   #$08  // check 1P start button
            2F10 | 20 08    : BRA    $2F1A
            2F12 | D6 E1    : LDB    $E1   // check player
            2F14 | 27 F6    : BEQ    $2F0C
            2F16 | D6 F1    : LDB    $F1
            2F18 | C5 10    : BITB   #$10  // check 2P start button
            2F1A | 26 06    : BNE    $2F22
            2F1C | 35 02    : PULS   A
            2F1E | E6 C8 3A : LDB    $3A,U
            2F21 | 39       : RTS
            2F22 | 35 02    : PULS   A
            2F24 | 5F       : CLRB
            2F25 | 39       : RTS
            -->
        </script>
        <script state="off">
            <action>maincpu.md@A623 = E6C83A27        </action>
            <action>maincpu.pq@2F00 = 0000000000000000</action>
            <action>maincpu.pq@2F08 = 0000000000000000</action>
            <action>maincpu.pq@2F10 = 0000000000000000</action>
            <action>maincpu.pq@2F18 = 0000000000000000</action>
            <action>maincpu.pq@2F20 = 0000000000000000</action>
        </script>
    </cheat>

    <cheat desc="sound test mode">
        <comment>rest the game (F3) to enter sound test mode</comment>
        <script state="on">
            <action>maincpu.mb@819E = 10              </action> <!-- disable crosshatch -->
            <action>maincpu.mq@8114 = 9701B61281B71000</action>
            <action>maincpu.mq@811C = 910127F4D60081FE</action>
            <action>maincpu.mq@8124 = 26015A81FD26015C</action>
            <action>maincpu.mq@812C = 81F72602C01081FB</action>
            <action>maincpu.mq@8134 = 2602CB10D70081EF</action>
            <action>maincpu.mq@813C = 270581DF26095FF7</action>
            <action>maincpu.mq@8144 = 2E07C601F72E0820</action>
            <action>maincpu.mq@814C = C7CC00008E2830ED</action>
            <!--
            8114 | 97 01    : STA    $01
            8116 | B6 12 81 : LDA    $1281 // read input
            8119 | B7 10 00 : STA    $1000 // watchdog
            811C | 91 01    : CMPA   $01
            811E | 27 F4    : BEQ    $8114
            8120 | D6 00    : LDB    $00
            8122 | 81 FE    : CMPA   #$FE
            8124 | 26 01    : BNE    $8127
            8126 | 5A       : DECB         // decrease code -01
            8127 | 81 FD    : CMPA   #$FD
            8129 | 26 01    : BNE    $812C
            812B | 5C       : INCB         // increase code +01
            812C | 81 F7    : CMPA   #$F7
            812E | 26 02    : BNE    $8132
            8130 | C0 10    : SUBB   #$10  // decrease code -10
            8132 | 81 FB    : CMPA   #$FB
            8134 | 26 02    : BNE    $8138
            8136 | CB 10    : ADDB   #$10  // increase code +10
            8138 | D7 00    : STB    $00
            813A | 81 EF    : CMPA   #$EF
            813C | 27 05    : BEQ    $8143 // play sound
            813E | 81 DF    : CMPA   #$DF
            8140 | 26 09    : BNE    $814B
            8142 | 5F       : CLRB         // stop sound
            8143 | F7 2E 07 : STB    $2E07 // send sound code
            8146 | C6 01    : LDB    #$01  // enable sound
            8148 | F7 2E 08 : STB    $2E08
            814B | 20 C7    : BRA    $8114
            -->
        </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@2900</argument>
            </output>
        </script>
        <script state="off">
            <action>maincpu.mb@819E = 2E              </action>
            <action>maincpu.mq@8114 = 96C526108E30209F</action>
            <action>maincpu.mq@811C = FD862197FF860197</action>
            <action>maincpu.mq@8124 = CA0CC5390ACA261E</action>
            <action>maincpu.mq@812C = 860197CA0AFF2717</action>
            <action>maincpu.mq@8134 = C6209EFD301F9FFD</action>
            <action>maincpu.mq@813C = 8610A7846F890800</action>
            <action>maincpu.mq@8144 = 3088405A26F4394F</action>
            <action>maincpu.mq@814C = 39CC00008E2830ED</action>
        </script>
    </cheat>

</mamecheat>
"easy stage finish" : Added new. You can finish current stage when you press start button.
jman

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