Code: Select all
<!-- Twin Cobra (USA) -->
<mamecheat version="1">
<cheat desc="no hit">
<script state="on">
<action>mdslot:cart:rom.mw@3B6A = 6006</action> <!-- enemy -->
<action>mdslot:cart:rom.mw@3D24 = 6006</action> <!-- bullet -->
</script>
<script state="off">
<action>mdslot:cart:rom.mw@3B6A = 6100</action>
<action>mdslot:cart:rom.mw@3D24 = 6406</action>
</script>
</cheat>
<cheat desc="rapid fire">
<script state="on">
<action>mdslot:cart:rom.mw@264A = 4E71</action>
<action>mdslot:cart:rom.mw@2652 = 0000</action>
</script>
<script state="off">
<action>mdslot:cart:rom.mw@264A = 6618</action>
<action>mdslot:cart:rom.mw@2652 = 0007</action>
</script>
</cheat>
<cheat desc="player speed">
<parameter>
<item value="0x7401">01 (slow)</item>
<item value="0x7402">02 </item>
<item value="0x7403">03 </item>
<item value="0x7404">04 </item>
<item value="0x7405">05 (fast)</item>
</parameter>
<script state="change">
<action>mdslot:cart:rom.mw@24AC = param</action>
</script>
<script state="off">
<action>mdslot:cart:rom.mw@24AC = 5242</action>
</script>
</cheat>
<cheat desc="bullet speed">
<parameter>
<item value="0x0001">01 (slow)</item>
<item value="0x0008">02 </item>
<item value="0x000c">03 </item>
<item value="0x0010">04 </item>
<item value="0x0014">05 (fast)</item>
</parameter>
<script state="on">
<!-- red -->
<action>mdslot:cart:rom.md@02796 = 4EB801B0 </action>
<action>mdslot:cart:rom.mq@001B0 = 046A000000084E75</action>
<!--
001B0 | 046A xxxx 0008 : subi.w #$xx, ($8,A2)
001B6 | 4E75 : rts
-->
<!-- green, blue, yellow -->
<action>mdslot:cart:rom.mq@027FE = 4EB9000A0000D16A</action>
<action>mdslot:cart:rom.mq@A0000 = 323C0000102A000D</action>
<action>mdslot:cart:rom.mq@A0008 = 488067066A024441</action>
<action>mdslot:cart:rom.mq@A0010 = 30014E7500000000</action>
<!--
A0000 | 323C xxxx : move.w #$xx, D1
A0004 | 102A 000D : move.b ($d,A2), D0
A0008 | 4880 : ext.w D0
A000A | 6706 : beq $a0012
A000C | 6A02 : bpl $a0010
A000E | 4441 : neg.w D1
A0010 | 3001 : move.w D1, D0
A0012 | 4E75 : rts
-->
</script>
<script state="change">
<action>mdslot:cart:rom.mw@001B2 = param</action>
<action>mdslot:cart:rom.mw@A0002 = param</action>
</script>
<script state="off">
<action>mdslot:cart:rom.md@02790 = 516A0008 </action>
<action>mdslot:cart:rom.mq@001B0 = 2020202020202020</action>
<action>mdslot:cart:rom.mq@027f8 = 102A000D4880D16A</action>
<action>mdslot:cart:rom.mq@A0000 = FFFFFFFFFFFFFFFF</action>
<action>mdslot:cart:rom.mq@A0008 = FFFFFFFFFFFFFFFF</action>
<action>mdslot:cart:rom.mq@A0010 = FFFFFFFFFFFFFFFF</action>
</script>
</cheat>
<cheat desc="sound test mode">
<!-- music : 0x01 - 0x15, sfx : 0x21 - 0x29, sfx(psg) : 0x2d - 0x30 -->
<comment>reset the game (F3) to enter sound test mode</comment>
<script state="on">
<action>mdslot:cart:rom.mq@08256 = 4EF9000A00206100</action>
<action>mdslot:cart:rom.mq@A0020 = 41F8800011FC0004</action>
<action>mdslot:cart:rom.mq@A0028 = F62A4EB87D541438</action>
<action>mdslot:cart:rom.mq@A0030 = F60567F00C020004</action>
<action>mdslot:cart:rom.mq@A0038 = 660253100C020008</action>
<action>mdslot:cart:rom.mq@A0040 = 660252100C020002</action>
<action>mdslot:cart:rom.mq@A0048 = 6604041000100C02</action>
<action>mdslot:cart:rom.mq@A0050 = 0001660406100010</action>
<action>mdslot:cart:rom.mq@A0058 = 0C02004066321010</action>
<action>mdslot:cart:rom.mq@A0060 = 0C0000166C084EB9</action>
<action>mdslot:cart:rom.mq@A0068 = 000083F460220400</action>
<action>mdslot:cart:rom.mq@A0070 = 00160C0000166C0C</action>
<action>mdslot:cart:rom.mq@A0078 = 42B8D1184EB90000</action>
<action>mdslot:cart:rom.mq@A0080 = 8428600C04000016</action>
<action>mdslot:cart:rom.mq@A0088 = 428112004EB80B08</action>
<action>mdslot:cart:rom.mq@A0090 = 0C020010660611FC</action>
<action>mdslot:cart:rom.mq@A0098 = 00FFD11A6086FFFF</action>
<!--
A0020 | 41F8 8000 : lea $8000.w, A0 // sound code address ($ff8000)
A0024 | 11FC 0004 F62A : move.b #$4, $f62a.w // wait interrupt
A002A | 4EB8 7D54 : jsr $7d54.w
A002E | 1438 F605 : move.b $f605.w, D2 // read input ($fff605)
A0032 | 67F0 : beq $a0024
A0034 | 0C02 0004 : cmpi.b #$4, D2
A0038 | 6602 : bne $a003c
A003A | 5310 : subq.b #1, (A0) // decrease code -01
A003C | 0C02 0008 : cmpi.b #$8, D2
A0040 | 6602 : bne $a0044
A0042 | 5210 : addq.b #1, (A0) // increase code +01
A0044 | 0C02 0002 : cmpi.b #$2, D2
A0048 | 6604 : bne $a004e
A004A | 0410 0010 : subi.b #$10, (A0) // decrease code -10
A004E | 0C02 0001 : cmpi.b #$1, D2
A0052 | 6604 : bne $a0058
A0054 | 0610 0010 : addi.b #$10, (A0) // increase code +10
A0058 | 0C02 0040 : cmpi.b #$40, D2
A005C | 6632 : bne $a0090
A005E | 1010 : move.b (A0), D0 // play sound
A0060 | 0C00 0016 : cmpi.b #$16, D0
A0064 | 6C08 : bge $a006e
A0066 | 4EB9 0000 83F4 : jsr $83f4.l // music
A006C | 6022 : bra $a0090
A006E | 0400 0016 : subi.b #$16, D0
A0072 | 0C00 0016 : cmpi.b #$16, D0
A0076 | 6C0C : bge $a0084
A0078 | 42B8 D118 : clr.l $d118.w // sfx
A007C | 4EB9 0000 8428 : jsr $8428.l
A0082 | 600C : bra $a0090
A0084 | 0400 0016 : subi.b #$16, D0 // sfx(psg)
A0088 | 4281 : clr.l D1
A008A | 1200 : move.b D0, D1
A008C | 4EB8 0B08 : jsr $b08.w
A0090 | 0C02 0010 : cmpi.b #$10, D2
A0094 | 6606 : bne $a009c
A0096 | 11FC 00FF D11A : move.b #$ff, $d11a.w // stop sound
A009C | 6086 : bra $a0024
-->
</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="<< sound code %02X >>" line="19" align="center" >
<argument>maincpu.pb@FF8000</argument>
</output>
</script>
<script state="off">
<action>mdslot:cart:rom.mq@08216 = 33C000C000046100</action>
<action>mdslot:cart:rom.mq@9FF90 = FFFFFFFFFFFFFFFF</action>
<action>mdslot:cart:rom.mq@9FF98 = FFFFFFFFFFFFFFFF</action>
<action>mdslot:cart:rom.mq@9FFA0 = FFFFFFFFFFFFFFFF</action>
<action>mdslot:cart:rom.mq@9FFA8 = FFFFFFFFFFFFFFFF</action>
<action>mdslot:cart:rom.mq@9FFB0 = FFFFFFFFFFFFFFFF</action>
<action>mdslot:cart:rom.mq@9FFB8 = FFFFFFFFFFFFFFFF</action>
<action>mdslot:cart:rom.mq@9FFC0 = FFFFFFFFFFFFFFFF</action>
<action>mdslot:cart:rom.mq@9FFC8 = FFFFFFFFFFFFFFFF</action>
<action>mdslot:cart:rom.mq@9FFD0 = FFFFFFFFFFFFFFFF</action>
<action>mdslot:cart:rom.mq@9FFD8 = FFFFFFFFFFFFFFFF</action>
<action>mdslot:cart:rom.mq@9FFE0 = FFFFFFFFFFFFFFFF</action>
<action>mdslot:cart:rom.mq@9FFE8 = FFFFFFFFFFFFFFFF</action>
<action>mdslot:cart:rom.mq@9FFF0 = FFFFFFFFFFFFFFFF</action>
<action>mdslot:cart:rom.mq@9FFF8 = FFFFFFFFFFFFFFFF</action>
<action>mdslot:cart:rom.mq@A0000 = FFFFFFFFFFFFFFFF</action>
<action>mdslot:cart:rom.mq@A0008 = FFFFFFFFFFFFFFFF</action>
</script>
</cheat>
</mamecheat>
Code: Select all
<!-- Kyuukyoku Tiger (Japan) -->
<mamecheat version="1">
<cheat desc="no hit">
<script state="on">
<action>mdslot:cart:rom.mw@3B58 = 6006</action> <!-- enemy -->
<action>mdslot:cart:rom.mw@3D12 = 6006</action> <!-- bullet -->
</script>
<script state="off">
<action>mdslot:cart:rom.mw@3B58 = 6100</action>
<action>mdslot:cart:rom.mw@3D12 = 6406</action>
</script>
</cheat>
<cheat desc="rapid fire">
<script state="on">
<action>mdslot:cart:rom.mw@2644 = 4E71</action>
<action>mdslot:cart:rom.mw@264C = 0000</action>
</script>
<script state="off">
<action>mdslot:cart:rom.mw@2644 = 6618</action>
<action>mdslot:cart:rom.mw@264C = 0007</action>
</script>
</cheat>
<cheat desc="player speed">
<parameter>
<item value="0x7401">01 (slow)</item>
<item value="0x7402">02 </item>
<item value="0x7403">03 </item>
<item value="0x7404">04 </item>
<item value="0x7405">05 (fast)</item>
</parameter>
<script state="change">
<action>mdslot:cart:rom.mw@24AC = param</action>
</script>
<script state="off">
<action>mdslot:cart:rom.mw@24AC = 5242</action>
</script>
</cheat>
<cheat desc="bullet speed">
<parameter>
<item value="0x0001">01 (slow)</item>
<item value="0x0008">02 </item>
<item value="0x000c">03 </item>
<item value="0x0010">04 </item>
<item value="0x0014">05 (fast)</item>
</parameter>
<script state="on">
<!-- red -->
<action>mdslot:cart:rom.md@02790 = 4EB801B0 </action>
<action>mdslot:cart:rom.mq@001B0 = 046A000000084E75</action>
<!--
001B0 | 046A xxxx 0008 : subi.w #$xx, ($8,A2)
001B6 | 4E75 : rts
-->
<!-- green, blue, yellow -->
<action>mdslot:cart:rom.mq@027F8 = 4EB900037FD0D16A</action>
<action>mdslot:cart:rom.mq@37FD0 = 323C0000102A000D</action>
<action>mdslot:cart:rom.mq@37FD8 = 488067066A024441</action>
<action>mdslot:cart:rom.mq@37FE0 = 30014E7500000000</action>
<!--
37FD0 | 323C xxxx : move.w #$xx, D1
37FD4 | 102A 000D : move.b ($d,A2), D0
37FD8 | 4880 : ext.w D0
37FDA | 6706 : beq $37fe2
37FDC | 6A02 : bpl $37fe0
37FDE | 4441 : neg.w D1
37FE0 | 3001 : move.w D1, D0
37FE2 | 4E75 : rts
-->
</script>
<script state="change">
<action>mdslot:cart:rom.mw@001B2 = param</action>
<action>mdslot:cart:rom.mw@37FD2 = param</action>
</script>
<script state="off">
<action>mdslot:cart:rom.md@02790 = 516A0008 </action>
<action>mdslot:cart:rom.mq@001B0 = 2020202020202020</action>
<action>mdslot:cart:rom.mq@027F8 = 102A000D4880D16A</action>
<action>mdslot:cart:rom.mq@37FD0 = 0000000000000000</action>
<action>mdslot:cart:rom.mq@37FD8 = 0000000000000000</action>
<action>mdslot:cart:rom.mq@37FE0 = 0000000000000000</action>
</script>
</cheat>
<cheat desc="sound test mode">
<!-- music : 0x01 - 0x15, sfx : 0x21 - 0x29, sfx(psg) : 0x2d - 0x30 -->
<comment>reset the game (F3) to enter sound test mode</comment>
<script state="on">
<action>mdslot:cart:rom.mq@08216 = 4EF90009FF906100</action>
<action>mdslot:cart:rom.mq@9FF90 = 41F8800011FC0004</action>
<action>mdslot:cart:rom.mq@9FF98 = F62A4EB87D141438</action>
<action>mdslot:cart:rom.mq@9FFA0 = F60567F00C020004</action>
<action>mdslot:cart:rom.mq@9FFA8 = 660253100C020008</action>
<action>mdslot:cart:rom.mq@9FFB0 = 660252100C020002</action>
<action>mdslot:cart:rom.mq@9FFB8 = 6604041000100C02</action>
<action>mdslot:cart:rom.mq@9FFC0 = 0001660406100010</action>
<action>mdslot:cart:rom.mq@9FFC8 = 0C02004066321010</action>
<action>mdslot:cart:rom.mq@9FFD0 = 0C0000166C084EB9</action>
<action>mdslot:cart:rom.mq@9FFD8 = 000083B460220400</action>
<action>mdslot:cart:rom.mq@9FFE0 = 00160C0000166C0C</action>
<action>mdslot:cart:rom.mq@9FFE8 = 42B8D1164EB90000</action>
<action>mdslot:cart:rom.mq@9FFF0 = 83E8600C04000016</action>
<action>mdslot:cart:rom.mq@9FFF8 = 428112004EB80B04</action>
<action>mdslot:cart:rom.mq@A0000 = 0C020010660611FC</action>
<action>mdslot:cart:rom.mq@A0008 = 00FFD1186086FFFF</action>
<!--
9FF90 | 41F8 8000 : lea $8000.w, A0 // sound code address ($ff8000)
9FF94 | 11FC 0004 F62A : move.b #$4, $f62a.w // wait interrupt
9FF9A | 4EB8 7D14 : jsr $7d14.w
9FF9E | 1438 F605 : move.b $f605.w, D2 // read input ($fff605)
9FFA2 | 67F0 : beq $9ff94
9FFA4 | 0C02 0004 : cmpi.b #$4, D2
9FFA8 | 6602 : bne $9ffac
9FFAA | 5310 : subq.b #1, (A0) // decrease code -01
9FFAC | 0C02 0008 : cmpi.b #$8, D2
9FFB0 | 6602 : bne $9ffb4
9FFB2 | 5210 : addq.b #1, (A0) // increase code +01
9FFB4 | 0C02 0002 : cmpi.b #$2, D2
9FFB8 | 6604 : bne $9ffbe
9FFBA | 0410 0010 : subi.b #$10, (A0) // decrease code -10
9FFBE | 0C02 0001 : cmpi.b #$1, D2
9FFC2 | 6604 : bne $9ffc8
9FFC4 | 0610 0010 : addi.b #$10, (A0) // increase code +10
9FFC8 | 0C02 0040 : cmpi.b #$40, D2
9FFCC | 6632 : bne $a0000
9FFCE | 1010 : move.b (A0), D0 // play sound
9FFD0 | 0C00 0016 : cmpi.b #$16, D0
9FFD4 | 6C08 : bge $9ffde
9FFD6 | 4EB9 0000 83B4 : jsr $83b4.l // music
9FFDC | 6022 : bra $a0000
9FFDE | 0400 0016 : subi.b #$16, D0
9FFE2 | 0C00 0016 : cmpi.b #$16, D0
9FFE6 | 6C0C : bge $9fff4
9FFE8 | 42B8 D116 : clr.l $d116.w // sfx
9FFEC | 4EB9 0000 83E8 : jsr $83e8.l
9FFF2 | 600C : bra $a0000
9FFF4 | 0400 0016 : subi.b #$16, D0 // sfx(psg)
9FFF8 | 4281 : clr.l D1
9FFFA | 1200 : move.b D0, D1
9FFFC | 4EB8 0B04 : jsr $b04.w
A0000 | 0C02 0010 : cmpi.b #$10, D2
A0004 | 6606 : bne $a000c
A0006 | 11FC 00FF D118 : move.b #$ff, $d118.w // stop sound
A000C | 6086 : bra $9ff94
-->
</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="<< sound code %02X >>" line="19" align="center" >
<argument>maincpu.pb@FF8000</argument>
</output>
</script>
<script state="off">
<action>mdslot:cart:rom.mq@08216 = 33C000C000046100</action>
<action>mdslot:cart:rom.mq@9FF90 = FFFFFFFFFFFFFFFF</action>
<action>mdslot:cart:rom.mq@9FF98 = FFFFFFFFFFFFFFFF</action>
<action>mdslot:cart:rom.mq@9FFA0 = FFFFFFFFFFFFFFFF</action>
<action>mdslot:cart:rom.mq@9FFA8 = FFFFFFFFFFFFFFFF</action>
<action>mdslot:cart:rom.mq@9FFB0 = FFFFFFFFFFFFFFFF</action>
<action>mdslot:cart:rom.mq@9FFB8 = FFFFFFFFFFFFFFFF</action>
<action>mdslot:cart:rom.mq@9FFC0 = FFFFFFFFFFFFFFFF</action>
<action>mdslot:cart:rom.mq@9FFC8 = FFFFFFFFFFFFFFFF</action>
<action>mdslot:cart:rom.mq@9FFD0 = FFFFFFFFFFFFFFFF</action>
<action>mdslot:cart:rom.mq@9FFD8 = FFFFFFFFFFFFFFFF</action>
<action>mdslot:cart:rom.mq@9FFE0 = FFFFFFFFFFFFFFFF</action>
<action>mdslot:cart:rom.mq@9FFE8 = FFFFFFFFFFFFFFFF</action>
<action>mdslot:cart:rom.mq@9FFF0 = FFFFFFFFFFFFFFFF</action>
<action>mdslot:cart:rom.mq@9FFF8 = FFFFFFFFFFFFFFFF</action>
<action>mdslot:cart:rom.mq@A0000 = FFFFFFFFFFFFFFFF</action>
<action>mdslot:cart:rom.mq@A0008 = FFFFFFFFFFFFFFFF</action>
</script>
</cheat>
</mamecheat>