[desertdn] Gonta Road-Rush/Desert Dan
Posted: Sun Sep 19, 2021 3:14 pm
Code: Select all
<cheat desc="auto fire">
<script state="on">
<!-- first scene -->
<action>maincpu.mw@1650 = 6ce0</action>
<action>maincpu.mq@6ce0 = 52ca46cb3487f021</action>
<action>maincpu.mq@6ce8 = 000000001744c316</action>
<!--
6ce0 | 21 f0 87 : ld hl,$87f0
6ce3 | 34 : inc (hl)
6ce4 | cb 46 : bit 0,(hl)
6ce6 | ca 52 16 : jp z,$1652
6ce9 | c3 44 17 : jp $1744
-->
<!-- second scene -->
<action>maincpu.mw@189c = 6cf0</action>
<action>maincpu.mq@6cf0 = 9eca46cb3487f021</action>
<action>maincpu.mq@6cf8 = 000000001a07c318</action>
<!--
6cf0 | 21 f0 87 : ld hl,$87f0
6cf3 | 34 : inc (hl)
6cf4 | cb 46 : bit 0,(hl)
6cf6 | ca 9e 18 : jp z,$189e
6cf9 | c3 07 1a : jp $1a07
-->
</script>
<script state="off">
<action>maincpu.mw@1650 = 1744</action>
<action>maincpu.mq@6cf0 = 0000000000000000</action>
<action>maincpu.mq@6cf8 = 0000000000000000</action>
<action>maincpu.mw@189c = 1a07</action>
<action>maincpu.mq@6cf0 = 0000000000000000</action>
<action>maincpu.mq@6cf8 = 0000000000000000</action>
</script>
</cheat>
<cheat desc="walk through wall">
<script state="on">
<!-- first scene -->
<action>maincpu.mw@16bf = 16c1</action> <!-- left -->
<action>maincpu.mw@16d6 = 16d8</action> <!-- right -->
<action>maincpu.mw@16f7 = 16f9</action> <!-- down -->
<action>maincpu.mw@170e = 1710</action> <!-- up -->
<!-- second scene -->
<action>maincpu.mw@1983 = 1985</action> <!-- left -->
<action>maincpu.mw@199a = 199c</action> <!-- right -->
<action>maincpu.mw@19ba = 19bc</action> <!-- down -->
<action>maincpu.mw@19d1 = 19d3</action> <!-- up -->
</script>
<script state="off">
<action>maincpu.mw@16bf = 16e6</action>
<action>maincpu.mw@16d6 = 16e6</action>
<action>maincpu.mw@16f7 = 1763</action>
<action>maincpu.mw@170e = 1763</action>
<action>maincpu.mw@1983 = 19aa</action>
<action>maincpu.mw@199a = 19aa</action>
<action>maincpu.mw@19ba = 1a26</action>
<action>maincpu.mw@19d1 = 1a26</action>
</script>
</cheat>
<cheat desc="no slip">
<script state="on">
<action>maincpu.mb@1648 = 00</action>
</script>
<script state="off">
<action>maincpu.mb@1648 = 14</action>
</script>
</cheat>
<cheat desc="sound test mode">
<comment>set ram/rom check skip then reset the game (F3)</comment>
<script state="on">
<action>maincpu.mw@0389 = 6ca0</action>
<action>maincpu.mq@6ca0 = 810021b00332013e</action>
<action>maincpu.mq@6ca8 = 3ad56cab1177843e</action>
<action>maincpu.mq@6cb0 = c847b8a0003ab800</action>
<action>maincpu.mq@6cb8 = 2002fe35012001fe</action>
<action>maincpu.mq@6cc0 = 187e032010fe3401</action>
<action>maincpu.mq@6cc8 = 0032a03ec008fe05</action>
<action>maincpu.mq@6cd0 = 000000000000c9b8</action>
<!--
6ca0 | 3e 01 : ld a,$01 // enable sound
6ca2 | 32 03 b0 : ld ($b003),a
6ca5 | 21 00 81 : ld hl,$8100 // sound code address
6ca8 | 3e 84 : ld a,$84
6caa | 77 : ld (hl),a // intialize sound code
6cab | 11 ab 6c : ld de,$6cab
6cae | d5 : push de
6caf | 3a 00 b8 : ld a,($b800) // watchdog
6cb2 | 3a 00 a0 : ld a,($a000) // read input
6cb5 | b8 : cp b
6cb6 | 47 : ld b,a
6cb7 | c8 : ret z
6cb8 | fe 01 : cp $01
6cba | 20 01 : jr nz,$6cbd
6cbc | 35 : dec (hl) // decrease code
6cbd | fe 02 : cp $02
6cbf | 20 01 : jr nz,$6cc2
6cc1 | 34 : inc (hl) // increase code
6cc2 | fe 10 : cp $10
6cc4 | 20 03 : jr nz,$6cc9
6cc6 | 7e : ld a,(hl) // play sound
6cc7 | 18 05 : jr $6cce
6cc9 | fe 08 : cp $08
6ccb | c0 : ret nz
6ccc | 3e a0 : ld a,$a0 // stop sound
6cce | 32 00 b8 : ld ($b800),a // send sound code
6cd1 | c9 : ret
-->
</script>
<script state="run">
<output format="----- desert dan 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="up : 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@8100</argument>
</output>
</script>
<script state="off">
<action>maincpu.mw@0389 = 0165</action>
<action>maincpu.mq@6ca0 = 0000000000000000</action>
<action>maincpu.mq@6ca8 = 0000000000000000</action>
<action>maincpu.mq@6cb0 = 0000000000000000</action>
<action>maincpu.mq@6cb8 = 0000000000000000</action>
<action>maincpu.mq@6cc0 = 0000000000000000</action>
<action>maincpu.mq@6cc8 = 0000000000000000</action>
<action>maincpu.mq@6cd0 = 0000000000000000</action>
</script>
</cheat>
<cheat desc="skip ram/rom check">
<script state="on">
<action>maincpu.mw@0009 = 0367</action>
</script>
<script state="off">
<action>maincpu.mw@0009 = 024b</action>
</script>
</cheat>