Code: Select all
<cheat desc="multiple jump">
<script state="on">
<action>maincpu.mw@1c40 = 6be0</action>
<action>maincpu.mq@6be0 = 10e61f7edd8fb721</action>
<action>maincpu.mq@6be8 = c30520a7347e0828</action>
<action>maincpu.mq@6bf0 = 00216ec377af217f</action>
<!--
6be0 | 21 8f b7 : ld hl,$8fb7
6be3 | DD 7e 1f : ld a,(ix+$1f)
6be6 | e6 10 : and $10
6be8 | 28 08 : jr z,$6bf2
6bea | 7e : ld a,(hl)
6beb | 34 : inc (hl)
6bec | a7 : and a
6bed | 20 03 : jr nz,$6bf4
6bef | c3 21 7f : jp $217f
6bf2 | af : xor a
6bf3 | 77 : ld (hl),a
6bf4 | c3 21 6e : jp $216e
-->
</script>
<script state="off">
<action>maincpu.mw@1c40 = 216e</action>
<action>maincpu.mq@6be0 = 0000000000000000</action>
<action>maincpu.mq@6be8 = 0000000000000000</action>
<action>maincpu.mq@6bf0 = 0000000000000000</action>
</script>
</cheat>
<cheat desc="timer speed">
<parameter>
<item value="0xff">01 (slow)</item>
<item value="0x80">02 </item>
<item value="0x3c">03 </item>
<item value="0x1e">04 </item>
<item value="0x01">05 (fast)</item>
</parameter>
<script state="change">
<action>maincpu.mb@1c56 = param</action>
</script>
<script state="off">
<action>maincpu.mb@1c56 = 3c</action>
</script>
</cheat>
<cheat desc="sound test mode">
<comment>reset the game (F3) to enter sound test mode</comment>
<script state="on">
<action>maincpu.mq@03e3 = 203a801022000021</action>
<action>maincpu.mq@03eb = 2802fef6286fbd80</action>
<action>maincpu.mq@03f3 = 2804fe0d2801fe0e</action>
<action>maincpu.mq@03fb = 25e4180a2810fe0a</action>
<action>maincpu.mq@0403 = 7c0118003e240118</action>
<action>maincpu.mq@040b = 010000d618d00432</action>
<!--
03e3 | 21 00 00 : ld hl,$0000 // initialize sound and input values
03e6 | 22 10 80 : ld ($8010),hl
03e9 | 3a 20 80 : ld a,($8020) // read input
03ec | bd : cp l
03ed | 6f : ld l,a
03ee | 28 f6 : jr z,$3e6
03f0 | fe 02 : cp $02
03f2 | 28 0e : jr z,$402 // pressed left?
03f4 | fe 01 : cp $01
03f6 | 28 0d : jr z,$405 // pressed right?
03f8 | fe 04 : cp $04
03fa | 28 0a : jr z,$406 // pressed up?
03fc | fe 10 : cp $10
03fe | 28 0a : jr z,$40a // pressed button1?
0400 | 18 e4 : jr $3e6
0402 | 25 : dec h // decrease code
0403 | 18 01 : jr $406
0405 | 24 : inc h // increase code
0406 | 3e 00 : ld a,$00 // sound stop
0408 | 18 01 : jr $40b
040a | 7c : ld a,h // play sound
040b | 32 04 d0 : ld ($d004),a // send sound code
040e | 18 d6 : jr $3e6
-->
</script>
<script state="run">
<output format="----- baluba-louk no densetsu 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="up : stop sound" line="13" align="center" />
<output format="button 1 : play sound" line="14" align="center" />
<output format="----------------------------" line="15" align="center" />
<output format="<< sound code %2.2X >>" line="17" align="center">
<argument>maincpu.pb@8011</argument>
</output>
</script>
<script state="off">
<action>maincpu.mq@03e3 = 80012186cb800121</action>
<action>maincpu.mq@03eb = cd0406cdf92846cb</action>
<action>maincpu.mq@03f3 = 052acd5500210489</action>
<action>maincpu.mq@03fb = 00cd3000cd03a9cd</action>
<action>maincpu.mq@0403 = 854421fdc9f8180c</action>
<action>maincpu.mq@040b = 01000021854521dd</action>
</script>
</cheat>