Code: Select all
<cheat desc="no hit">
<script state="on">
<action>maincpu.mb@44c7 = c9</action> <!-- firearms -->
<action>maincpu.mb@454d = 18</action> <!-- enemy (body) -->
<action>maincpu.mb@4608 = c9</action> <!-- enemy (spider) -->
<action>maincpu.mb@4621 = c9</action> <!-- enemy (iron wall) -->
<action>maincpu.mb@4628 = c9</action> <!-- enemy (flying turtle) -->
<action>maincpu.mb@474a = c9</action> <!-- enemy (flying turtle in player attack) -->
</script>
<script state="off">
<action>maincpu.mb@44c7 = c0</action>
<action>maincpu.mb@454d = 38</action>
<action>maincpu.mb@4608 = c0</action>
<action>maincpu.mb@4621 = 3e</action>
<action>maincpu.mb@4628 = 3e</action>
<action>maincpu.mb@474a = 3e</action>
</script>
</cheat>
<cheat desc="walk through wall">
<script state="on">
<action>maincpu.md@1bfc = dd0000af</action>
</script>
<script state="off">
<action>maincpu.md@1bfc = dd1c07cd</action>
</script>
</cheat>
<cheat desc="auto fire">
<script state="on">
<action>maincpu.mb@1355 = 00</action> <!-- punch -->
<action>maincpu.mb@136a = 00</action> <!-- jump kick -->
</script>
<script state="off">
<action>maincpu.mb@1355 = c0</action>
<action>maincpu.mb@136a = c0</action>
</script>
</cheat>
<cheat desc="punch speed up">
<script state="on">
<action>maincpu.mb@135e = 41</action>
</script>
<script state="off">
<action>maincpu.mb@135e = 42</action>
</script>
</cheat>
<cheat desc="sound test mode">
<comment>set "skip ram/rom check" then reset the game (F3)</comment>
<script state="on">
<action>maincpu.mw@0041 = be60</action>
<action>maincpu.mq@be60 = 2847b800dbc10021</action>
<action>maincpu.mq@be68 = f7fe350120fbfefa</action>
<action>maincpu.mq@be70 = 3e0420fdfe340120</action>
<action>maincpu.mq@be78 = 3e0520fefe0618f0</action>
<action>maincpu.mq@be80 = 0320effe78778610</action>
<action>maincpu.mq@be88 = 3e0420dffe06187e</action>
<action>maincpu.mq@be90 = 000000ce1844d33c</action>
<!--
be60 | 21 00 c1 : ld hl,$C100 // sound code address
be63 | db 00 : in a,($00) // read input
be65 | b8 : cp b
be66 | 47 : ld b,a
be67 | 28 fa : jr z,$BE63
be69 | fe fb : cp $FB
be6b | 20 01 : jr nz,$BE6E
be6d | 35 : dec (hl) // decrease code -01
be6e | fe f7 : cp $F7
be70 | 20 01 : jr nz,$BE73
be72 | 34 : inc (hl) // increase code +01
be73 | fe fd : cp $FD
be75 | 20 04 : jr nz,$BE7B
be77 | 3e f0 : ld a,$F0 // decrease code -10
be79 | 18 06 : jr $BE81
be7b | fe fe : cp $FE
be7d | 20 05 : jr nz,$BE84
be7f | 3e 10 : ld a,$10 // increase code +10
be81 | 86 : add a,(hl)
be82 | 77 : ld (hl),a
be83 | 78 : ld a,b
be84 | fe ef : cp $EF
be86 | 20 03 : jr nz,$BE8B
be88 | 7e : ld a,(hl) // play sound
be89 | 18 06 : jr $BE91
be8b | fe df : cp $DF
be8d | 20 04 : jr nz,$BE93
be8f | 3e 3c : ld a,$3C // stop sound
be91 | d3 44 : out ($44),a
be93 | 18 ce : jr $BE63
-->
<!-- stop sfx and music at the same time -->
<action>audiocpu.mb@00c7 = cd</action>
<action>audiocpu.mb@00cc = cd</action>
<action>audiocpu.mb@0fa3 = 00</action>
</script>
<script state="run">
<output format="----- mighty guy 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="down : decrease code -10" line="13" align="center" />
<output format="up : increase code +10" line="14" align="center" />
<output format="button 1 : play sound" line="15" align="center" />
<output format="button 2 : stop music" line="16" align="center" />
<output format="----------------------------" line="17" align="center" />
<output format="<< sound code %2.2X >>" line="19" align="center" >
<argument>maincpu.pb@c100</argument>
</output>
</script>
<script state="off">
<action> maincpu.mw@0041 = 4d43</action>
<action> maincpu.mq@be60 = 0000000000000000</action>
<action> maincpu.mq@be68 = 0000000000000000</action>
<action> maincpu.mq@be70 = 0000000000000000</action>
<action> maincpu.mq@be78 = 0000000000000000</action>
<action> maincpu.mq@be80 = 0000000000000000</action>
<action> maincpu.mq@be88 = 0000000000000000</action>
<action> maincpu.mq@be90 = 0000000000000000</action>
<action>audiocpu.mb@00c7 = cc</action>
<action>audiocpu.mb@00cc = cc</action>
<action>audiocpu.mb@0fa3 = c9</action>
</script>
</cheat>
<cheat desc="skip ram/rom check">
<script state="on">
<action>maincpu.md@002a = cd003bc3</action> <!-- skip ram/rom check -->
<action>maincpu.md@003d = cd49b2cd</action> <!-- skip wait -->
</script>
<script state="off">
<action>maincpu.md@002a = cd01fecd</action>
<action>maincpu.md@003d = cda849cd</action>
</script>
</cheat>