Code: Select all
<cheat desc="no hit">
<script state="on">
<action>maincpu.mb@1910 = c9</action>
</script>
<script state="off">
<action>maincpu.mb@1910 = 21</action>
</script>
</cheat>
<cheat desc="auto fire">
<script state="on">
<action>maincpu.mb@1af5 = 01</action>
</script>
<script state="off">
<action>maincpu.mb@1af5 = 1a</action>
</script>
</cheat>
<cheat desc="player speed">
<parameter min="0x01" max="0x08" step="0x01" />
<script state="on">
<action>maincpu.mb@1a89 = 00</action>
</script>
<script state="change">
<action>maincpu.mb@1a7c = param</action>
<action>maincpu.mb@1a82 = -param</action>
</script>
<script state="off">
<action>maincpu.mb@1a89 = 01</action>
<action>maincpu.mb@1a7c = 01</action>
<action>maincpu.mb@1a82 = fe</action>
</script>
</cheat>
<cheat desc="bullet spped">
<parameter>
<item value="0x01">01 (slow)</item>
<item value="0x06">02 </item>
<item value="0x0c">03 </item>
<item value="0x12">04 </item>
<item value="0x18">05 (fast)</item>
</parameter>
<script state="on">
<action>maincpu.md@1c11 = 86cfb0cd</action>
<action>maincpu.mq@cfb0 = ffffffc92b2b003e</action>
<!--
1c11 | cd b0 cf : call $cfb0
cfb0 | 3e xx : ld $xx
cfb2 | 2b : dec hl
cfb3 | 2b : dec hl
cfb4 | c9 : ret
-->
</script>
<script state="change">
<action>maincpu.mb@cfb1 = param</action>
</script>
<script state="off">
<action>maincpu.md@1c11 = 862b2b1a</action>
<action>maincpu.mq@cfb0 = ffffffffffffffff</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@0006 = 0599</action> <!-- skip some boot sequences -->
<action>maincpu.md@062d = 09cfc0c3</action>
<action>maincpu.mq@cfc0 = 843a590022000021</action>
<action>maincpu.mq@cfc8 = 2080fef6286fbd60</action>
<action>maincpu.mq@cfd0 = fe24012008fe2501</action>
<action>maincpu.mq@cfd8 = 20fe06187c032040</action>
<action>maincpu.mq@cfe0 = 18609032f23e0520</action>
<action>maincpu.mq@cfe8 = ffffffffffffffda</action>
<!--
cfc0 | 21 00 00 : ld hl,$0000 // initialize sound and input values
cfc3 | 22 00 59 : ld ($5900),hl
cfc6 | 3a 84 60 : ld a,($6084) // read input
cfc9 | bd : cp l
cfca | 6f : ld l,a
cfcb | 28 f6 : jr z,$cfc3
cfcd | fe 80 : cp $80
cfcf | 20 01 : jr nz,$cfd2
cfd1 | 25 : dec h // decrease code
cfd2 | fe 08 : cp $08
cfd4 | 20 01 : jr nz,$cfd7
cfd6 | 24 : inc h // increase code
cfd7 | fe 40 : cp $40
cfd9 | 20 03 : jr nz,$cfde
cfdb | 7c : ld a,h // play sound
cfdc | 18 06 : jr $cfe4
cfde | fe 20 : cp $20
cfe0 | 20 05 : jr nz,$cfe7
cfe2 | 3e f2 : ld a,$f2 // stop sound
cfe4 | 32 90 60 : ld ($6090),a // send sound code
cfe7 | 18 da : jr $cfc3
-->
</script>
<script state="run">
<output format="----- dog fight sound test mode -----" line="10" align="center" />
<output format="left : decrease code" line="11" align="center" />
<output format="right : increase code" line="12" align="center" />
<output format="P1 button 1 : play sound" line="13" align="center" />
<output format="P2 button 1 : stop sound" line="14" align="center" />
<output format="----------------------------" line="15" align="center" />
<output format="<< sound code %2.2X >>" line="17" align="center">
<argument>maincpu.pb@5901</argument>
</output>
</script>
<script state="off">
<action>maincpu.mw@0006 = 4bf3</action>
<action>maincpu.md@062d = 09001001</action>
<action>maincpu.mq@cfc0 = ffffffffffffffff</action>
<action>maincpu.mq@cfc8 = ffffffffffffffff</action>
<action>maincpu.mq@cfd0 = ffffffffffffffff</action>
<action>maincpu.mq@cfd8 = ffffffffffffffff</action>
<action>maincpu.mq@cfe0 = ffffffffffffffff</action>
<action>maincpu.mq@cfe8 = ffffffffffffffff</action>
</script>
</cheat>
<cheat desc="skip ram/rom check">
<script state="on">
<action> maincpu.mw@4c03 = 2b18</action> <!-- maincpu : ram -->
<action> maincpu.mw@4d35 = 1f18</action> <!-- maincpu : rom -->
<action>audiocpu.mw@0b9c = 2818</action> <!-- audiocpu : ram -->
<action>audiocpu.mw@0be2 = 1518</action> <!-- audiocpu : rom -->
</script>
<script state="off">
<action> maincpu.mw@4c03 = 21dd</action>
<action> maincpu.mw@4d35 = 0021</action>
<action>audiocpu.mw@0b9c = 21dd</action>
<action>audiocpu.mw@0be2 = 0021</action>
</script>
</cheat>