Code: Select all
<cheat desc="no hit">
<script state="on">
<action>maincpu.mb@a11c = 60</action> <!-- enemy -->
<action>maincpu.mb@a1cc = 60</action> <!-- bullet -->
</script>
<script state="off">
<action>maincpu.mb@a11c = 62</action>
<action>maincpu.mb@a1cc = 62</action>
</script>
</cheat>
<cheat desc="auto fire">
<script state="on">
<action>maincpu.mw@68de = 4e71</action>
<action>maincpu.mw@68f0 = 4e71</action>
</script>
<script state="off">
<action>maincpu.mw@68de = 6a0c</action>
<action>maincpu.mw@68f0 = 6a1a</action>
</script>
</cheat>
<cheat desc="player speed">
<parameter min="0x01" max="0x08" step="0x01" />
<script state="on">
<action>maincpu.md@6970 = 4eb80270</action>
<action>maincpu.mq@0270 = 381a70004a446706</action>
<action>maincpu.mq@0278 = 6a02444038003612</action>
<action>maincpu.mq@0280 = 70004a4367066a02</action>
<action>maincpu.mq@0288 = 444036004e750000</action>
<!--
0270 | 381a : move.w (A2)+,D4
0272 | 70xx : moveq #$xx,D0
0274 | 4a44 : tst.w D4
0276 | 6706 : beq $27e
0278 | 6a02 : bpl $27c
027a | 4440 : neg.w D0
027c | 3800 : move.w D0,D4
027e | 3612 : move.w (A2),D3
0280 | 70xx : moveq #$xx,D0
0282 | 4a43 : tst.w D3
0284 | 6706 : beq $28c
0286 | 6a02 : bpl $28a
0288 | 4440 : neg.w D0
028a | 3600 : move.w D0,D3
028c | 4e75 : rts
-->
</script>
<script>
<action>maincpu.mb@0273 = param</action>
<action>maincpu.mb@0281 = param</action>
</script>
<script state="off">
<action>maincpu.md@6970 = 381a3612</action>
<action>maincpu.mq@0270 = 0000000000000000</action>
<action>maincpu.mq@0278 = 0000000000000000</action>
<action>maincpu.mq@0280 = 0000000000000000</action>
<action>maincpu.mq@0288 = 0000000000000000</action>
</script>
</cheat>
<cheat desc="bullet speed">
<parameter>
<item value="0x0c">01 (slow)</item>
<item value="0x18">02 </item>
<item value="0x24">03 </item>
<item value="0x30">04 </item>
<item value="0x3c">05 (fast)</item>
</parameter>
<script state="on">
<action>maincpu.mw@7eae = 7000</action> <!-- red -->
<action>maincpu.mw@8820 = 7000</action> <!-- orange -->
<action>maincpu.mw@9488 = 0000</action> <!-- blue -->
</script>
<script state="change">
<action>maincpu.mb@7eaf = param</action>
<action>maincpu.mb@8821 = param</action>
<action>maincpu.mb@9489 = param</action>
</script>
<script state="off">
<action>maincpu.mw@7eae = 7018</action>
<action>maincpu.mw@8820 = 7018</action>
<action>maincpu.mw@9488 = 0018</action>
</script>
</cheat>
<cheat desc="sound test mode">
<script state="on">
<action>maincpu.mw@144c = 0290</action>
<action>maincpu.mq@0290 = 41ed1000302d1cda</action>
<action>maincpu.mq@0298 = b06d1ce0674a0c00</action>
<action>maincpu.mq@02a0 = 00fe660253500c00</action>
<action>maincpu.mq@02a8 = 00fd660252500c00</action>
<action>maincpu.mq@02b0 = 00ef662832100c41</action>
<action>maincpu.mq@02b8 = 0011640e3f3c000f</action>
<action>maincpu.mq@02c0 = 3f014eb900010648</action>
<action>maincpu.mq@02c8 = 6010044100113f3c</action>
<action>maincpu.mq@02d0 = 00003f014eb90001</action>
<action>maincpu.mq@02d8 = 147e588f0c0000df</action>
<action>maincpu.mq@02e0 = 66064eb9000105da</action>
<action>maincpu.mq@02e8 = 4e75000000000000</action>
<!--
000290 | 41ed 1000 : lea ($1000,A5),A0
000294 | 302d 1cda : move.w ($1cda,A5),D0 // read input
000298 | b06d 1ce0 : cmp.w ($1ce0,A5),D0
00029c | 674a : beq $2e8
00029e | 0c00 00fe : cmpi.b #-$2,D0
0002a2 | 6602 : bne $2a6
0002a4 | 5350 : subq.w #1,(A0) // decrease code
0002a6 | 0c00 00fd : cmpi.b #-$3,D0
0002aa | 6602 : bne $2ae
0002ac | 5250 : addq.w #1,(A0) // increase code
0002ae | 0c00 00ef : cmpi.b #-$11,D0
0002b2 | 6628 : bne $2dc
0002b4 | 3210 : move.w (A0),D1 // play sound
0002b6 | 0c41 0011 : cmpi.w #$11,D1
0002ba | 640e : bcc $2ca
0002bc | 3f3c 000f : move.w #$f,-(A7)
0002c0 | 3f01 : move.w D1,-(A7)
0002c2 | 4eb9 0001 0648 : jsr $10648.l // music
0002c8 | 6010 : bra $2da
0002ca | 0441 0011 : subi.w #$11,D1
0002ce | 3f3c 0000 : move.w #$0,-(A7)
0002d2 | 3f01 : move.w D1,-(A7)
0002d4 | 4eb9 0001 147e : jsr $1147e.l // sfx
0002da | 588f : addq.l #4,A7
0002dc | 0c00 00df : cmpi.b #-$21,D0
0002e0 | 6606 : bne $2e8
0002e2 | 4eb9 0001 05da : jsr $105da.l // stop sound
0002e8 | 4e75 : rts
-->
</script>
<script state="run">
<output format="----- mad shark 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="button 1 : play sound" line="13" align="center" />
<output format="button 2 : stop sound" line="14" align="center" />
<output format="----------------------------" line="15" align="center" />
<output format="<< sound code %2.2X >>" line="17" align="center">
<argument>maincpu.pb@201001</argument>
</output>
</script>
<script state="off">
<action>maincpu.mw@144c = a74a</action>
<action>maincpu.mq@0290 = ffffffffffffffff</action>
<action>maincpu.mq@0298 = ffffffffffffffff</action>
<action>maincpu.mq@02a0 = ffffffffffffffff</action>
<action>maincpu.mq@02a8 = ffffffffffffffff</action>
<action>maincpu.mq@02b0 = ffffffffffffffff</action>
<action>maincpu.mq@02b8 = ffffffffffffffff</action>
<action>maincpu.mq@02c0 = ffffffffffffffff</action>
<action>maincpu.mq@02c8 = ffffffffffffffff</action>
<action>maincpu.mq@02d0 = ffffffffffffffff</action>
<action>maincpu.mq@02d8 = ffffffffffffffff</action>
<action>maincpu.mq@02e0 = ffffffffffffffff</action>
<action>maincpu.mq@02e8 = ffffffffffffffff</action>
</script>
</cheat>
<cheat desc="skip ram check">
<script state="on">
<action>maincpu.mw@035c = 035e</action> <!-- skip ram check -->
<action>maincpu.mb@0501 = 02</action> <!-- skip ram check result screen -->
</script>
<script state="off">
<action>maincpu.mw@035c = 056a</action>
<action>maincpu.mb@501 = 09</action>
</script>
</cheat>