Code: Select all
<cheat desc="no hit">
<script state="on">
<action>maincpu.mb@9312 = 60</action> <!-- enemy -->
<action>maincpu.mb@9376 = 60</action> <!-- attack -->
</script>
<script state="off">
<action>maincpu.mb@9312 = 67</action>
<action>maincpu.mb@9376 = 67</action>
</script>
</cheat>
<cheat desc="auto fire - sword">
<script state="on">
<action>maincpu.mq@0c146 = 4eb90003fde03002</action> <!-- stand -->
<action>maincpu.mq@0c278 = 4eb90003fde03002</action> <!-- crouch -->
<action>maincpu.mq@0aa94 = 4eb90003fde03002</action> <!-- dog -->
<action>maincpu.mq@3fde0 = 3439003f09240802</action>
<action>maincpu.mq@3fde8 = 000c670408c20004</action>
<action>maincpu.mq@3fdf0 = 4e75ffffffffffff</action>
<!--
3fde0 | 3439 003f 0924 : move.w $3f0924.l,D2
3fde6 | 0802 000c : btst #$c,D2
3fdea | 6704 : beq $3fdf0
3fdec | 08c2 0004 : bset #$4,D2
3fdf0 | 4e75 : rts
-->
</script>
<script state="off">
<action>maincpu.mq@0c146 = 3439003f09243002</action>
<action>maincpu.mq@0c278 = 3439003f09243002</action>
<action>maincpu.mq@0aa94 = 3439003f09243002</action>
<action>maincpu.mq@3fde0 = 3439003f09240839</action>
<action>maincpu.mq@3fde8 = 0004003f09246704</action>
<action>maincpu.mq@3fdf0 = 000200104e75ffff</action>
</script>
</cheat>
<cheat desc="attack speed up">
<script state="on">
<action>maincpu.mq@09e00 = 4eb90003fe000240</action>
<action>maincpu.mq@3fe00 = b1fc003f021a6608</action>
<action>maincpu.mq@3fe08 = 4ab9003f01ce6610</action>
<action>maincpu.mq@3fe10 = b1fc003f02ba660c</action>
<action>maincpu.mq@3fe18 = 4ab9003f026e6604</action>
<action>maincpu.mq@3fe20 = 42026002e80a1142</action>
<action>maincpu.mq@3fe28 = 00024e75ffffffff</action>
<!--
3fe00 | b1fc 003f 021a : cmpa.l #$3f021a,A0 // P1
3fe06 | 6608 : bne $3fe10
3fe08 | 4ab9 003f 01ce : tst.l $3f01ce.l
3fe0e | 6610 : bne $3fe20
3fe10 | b1fc 003f 02ba : cmpa.l #$3f02ba,A0 // P2
3fe16 | 660c : bne $3fe24
3fe18 | 4ab9 003f 026e : tst.l $3f026e.l
3fe1e | 6604 : bne $3fe24
3fe20 | 4202 : clr.b D2
3fe22 | 6002 : bra $3fe26
3fe24 | e80a : lsr.b #4,D2
3fe26 | 1142 0002 : move.b D2,($2,A0)
3fe2a | 4e75 : rts
-->
</script>
<script state="off">
<action>maincpu.mq@09e00 = e80a114200020240</action>
<action>maincpu.mq@3fe00 = ffffffffffffffff</action>
<action>maincpu.mq@3fe08 = ffffffffffffffff</action>
<action>maincpu.mq@3fe10 = ffffffffffffffff</action>
<action>maincpu.mq@3fe18 = ffffffffffffffff</action>
<action>maincpu.mq@3fe20 = ffffffffffffffff</action>
<action>maincpu.mq@3fe28 = ffffffffffffffff</action>
</script>
</cheat>
<cheat desc="sound test mode">
<comment>reset the game (F3) to enter sound test mode</comment>
<script state="on">
<action>maincpu.md@00592 = 0003fe30</action>
<action>maincpu.mq@3fe30 = 41f9003f01001401</action>
<action>maincpu.mq@3fe38 = 123900280089b401</action>
<action>maincpu.mq@3fe40 = 67f40c0100fb6602</action>
<action>maincpu.mq@3fe48 = 53100c0100f76602</action>
<action>maincpu.mq@3fe50 = 52100c0100fd6604</action>
<action>maincpu.mq@3fe58 = 041000100c0100fe</action>
<action>maincpu.mq@3fe60 = 6604061000100c01</action>
<action>maincpu.mq@3fe68 = 00ef66041010600a</action>
<action>maincpu.mq@3fe70 = 0c0100df660a103c</action>
<action>maincpu.mq@3fe78 = 00ff13c0002800a9</action>
<action>maincpu.mq@3fe80 = 60b4ffffffffffff</action>
<!--
3fe30 | 41f9 003f 0100 : lea $3f0100.l,A0 // sound code address
3fe36 | 1401 : move.b D1,D2
3fe38 | 1239 0028 0089 : move.b $280089.l,D1 // read input
3fe3e | b401 : cmp.b D1,D2
3fe40 | 67f4 : beq $3fe36
3fe42 | 0c01 00fb : cmpi.b #-$5,D1
3fe46 | 6602 : bne $3fe4a
3fe48 | 5310 : subq.b #1,(A0) // decrease code -01
3fe4a | 0c01 00f7 : cmpi.b #-$9,D1
3fe4e | 6602 : bne $3fe52
3fe50 | 5210 : addq.b #1,(A0) // increase code +01
3fe52 | 0c01 00fd : cmpi.b #-$3,D1
3fe56 | 6604 : bne $3fe5c
3fe58 | 0410 0010 : subi.b #$10,(A0) // decrease code -10
3fe5c | 0c01 00fe : cmpi.b #-$2,D1
3fe60 | 6604 : bne $3fe66
3fe62 | 0610 0010 : addi.b #$10,(A0) // increase code +10
3fe66 | 0c01 00ef : cmpi.b #-$11,D1
3fe6a | 6604 : bne $3fe70
3fe6c | 1010 : move.b (A0),D0 // play sound
3fe6e | 600a : bra $3fe7a
3fe70 | 0c01 00df : cmpi.b #-$21,D1
3fe74 | 660a : bne $3fe80
3fe76 | 103c 00ff : move.b #$ff,D0 // stop sound
3fe7a | 13c0 0028 00a9 : move.b D0,$2800a9.l // send sound code
3fe80 | 60b4 : bra $3fe36
-->
</script>
<script state="run">
<output format="----- hangzo 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@3f0100</argument>
</output>
</script>
<script state="off">
<action>maincpu.md@00592 = 00001186</action>
<action>maincpu.mq@3fe30 = ffffffffffffffff</action>
<action>maincpu.mq@3fe38 = ffffffffffffffff</action>
<action>maincpu.mq@3fe40 = ffffffffffffffff</action>
<action>maincpu.mq@3fe48 = ffffffffffffffff</action>
<action>maincpu.mq@3fe50 = ffffffffffffffff</action>
<action>maincpu.mq@3fe58 = ffffffffffffffff</action>
<action>maincpu.mq@3fe60 = ffffffffffffffff</action>
<action>maincpu.mq@3fe68 = ffffffffffffffff</action>
<action>maincpu.mq@3fe70 = ffffffffffffffff</action>
<action>maincpu.mq@3fe78 = ffffffffffffffff</action>
<action>maincpu.mq@3fe80 = ffffffffffffffff</action>
</script>
</cheat>