Code: Select all
<cheat desc="no hit">
<script state="on">
<action>maincpu.mb@077b9 = 50</action> <!-- object -->
<action>maincpu.md@07bf2 = 60000082</action> <!-- wall -->
</script>
<script state="off">
<action>maincpu.mb@077b9 = 52</action>
<action>maincpu.md@07bf2 = 6a0009dc</action>
</script>
</cheat>
<cheat desc="auto fire">
<script state="on">
<action>maincpu.mq@07d80 = 4eb9000210704e71</action>
<action>maincpu.mq@21070 = 303c000401ae0014</action>
<action>maincpu.mq@21078 = 4eb9000085c04e75</action>
<!--
21070 | 303c 0004 : move.w #$4,D0
21074 | 01ae 0014 : bclr D0,($14,a6)
21078 | 4eb9 0000 85c0 : jsr $85c0.l
2107e | 4e75 : rts
-->
</script>
<script state="off">
<action>maincpu.mq@07d80 = 303c00046100083a</action>
<action>maincpu.mq@21070 = ffffffffffffffff</action>
<action>maincpu.mq@21078 = ffffffffffffffff</action>
</script>
</cheat>
<cheat desc="player speed">
<parameter>
<item value="0x02">01 (slow)</item>
<item value="0x04">02 </item>
<item value="0x06">03 </item>
<item value="0x08">04 </item>
<item value="0x0a">05 (fast)</item>
</parameter>
<script state="on">
<action>maincpu.mq@09158 = 4eb900021080916e</action> <!-- right -->
<action>maincpu.mq@09190 = 4eb900021080d16e</action> <!-- up -->
<action>maincpu.mq@091a4 = 4eb900021080d16e</action> <!-- left -->
<action>maincpu.mq@091c8 = 4eb900021080916e</action> <!-- down -->
<action>maincpu.mq@21080 = bdfc00ffe5226708</action>
<action>maincpu.mq@21088 = bdfc00ffe582660a</action>
<action>maincpu.mq@21090 = 4a406704303c0000</action>
<action>maincpu.mq@21098 = 4e7512301000d041</action>
<action>maincpu.mq@210a0 = 4e75ffffffffffff</action>
<!--
21080 | bdfc 00ff e522 : cmpa.l #$ffe522,A6
21086 | 6708 : beq $21090
21088 | bdfc 00ff e582 : cmpa.l #$ffe582,A6
2108e | 660a : bne $2109a
21090 | 4a40 : tst.w D0
21092 | 6704 : beq $21098
21094 | 303c 00xx : move.w #$xx,D0
21098 | 4e75 : rts
2109a | 1230 1000 : move.b (A0,D1.w),D1
2109e | d041 : add.w D1,D0
210a0 | 4e75 : rts
-->
</script>
<script state="change">
<action>maincpu.mb@21097 = param</action>
</script>
<script state="off">
<action>maincpu.mq@09158 = 12301000d041916e</action>
<action>maincpu.mq@09190 = 12301000d041d16e</action>
<action>maincpu.mq@091a4 = 12301000d041d16e</action>
<action>maincpu.mq@091c8 = 12301000d041916e</action>
<action>maincpu.mq@21080 = ffffffffffffffff</action>
<action>maincpu.mq@21088 = ffffffffffffffff</action>
<action>maincpu.mq@21090 = ffffffffffffffff</action>
<action>maincpu.mq@21098 = ffffffffffffffff</action>
<action>maincpu.mq@210a0 = ffffffffffffffff</action>
</script>
</cheat>
<cheat desc="bullet speed - main shot">
<parameter>
<item value="0x06">01 (slow)</item>
<item value="0x0c">02 </item>
<item value="0x12">03 </item>
<item value="0x18">04 </item>
<item value="0x1e">05 (fast)</item>
</parameter>
<script state="on">
<action>maincpu.md@09d4c = 303c0000</action>
</script>
<script state="change">
<action>maincpu.mb@09d4f = param</action>
</script>
<script state="off">
<action>maincpu.md@09d4c = 303b0034</action>
</script>
</cheat>
<cheat desc="max bullets up">
<script state="on">
<action>maincpu.md@07db0 = 000210b0</action>
<action>maincpu.mq@210b0 = 7404610086b04e75</action>
<!--
210b0 | 7404 : moveq #$4,D2
210b2 | 6100 86b0 : bsr $19764
210b6 | 4e75 : rts
-->
</script>
<script state="off">
<action>maincpu.md@07db0 = 00019764</action>
<action>maincpu.mq@210b0 = 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@0045e = 000210c0</action>
<action>maincpu.mq@210c0 = 4eb809fe41ed0100</action>
<action>maincpu.mq@210c8 = 43ed011012111439</action>
<action>maincpu.mq@210d0 = 00b000011282b401</action>
<action>maincpu.mq@210d8 = 67e60c0200fe6602</action>
<action>maincpu.mq@210e0 = 53100c0200fd6602</action>
<action>maincpu.mq@210e8 = 52100c0200f76604</action>
<action>maincpu.mq@210f0 = 041000100c0200fb</action>
<action>maincpu.mq@210f8 = 6604061000100c02</action>
<action>maincpu.mq@21100 = 00ef660810104eb8</action>
<action>maincpu.mq@21108 = 0918600a0c0200df</action>
<action>maincpu.mq@21110 = 66044eb808ba60a8</action>
<!--
210c0 | 4eb8 09fe : jsr $9fe.w
210c4 | 41ed 0100 : lea ($100,A5),A0 // sound code address
210c8 | 43ed 0110 : lea ($110,A5),A1 // input compare address
210cc | 1211 : move.b (A1),D1
210ce | 1439 00b0 0001 : move.b $b00001.l,D2 // read input
210d4 | 1282 : move.b D2,(A1)
210d6 | b401 : cmp.b D1,D2
210d8 | 67e6 : beq $210c0
210da | 0c02 00fe : cmpi.b #-$2,D2
210de | 6602 : bne $210e2
210e0 | 5310 : subq.b #1,(A0) // decrease code -01
210e2 | 0c02 00fd : cmpi.b #-$3,D2
210e6 | 6602 : bne $210ea
210e8 | 5210 : addq.b #1,(A0) // increase code +01
210ea | 0c02 00f7 : cmpi.b #-$9,D2
210ee | 6604 : bne $210f4
210f0 | 0410 0010 : subi.b #$10,(A0) // decrease code -10
210f4 | 0c02 00fb : cmpi.b #-$5,D2
210f8 | 6604 : bne $210fe
210fa | 0610 0010 : addi.b #$10,(A0) // increase code +10
210fe | 0c02 00ef : cmpi.b #-$11,D2
21102 | 6608 : bne $2110c
21104 | 1010 : move.b (A0),D0 // play sound
21106 | 4eb8 0918 : jsr $918.w
2110a | 600a : bra $21116
2110c | 0c02 00df : cmpi.b #-$21,D2
21110 | 6604 : bne $21116
21112 | 4eb8 08ba : jsr $8ba.w // stop sound
21116 | 60a8 : bra $210c0
-->
</script>
<script state="run">
<output format="----- strike gunner 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@ffc100</argument>
</output>
</script>
<script state="off">
<action>maincpu.md@0045e = 00000ab6</action>
<action>maincpu.mq@210c0 = ffffffffffffffff</action>
<action>maincpu.mq@210c8 = ffffffffffffffff</action>
<action>maincpu.mq@210d0 = ffffffffffffffff</action>
<action>maincpu.mq@210d8 = ffffffffffffffff</action>
<action>maincpu.mq@210e0 = ffffffffffffffff</action>
<action>maincpu.mq@210e8 = ffffffffffffffff</action>
<action>maincpu.mq@210f0 = ffffffffffffffff</action>
<action>maincpu.mq@210f8 = ffffffffffffffff</action>
<action>maincpu.mq@21100 = ffffffffffffffff</action>
<action>maincpu.mq@21108 = ffffffffffffffff</action>
<action>maincpu.mq@21110 = ffffffffffffffff</action>
</script>
</cheat>