Code: Select all
<cheat desc="no hit">
<script state="on">
<action>maincpu.mb@3318 = 60</action> <!-- attack -->
<action>maincpu.mb@6888 = 60</action> <!-- hammer -->
<action>maincpu.mb@78f0 = 60</action> <!-- fat man throw -->
<action>maincpu.mb@80c8 = 60</action> <!-- robot throw -->
</script>
<script state="off">
<action>maincpu.mb@3318 = 67</action>
<action>maincpu.mb@6888 = 67</action>
<action>maincpu.mb@78f0 = 67</action>
<action>maincpu.mb@80c8 = 67</action>
</script>
</cheat>
<cheat desc="auto fire">
<script state="on">
<action>maincpu.mb@07339 = 19</action> <!-- body blow -->
<action>maincpu.mq@07528 = 4eb900014e206740</action> <!-- normal attack -->
<action>maincpu.mq@14e20 = 083800009de56706</action>
<action>maincpu.mq@14e28 = 082d000400194e75</action>
<!--
14e20 | 0838 0000 9de5 : btst #$0,$9de5.w // check timer
14e26 | 6706 : beq $14e2e
14e28 | 082d 0004 0019 : btst #$4,($19,A5) // check attack button
14e2e | 4e75 : rts
-->
</script>
<script state="off">
<action>maincpu.mb@07339 = 1b</action>
<action>maincpu.mq@07528 = 082d0004001b6740</action>
<action>maincpu.mq@14e20 = ffffffffffffffff</action>
<action>maincpu.mq@14e28 = ffffffffffffffff</action>
</script>
</cheat>
<cheat desc="player speed">
<parameter>
<item value="0x0080">01 (slow)</item>
<item value="0x0180">02 </item>
<item value="0x0280">03 </item>
<item value="0x0380">04 </item>
<item value="0x0480">05 (fast)</item>
</parameter>
<script state="change">
<action>maincpu.mw@b75e = param </action> <!-- rick x-position -->
<action>maincpu.mw@b762 = param rshift 04</action> <!-- rick y-position -->
<action>maincpu.mw@bb4c = param </action> <!-- allen x-position -->
<action>maincpu.mw@bb50 = param rshift 04</action> <!-- allen y-position -->
</script>
<script state="off">
<action>maincpu.mw@b75e = 0133</action>
<action>maincpu.mw@b762 = 0013</action>
<action>maincpu.mw@bb4c = 0166</action>
<action>maincpu.mw@bb50 = 0016</action>
</script>
</cheat>
<cheat desc="action speed up">
<script state="on">
<action>maincpu.mq@02460 = 4eb900014e302d48</action>
<action>maincpu.mq@14e30 = bcfc9f5c6706bcfc</action>
<action>maincpu.mq@14e38 = a01c6618122e002e</action>
<action>maincpu.mq@14e40 = 0c010004670e0c01</action>
<action>maincpu.mq@14e48 = 003067080c010060</action>
<action>maincpu.mq@14e50 = 670242403d40000e</action>
<action>maincpu.mq@14e58 = 30184e75ffffffff</action>
<!--
14e30 | bcfc 9f5c : cmpa.w #$9f5c,A6 // check P1
14e34 | 6706 : beq $14e3c
14e36 | bcfc a01c : cmpa.w #$a01c,A6 // check P2
14e3a | 6618 : bne $14e54
14e3c | 122e 002e : move.b ($2e,A6),D1
14e40 | 0c01 0004 : cmpi.b #$4,D1 // check walk
14e44 | 670e : beq $14e54
14e46 | 0c01 0030 : cmpi.b #$30,D1 // check jump attack
14e4a | 6708 : beq $14e54
14e4c | 0c01 0060 : cmpi.b #$60,D1 // check auto-moving
14e50 | 6702 : beq $14e54
14e52 | 4240 : clr.w D0
14e54 | 3d40 000e : move.w D0,($e,A6)
14e58 | 3018 : move.w (A0)+,D0
14e5a | 4e75 : rts
-->
</script>
<script state="off">
<action>maincpu.mq@02460 = 3d40000e30182d48</action>
<action>maincpu.mq@14e30 = ffffffffffffffff</action>
<action>maincpu.mq@14e38 = ffffffffffffffff</action>
<action>maincpu.mq@14e40 = ffffffffffffffff</action>
<action>maincpu.mq@14e48 = ffffffffffffffff</action>
<action>maincpu.mq@14e50 = ffffffffffffffff</action>
<action>maincpu.mq@14e58 = ffffffffffffffff</action>
</script>
</cheat>
<cheat desc="sound test mode">
<!-- you can't stop sfx by sound stop button -->
<comment>reset the game (F3) to enter sound test mode</comment>
<script state="on">
<action>maincpu.mq@059f0 = 4ef900014e606100</action>
<action>maincpu.mq@14e60 = 41f8810043f9000c</action>
<action>maincpu.mq@14e68 = 800042788b1e1200</action>
<action>maincpu.mq@14e70 = 1038b6cbb20067f2</action>
<action>maincpu.mq@14e78 = 0c0000fd66025350</action>
<action>maincpu.mq@14e80 = 0c0000fe66025250</action>
<action>maincpu.mq@14e88 = 0c0000fb66040450</action>
<action>maincpu.mq@14e90 = 00100c0000f76604</action>
<action>maincpu.mq@14e98 = 06500010025000ff</action>
<action>maincpu.mq@14ea0 = 0c0000ef66023290</action>
<action>maincpu.mq@14ea8 = 0c0000df66024251</action>
<action>maincpu.mq@14eb0 = 60b8ffffffffffff</action>
<!--
14e60 | 41f8 8100 : lea $8100.w,A0 // $ff8100 : sound code address
14e64 | 43f9 000c 8000 : lea $c8000.l,A1 // $c8000 : sound latch address
14e6a | 4278 8b1e : clr.w $8b1e.w // $ff8b1e : software watchdog
14e6e | 1200 : move.b D0,D1
14e70 | 1038 b6cb : move.b $b6cb.w,D0 // $ffb6cb : read input
14e74 | b200 : cmp.b D0,D1
14e76 | 67f2 : beq $14e6a
14e78 | 0c00 00fd : cmpi.b #-$3,D0
14e7c | 6602 : bne $14e80
14e7e | 5350 : subq.w #1,(A0) // decrease code -01
14e80 | 0c00 00fe : cmpi.b #-$2,D0
14e84 | 6602 : bne $14e88
14e86 | 5250 : addq.w #1,(A0) // increase code +01
14e88 | 0c00 00fb : cmpi.b #-$5,D0
14e8c | 6604 : bne $14e92
14e8e | 0450 0010 : subi.w #$10,(A0) // decrease code -10
14e92 | 0c00 00f7 : cmpi.b #-$9,D0
14e96 | 6604 : bne $14e9c
14e98 | 0650 0010 : addi.w #$10,(A0) // increase code +10
14e9c | 0250 00ff : andi.w #$ff,(A0) // mask sound code
14ea0 | 0c00 00ef : cmpi.b #-$11,D0
14ea4 | 6602 : bne $14ea8
14ea6 | 3290 : move.w (A0),(A1) // play sound
14ea8 | 0c00 00df : cmpi.b #-$21,D0
14eac | 6602 : bne $14eb0
14eae | 4251 : clr.w (A1) // stop sound
14eb0 | 60b8 : bra $14e6a
-->
</script>
<script state="run">
<output format="----- 64th. street 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 %4.4X >>" line="19" align="center" >
<argument>maincpu.pw@ff8100</argument>
</output>
</script>
<script state="off">
<action>maincpu.mq@059f0 = 0278ffdf9dde6100</action>
<action>maincpu.mq@14e60 = ffffffffffffffff</action>
<action>maincpu.mq@14e68 = ffffffffffffffff</action>
<action>maincpu.mq@14e70 = ffffffffffffffff</action>
<action>maincpu.mq@14e78 = ffffffffffffffff</action>
<action>maincpu.mq@14e80 = ffffffffffffffff</action>
<action>maincpu.mq@14e88 = ffffffffffffffff</action>
<action>maincpu.mq@14e90 = ffffffffffffffff</action>
<action>maincpu.mq@14e98 = ffffffffffffffff</action>
<action>maincpu.mq@14ea0 = ffffffffffffffff</action>
<action>maincpu.mq@14ea8 = ffffffffffffffff</action>
<action>maincpu.mq@14eb0 = ffffffffffffffff</action>
</script>
</cheat>