Code: Select all
<cheat desc="no hit">
<script state="on">
<action>maincpu.md@4eac = 60000006</action>
</script>
<script state="off">
<action>maincpu.md@4eac = 08d10003</action>
</script>
</cheat>
<cheat desc="auto fire">
<script state="on">
<action>maincpu.mq@0587e = 4eb9000147604e71</action>
<action>maincpu.mq@14760 = 266c0000202b0000</action>
<action>maincpu.mq@14768 = 806b00004e75ffff</action>
<!--
14760 | 266c 0000 : movea.l ($0,A4),A3
14764 | 202b 0000 : move.l ($0,A3),D0
14768 | 806b 0000 : or.w ($0,A3),D0
1476c | 4e75 : rts
-->
</script>
<script state="off">
<action>maincpu.mq@0587e = 266c0000202b0000</action>
<action>maincpu.mq@14760 = ffffffffffffffff</action>
<action>maincpu.mq@14768 = ffffffffffffffff</action>
</script>
</cheat>
<cheat desc="player speed">
<parameter min="0x01" max="0x05" step="0x01" />
<script state="on">
<action>maincpu.mq@05b16 = 4eb900014790d080</action>
<action>maincpu.mq@14790 = 2818610c24042810</action>
<action>maincpu.mq@14798 = 6106260478004e75</action>
<action>maincpu.mq@147a0 = 7c0048464a846706</action>
<action>maincpu.mq@147a8 = 6a02448628064e75</action>
<!--
14790 | 2818 : move.l (A0)+,D4
14792 | 610c : bsr $147a0
14794 | 2404 : move.l D4,D2
14796 | 2810 : move.l (A0),D4
14798 | 6106 : bsr $147a0
1479a | 2604 : move.l D4,D3
1479c | 7800 : moveq #$0,D4
1479e | 4e75 : rts
147a0 | 7cxx : moveq #$xx,D6
147a2 | 4846 : swap D6
147a4 | 4a84 : tst.l D4
147a6 | 6706 : beq $147ae
147a8 | 6a02 : bpl $147ac
147aa | 4486 : neg.l D6
147ac | 2806 : move.l D6,D4
147ae | 4e75 : rts
-->
</script>
<script state="change">
<action>maincpu.mb@147a1 = param</action>
</script>
<script state="off">
<action>maincpu.mq@05b16 = 241826107804d080</action>
<action>maincpu.mq@14790 = ffffffffffffffff</action>
<action>maincpu.mq@14798 = ffffffffffffffff</action>
<action>maincpu.mq@147a0 = ffffffffffffffff</action>
<action>maincpu.mq@147a8 = ffffffffffffffff</action>
</script>
</cheat>
<cheat desc="bullet speed - antiair">
<parameter>
<item value="0x01">01 (slow)</item>
<item value="0x04">02 </item>
<item value="0x08">03 </item>
<item value="0x0c">04 </item>
<item value="0x10">05 (fast)</item>
</parameter>
<script state="on">
<action>maincpu.mq@059f8 = 4eb9000147b0317c</action>
<action>maincpu.mq@147b0 = 317c00000022317c</action>
<action>maincpu.mq@147b8 = 0002000a4e75ffff</action>
<!--
147b0 | 317c 00xx 0022 : move.w #$xx,($22,A0)
147b6 | 317c 0002 000a : move.w #$2,($a,A0)
147bc | 4e75 : rts
-->
</script>
<script state="change">
<action>maincpu.mb@147b3 = param</action>
</script>
<script state="off">
<action>maincpu.mq@059f8 = 317c0002000a317c</action>
<action>maincpu.mq@147b0 = ffffffffffffffff</action>
<action>maincpu.mq@147b8 = ffffffffffffffff</action>
</script>
</cheat>
<cheat desc="fast antisurface shot">
<script state="on">
<action>maincpu.mq@05a1c = 4eb900014770222d</action>
<action>maincpu.mq@14770 = b1fc00ffc9326508</action>
<action>maincpu.mq@14778 = 064100305e680002</action>
<action>maincpu.mq@14780 = 4841214100064e75</action>
<!--
05a1c | 4eb9 0001 4770 : jsr $14770.l
14770 | b1fc 00ff c932 : cmpa.l #$ffc932,A0
14776 | 6508 : bcs $14780
14778 | 0641 0030 : addi.w #$30,D1
1477c | 5e68 0002 : addq.w #7,($2,A0)
14780 | 4841 : swap D1
14782 | 2141 0006 : move.l D1,($6,A0)
14786 | 4e75 : rts
-->
</script>
<script state="off">
<action>maincpu.mq@05a1c = 484121410006222d</action>
<action>maincpu.mq@14770 = ffffffffffffffff</action>
<action>maincpu.mq@14778 = ffffffffffffffff</action>
<action>maincpu.mq@14780 = 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.mq@00540 = 4ef9000147604eb9</action>
<action>maincpu.mq@14760 = 41f900ff10001401</action>
<action>maincpu.mq@14768 = 123900a00001b401</action>
<action>maincpu.mq@14770 = 67f40c01007f6602</action>
<action>maincpu.mq@14778 = 53100c0100bf6602</action>
<action>maincpu.mq@14780 = 52100c0100ef6604</action>
<action>maincpu.mq@14788 = 041000100c0100df</action>
<action>maincpu.mq@14790 = 6604061000100c01</action>
<action>maincpu.mq@14798 = 00fe66041010600a</action>
<action>maincpu.mq@147a0 = 0c0100fd660a103c</action>
<action>maincpu.mq@147a8 = 00ff13c000fe0007</action>
<action>maincpu.mq@147b0 = 60b4ffffffffffff</action>
<!--
14760 | 41f9 00ff 1000 : lea $ff1000.l,A0 // sound code address
14766 | 1401 : move.b D1,D2
14768 | 1239 00a0 0001 : move.b $a00001.l,D1 // read input
1476e | b401 : cmp.b D1,D2
14770 | 67f4 : beq $14766
14772 | 0c01 007f : cmpi.b #$7f,D1
14776 | 6602 : bne $1477a
14778 | 5310 : subq.b #1,(A0) // decrease code -01
1477a | 0c01 00bf : cmpi.b #-$41,D1
1477e | 6602 : bne $14782
14780 | 5210 : addq.b #1,(A0) // increase code +01
14782 | 0c01 00ef : cmpi.b #-$11,D1
14786 | 6604 : bne $1478c
14788 | 0410 0010 : subi.b #$10,(A0) // decrease code -10
1478c | 0c01 00df : cmpi.b #-$21,D1
14790 | 6604 : bne $14796
14792 | 0610 0010 : addi.b #$10,(A0) // increase code +10
14796 | 0c01 00fe : cmpi.b #-$2,D1
1479a | 6604 : bne $147a0
1479c | 1010 : move.b (A0),D0 // play sound
1479e | 600a : bra $147aa
147a0 | 0c01 00fd : cmpi.b #-$3,D1
147a4 | 660a : bne $147b0
147a6 | 103c 00ff : move.b #$ff,D0 // stop sound
147aa | 13c0 00fe 0007 : move.b D0,$fe0007.l // send sound code
147b0 | 60b4 : bra $14766
-->
</script>
<script state="run">
<output format="----- hammer away 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@ff1000</argument>
</output>
</script>
<script state="off">
<action>maincpu.mq@00540 = 4eb90000086c4eb9</action>
<action>maincpu.mq@14760 = ffffffffffffffff</action>
<action>maincpu.mq@14768 = ffffffffffffffff</action>
<action>maincpu.mq@14770 = ffffffffffffffff</action>
<action>maincpu.mq@14778 = ffffffffffffffff</action>
<action>maincpu.mq@14780 = ffffffffffffffff</action>
<action>maincpu.mq@14788 = ffffffffffffffff</action>
<action>maincpu.mq@14790 = ffffffffffffffff</action>
<action>maincpu.mq@14798 = ffffffffffffffff</action>
<action>maincpu.mq@147a0 = ffffffffffffffff</action>
<action>maincpu.mq@147a8 = ffffffffffffffff</action>
<action>maincpu.mq@147b0 = ffffffffffffffff</action>
</script>
</cheat>