Code: Select all
<cheat desc="no hit">
<script state="on">
<action>maincpu.md@37df = cb46a0c3</action>
<action>maincpu.mq@46a0 = e2c3c057cb58533a</action>
<action>maincpu.mq@46a8 = ffffffffffffff37</action>
<!--
46a0 | 3a 53 58 : ld a,($5853)
46a3 | cb 57 : bit 2,a
46a5 | c0 : ret nz
46a6 | c3 e2 37 : jp $37e2
-->
</script>
<script state="off">
<action>maincpu.md@37df = cb58533a</action>
<action>maincpu.mq@46a0 = ffffffffffffffff</action>
<action>maincpu.mq@46a8 = ffffffffffffffff</action>
</script>
</cheat>
<cheat desc="auto fire - shot">
<script state="on">
<action>maincpu.mb@2525 = 00</action>
</script>
<script state="off">
<action>maincpu.mb@2525 = c0</action>
</script>
</cheat>
<cheat desc="no delay missile">
<script state="on">
<action>maincpu.mb@2510 = 00</action>
</script>
<script state="off">
<action>maincpu.mb@2510 = c0</action>
</script>
</cheat>
<cheat desc="sound test mode">
<comment>reset the game (F3) to enter sound test mode</comment>
<script state="on">
<action>maincpu.mb@062d = c9</action> <!-- input check routine stopper -->
<action>maincpu.md@07db = 0946b0c3</action>
<action>maincpu.mq@46b0 = 0022700032000021</action>
<action>maincpu.mq@46b8 = 6fbde105ffcde559</action>
<action>maincpu.mq@46c0 = fe25012002fef128</action>
<action>maincpu.mq@46c8 = 032010fe24012001</action>
<action>maincpu.mq@46d0 = 3e052020fe06187c</action>
<action>maincpu.mq@46d8 = ffffd518609032f2</action>
<!--
46b0 : 21 00 00 : ld hl,$0000 // initialize sound and input values
46b3 : 32 00 70 : ld ($7000),a
46b6 : 22 00 59 : ld ($5900),hl
46b9 : e5 : push hl
46ba : cd ff 05 : call $05ff // read input
46bd : e1 : pop hl
46be : bd : cp l
46bf : 6f : ld l,a
46c0 : 28 f1 : jr z,$46b3
46c2 : fe 02 : cp $02
46c4 : 20 01 : jr nz,$46c7
46c6 : 25 : dec h // decrease code
46c7 : fe 01 : cp $01
46c9 : 20 01 : jr nz,$46cc
46cb : 24 : inc h // increase code
46cc : fe 10 : cp $10
46ce : 20 03 : jr nz,$46d3
46d0 : 7c : ld a,h // play sound
46d1 : 18 06 : jr $46d9
46d3 : fe 20 : cp $20
46d5 : 20 05 : jr nz,$46dc
46d7 : 3e f2 : ld a,$f2 // stop sound
46d9 : 32 90 60 : ld ($6090),a
46dc : 18 d5 : jr $46b3
-->
</script>
<script state="run">
<output format="----- the percussor 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="button 1 : play sound" line="13" align="center" />
<output format="button 2 : 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.mb@062d = 18</action>
<action>maincpu.md@07db = 09001001</action>
<action>maincpu.mq@46b0 = ffffffffffffffff</action>
<action>maincpu.mq@46b8 = ffffffffffffffff</action>
<action>maincpu.mq@46c0 = ffffffffffffffff</action>
<action>maincpu.mq@46c8 = ffffffffffffffff</action>
<action>maincpu.mq@46d0 = ffffffffffffffff</action>
<action>maincpu.mq@46d8 = ffffffffffffffff</action>
</script>
</cheat>
<cheat desc="skip ram/rom check">
<script state="on">
<action> maincpu.mw@0284 = 2b18</action> <!-- maincpu : ram -->
<action> maincpu.mw@03b6 = 1f18</action> <!-- maincpu : rom -->
<action>audiocpu.mw@0078 = 2818</action> <!-- audiocpu : ram -->
<action>audiocpu.mw@00b9 = 1918</action> <!-- audiocpu : rom -->
</script>
<script state="off">
<action> maincpu.mw@0284 = 21dd</action>
<action> maincpu.mw@03b6 = 0021</action>
<action>audiocpu.mw@0078 = 21dd</action>
<action>audiocpu.mw@00b9 = 0021</action>
</script>
</cheat>