Code: Select all
<cheat desc="no hit">
<script state="on">
<action>maincpu.mb@43f7 = 06</action> <!-- rebound object -->
<action>maincpu.mb@5817 = 60</action> <!-- crocodile -->
<action>maincpu.mb@a13c = 60</action> <!-- background (lava) -->
<action>maincpu.mb@a140 = 60</action> <!-- background (fire) -->
<action>maincpu.mb@ba74 = 60</action> <!-- guardian -->
<action>maincpu.mb@bf84 = 60</action> <!-- fire (guardian) -->
<action>maincpu.mb@c18a = 60</action> <!-- small monster -->
<action>maincpu.mb@c81d = 60</action> <!-- skull -->
<action>maincpu.mb@d9fc = 60</action> <!-- grim reaper -->
</script>
<script state="off">
<action>maincpu.mb@43f7 = 47</action>
<action>maincpu.mb@5817 = a9</action>
<action>maincpu.mb@a13c = 20</action>
<action>maincpu.mb@a140 = 20</action>
<action>maincpu.mb@ba74 = a9</action>
<action>maincpu.mb@bf84 = 20</action>
<action>maincpu.mb@c18a = ae</action>
<action>maincpu.mb@c81d = ae</action>
<action>maincpu.mb@d9fc = a9</action>
</script>
</cheat>
<cheat desc="walk through wall">
<script state="on">
<action>maincpu.mb@44b3 = 00</action>
</script>
<script state="off">
<action>maincpu.mb@44b3 = 0f</action>
</script>
</cheat>
<cheat desc="timer speed">
<parameter>
<item value="0xff">01 (slow)</item>
<item value="0x80">02 </item>
<item value="0x20">03 </item>
<item value="0x0b">04 </item>
<item value="0x01">05 (fast)</item>
</parameter>
<script state="change">
<action>maincpu.mb@5b23 = param</action>
</script>
<script state="off">
<action>maincpu.mb@5b23 = 0x0b</action>
</script>
</cheat>
<cheat desc="floor changes into lava">
<parameter>
<item value="0xea676f4c">never</item>
<item value="0xea673f4c">soon </item>
</parameter>
<script state="change">
<action>maincpu.md@672e = param</action>
</script>
<script state="off">
<action>maincpu.md@672e = 3d903ec9</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@62fb = 11a9</action> <!-- paint screen with black -->
<action>maincpu.mq@4046 = 81848086ffa001a2</action>
<action>maincpu.mq@404e = f4f081c5a82000ad</action>
<action>maincpu.mq@4056 = d0fec9ca01d0fdc9</action>
<action>maincpu.mq@405e = 8a4807d0f7c9e801</action>
<action>maincpu.mq@4066 = d0fbc968aa10e938</action>
<action>maincpu.mq@406e = 68aa1069188a4807</action>
<action>maincpu.mq@4076 = c902018e03d0efc9</action>
<action>maincpu.mq@407e = 02018dffa905d0df</action>
<action>maincpu.mq@4086 = eaeaeaeaea404a4c</action>
<!--
4046 | a2 01 : ldx #$01 // initialize sound code value
4048 | a0 ff : ldy #$ff // initialize input value
404a | 86 80 : stx $80
404c | 84 81 : sty $81
404e | ad 00 20 : lda $2000 // read input
4051 | a8 : tay
4052 | c5 81 : cmp $81
4054 | f0 f4 : beq $404a
4056 | c9 fd : cmp #$fd
4058 | d0 01 : bne $405b
405a | ca : dex // decrease code -01
405b | c9 fe : cmp #$fe
405d | d0 01 : bne $4060
405f | e8 : inx // increase code +01
4060 | c9 f7 : cmp #$f7
4062 | d0 07 : bne $406b
4064 | 48 : pha // decrease code -10
4065 | 8a : txa
4066 | 38 : sec
4067 | e9 10 : sbc #$10
4069 | aa : tax
406a | 68 : pla
406b | c9 fb : cmp #$fb
406d | d0 07 : bne $4076
406f | 48 : pha // increase code +10
4070 | 8a : txa
4071 | 18 : clc
4072 | 69 10 : adc #$10
4074 | aa : tax
4075 | 68 : pla
4076 | c9 ef : cmp #$ef
4078 | d0 03 : bne $407d
407a | 8e 01 02 : stx $0201 // play sound
407d | c9 df : cmp #$df
407f | d0 05 : bne $4086
4081 | a9 ff : lda #$ff // stop sound
4083 | 8d 01 02 : sta $0201
4086 | 4c 4a 40 : jmp $404a
-->
</script>
<script state="run">
<output format="----- mysterious stones 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="up : increase code +10" line="13" align="center" />
<output format="down : decrease 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 %2.2X >>" line="19" align="center">
<argument>maincpu.pb@0080</argument>
</output>
</script>
<script state="off">
<action>maincpu.mw@62fb = 97b1</action>
<action>maincpu.mq@4046 = ae092017a9e72420</action>
<action>maincpu.mq@404e = 80a9e74c20e77c20</action>
<action>maincpu.mq@4056 = 85218500a9584620</action>
<action>maincpu.mq@405e = 852e852585248522</action>
<action>maincpu.mq@4066 = 31855ad22030852f</action>
<action>maincpu.mq@406e = 21869affa240cd4c</action>
<action>maincpu.mq@4076 = 42792072f92058d8</action>
<action>maincpu.mq@407e = 428520ae092015a9</action>
<action>maincpu.mq@4086 = 8522a5ab7b20fb90</action>
</script>
</cheat>
Code: Select all
<cheat desc="no hit">
<script state="on">
<action>maincpu.mb@43e5 = 06</action> <!-- rebound object -->
<action>maincpu.mb@5805 = 60</action> <!-- crocodile -->
<action>maincpu.mb@a10d = 60</action> <!-- background (lava) -->
<action>maincpu.mb@a111 = 60</action> <!-- background (fire) -->
<action>maincpu.mb@b8f5 = 60</action> <!-- guardian -->
<action>maincpu.mb@be05 = 60</action> <!-- fire (guardian) -->
<action>maincpu.mb@c00b = 60</action> <!-- small monster -->
<action>maincpu.mb@c69e = 60</action> <!-- skull -->
<action>maincpu.mb@d87d = 60</action> <!-- grim reaper -->
</script>
<script state="off">
<action>maincpu.mb@43e5 = 47</action>
<action>maincpu.mb@5805 = a9</action>
<action>maincpu.mb@a10d = 20</action>
<action>maincpu.mb@a111 = 20</action>
<action>maincpu.mb@b8f5 = a9</action>
<action>maincpu.mb@be05 = 20</action>
<action>maincpu.mb@c00b = ae</action>
<action>maincpu.mb@c69e = ae</action>
<action>maincpu.mb@d87d = a9</action>
</script>
</cheat>
<cheat desc="walk through wall">
<script state="on">
<action>maincpu.mb@44a1 = 00</action>
</script>
<script state="off">
<action>maincpu.mb@44a1 = 0f</action>
</script>
</cheat>
<cheat desc="timer speed">
<parameter>
<item value="0xff">01 (slow)</item>
<item value="0x80">02 </item>
<item value="0x20">03 </item>
<item value="0x0b">04 </item>
<item value="0x01">05 (fast)</item>
</parameter>
<script state="change">
<action>maincpu.mb@5b11 = param</action>
</script>
<script state="off">
<action>maincpu.mb@5b11 = 0x0b</action>
</script>
</cheat>
<cheat desc="floor changes into lava">
<parameter>
<item value="0xea675d4c">never</item>
<item value="0xea672d4c">soon </item>
</parameter>
<script state="change">
<action>maincpu.md@671c = param</action>
</script>
<script state="off">
<action>maincpu.md@671c = 3d903ec9</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@62e9 = 11a9</action> <!-- paint screen with black -->
<action>maincpu.mq@4043 = 81848086ffa001a2</action>
<action>maincpu.mq@404b = f4f081c5a82000ad</action>
<action>maincpu.mq@4053 = d0fec9ca01d0fdc9</action>
<action>maincpu.mq@405b = 8a4807d0f7c9e801</action>
<action>maincpu.mq@4063 = d0fbc968aa10e938</action>
<action>maincpu.mq@406b = 68aa1069188a4807</action>
<action>maincpu.mq@4073 = c902018e03d0efc9</action>
<action>maincpu.mq@407b = 02018dffa905d0df</action>
<action>maincpu.mq@4083 = eaeaeaeaea40474c</action>
<!--
4043 | a2 01 : ldx #$01 // initialize sound code value
4045 | a0 ff : ldy #$ff // initialize input value
4047 | 86 80 : stx $80
4049 | 84 81 : sty $81
404b | ad 00 20 : lda $2000 // read input
404e | a8 : tay
404f | c5 81 : cmp $81
4051 | f0 f4 : beq $4047
4053 | c9 fd : cmp #$fd
4055 | d0 01 : bne $4058
4057 | ca : dex // decrease code -01
4058 | c9 fe : cmp #$fe
405a | d0 01 : bne $405d
405c | e8 : inx // increase code +01
405d | c9 f7 : cmp #$f7
405f | d0 07 : bne $4068
4061 | 48 : pha // decrease code -10
4062 | 8a : txa
4063 | 38 : sec
4064 | e9 10 : sbc #$10
4066 | aa : tax
4067 | 68 : pla
4068 | c9 fb : cmp #$fb
406a | d0 07 : bne $4073
406c | 48 : pha // increase code +10
406d | 8a : txa
406e | 18 : clc
406f | 69 10 : adc #$10
4071 | aa : tax
4072 | 68 : pla
4073 | c9 ef : cmp #$ef
4075 | d0 03 : bne $407a
4077 | 8e 01 02 : stx $0201 // play sound
407a | c9 df : cmp #$df
407c | d0 05 : bne $4083
407e | a9 ff : lda #$ff // stop sound
4080 | 8d 01 02 : sta $0201
4083 | 4c 4a 40 : jmp $4047
-->
</script>
<script state="run">
<output format="----- mysterious stones 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="up : increase code +10" line="13" align="center" />
<output format="down : decrease 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 %2.2X >>" line="19" align="center">
<argument>maincpu.pb@0080</argument>
</output>
</script>
<script state="off">
<action>maincpu.mw@62e9 = 97b1</action>
<action>maincpu.mq@4043 = add72017a9e5a520</action>
<action>maincpu.mq@404b = 80a9e5cd20e5fd20</action>
<action>maincpu.mq@4053 = 85218500a9583420</action>
<action>maincpu.mq@405b = 852e852585248522</action>
<action>maincpu.mq@4063 = 31855ac02030852f</action>
<action>maincpu.mq@406b = 21869affa240ce4c</action>
<action>maincpu.mq@4073 = 872002008dffa9d8</action>
<action>maincpu.mq@407b = a942772072e720aa</action>
<action>maincpu.mq@4083 = 90428320add72015</action>
<action>maincpu.mq@408b = 238522a5ab4920fb</action>
<action>maincpu.mq@4093 = 8d5ac020248500a9</action>
<action>maincpu.mq@409b = bd03a203738d0354</action>
</script>
</cheat>