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 "skip ram/rom check" 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="<< sound code %2.2X >>" 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>
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 "skip ram/rom check" 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="<< sound code %2.2X >>" 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>
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 "skip ram/rom check" 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="<< sound code %2.2X >>" 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.
yiear.xml, yiear2.xml
Code: Select all
<cheat desc="infinite time">
<script state="run">
<action>maincpu.pw@5439 = 0000</action>
</script>
</cheat>
Code: Select all
<cheat desc="infinite time">
<script state="run">
<action>maincpu.pw@2c39 = 0000</action>
</script>
</cheat>