Code: Select all
<cheat desc="no hit">
<script state="on">
<action>maincpu.mw@102e2 = 0002</action> <!-- enemy -->
<action>maincpu.mw@11340 = 6000</action> <!-- bullet -->
</script>
<script state="off">
<action>maincpu.mw@102e2 = 0296</action>
<action>maincpu.mw@11340 = 6600</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="on">
<action>maincpu.mq@10664 = 4eb90001e2504e71</action>
<action>maincpu.mq@1e250 = 303c00004a436706</action>
<action>maincpu.mq@1e258 = 6a0244403600303c</action>
<action>maincpu.mq@1e260 = 00004a4467066a02</action>
<action>maincpu.mq@1e268 = 444038003d430020</action>
<action>maincpu.mq@1e270 = 3d4400224e75ffff</action>
<!--
1e250 | 303c xxxx : move.w #$xxxx,D0 // x position
1e254 | 4a43 : tst.w D3
1e256 | 6706 : beq $1e25e
1e258 | 6a02 : bpl $1e25c
1e25a | 4440 : neg.w D0
1e25c | 3600 : move.w D0,D3
1e25e | 303c xxxx : move.w #$xxxx,D0 // y position
1e262 | 4a44 : tst.w D4
1e264 | 6706 : beq $1e26c
1e266 | 6a02 : bpl $1e26a
1e268 | 4440 : neg.w D0
1e26a | 3800 : move.w D0,D4
1e26c | 3d43 0020 : move.w D3,($20,A6)
1e270 | 3d44 0022 : move.w D4,($22,A6)
1e274 | 4e75 : rts
-->
</script>
<script state="change">
<action>maincpu.mw@1e252 = param</action>
<action>maincpu.mw@1e260 = param</action>
</script>
<script state="off">
<action>maincpu.mq@10664 = 3d4300203d440022</action>
<action>maincpu.mq@1e250 = ffffffffffffffff</action>
<action>maincpu.mq@1e258 = ffffffffffffffff</action>
<action>maincpu.mq@1e260 = ffffffffffffffff</action>
<action>maincpu.mq@1e268 = ffffffffffffffff</action>
<action>maincpu.mq@1e270 = ffffffffffffffff</action>
</script>
</cheat>
<cheat desc="enemy 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="on">
<action>maincpu.mq@0da64 = 4eb90001e2804e71</action>
<action>maincpu.mq@1e280 = 303c00004a436706</action>
<action>maincpu.mq@1e288 = 6a0244403600303c</action>
<action>maincpu.mq@1e290 = 00004a4467066a02</action>
<action>maincpu.mq@1e298 = 444038003d430020</action>
<action>maincpu.mq@1e2a0 = 3d4400224e75ffff</action>
<!--
1e280 | 303c xxxx : move.w #$xxxx,D0 // x position
1e284 | 4a43 : tst.w D3
1e286 | 6706 : beq $1e28e
1e288 | 6a02 : bpl $1e28c
1e28a | 4440 : neg.w D0
1e28c | 3600 : move.w D0,D3
1e28e | 303c xxxx : move.w #$xxxx,D0 // y position
1e292 | 4a44 : tst.w D4
1e294 | 6706 : beq $1e29c
1e296 | 6a02 : bpl $1e29a
1e298 | 4440 : neg.w D0
1e29a | 3800 : move.w D0,D4
1e29c | 3d43 0020 : move.w D3,($20,A6)
1e2a0 | 3d44 0022 : move.w D4,($22,A6)
1e2a4 | 4e75 : rts
-->
</script>
<script state="change">
<action>maincpu.mw@1e282 = param</action>
<action>maincpu.mw@1e290 = param</action>
</script>
<script state="off">
<action>maincpu.mq@0da64 = 3d4300203d440022</action>
<action>maincpu.mq@1e280 = ffffffffffffffff</action>
<action>maincpu.mq@1e288 = ffffffffffffffff</action>
<action>maincpu.mq@1e290 = ffffffffffffffff</action>
<action>maincpu.mq@1e298 = ffffffffffffffff</action>
<action>maincpu.mq@1e2a0 = 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@00324 = 0001e2b0</action>
<action>maincpu.mq@1e2b0 = 41f8900010bc0080</action>
<action>maincpu.mq@1e2b8 = 1200103900840001</action>
<action>maincpu.mq@1e2c0 = b20067f40c00007f</action>
<action>maincpu.mq@1e2c8 = 660253100c0000bf</action>
<action>maincpu.mq@1e2d0 = 660252100c0000fe</action>
<action>maincpu.mq@1e2d8 = 66041e10600a0c00</action>
<action>maincpu.mq@1e2e0 = 00df660a1e3c009f</action>
<action>maincpu.mq@1e2e8 = 4eb90000421c60c8</action>
<!--
1e2b0 | 41f8 9000 : lea $9000.w,A0 // sound code address
1e2b4 | 10bc 0080 : move.b #$80,(A0) // intialize sound code
1e2b8 | 1200 : move.b D0,D1
1e2ba | 1039 0084 0001 : move.b $840001.l,D0 // read input
1e2c0 | b200 : cmp.b D0,D1
1e2c2 | 67f4 : beq $1e2b8
1e2c4 | 0c00 007f : cmpi.b #$7f,D0
1e2c8 | 6602 : bne $1e2cc
1e2ca | 5310 : subq.b #1,(A0) // decrease code
1e2cc | 0c00 00bf : cmpi.b #-$41,D0
1e2d0 | 6602 : bne $1e2d4
1e2d2 | 5210 : addq.b #1,(A0) // increase code
1e2d4 | 0c00 00fe : cmpi.b #-$2,D0
1e2d8 | 6604 : bne $1e2de
1e2da | 1e10 : move.b (A0),D7 // play sound
1e2dc | 600a : bra $1e2e8
1e2de | 0c00 00df : cmpi.b #-$21,D0
1e2e2 | 660a : bne $1e2ee
1e2e4 | 1e3c 009f : move.b #$9f,D7 // stop sound
1e2e8 | 4eb9 0000 421c : jsr $421c.l // send sound code
1e2ee | 60c8 : bra $1e2b8
-->
</script>
<script state="run">
<output format="----- head on channel 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="up : 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@ff9000</argument>
</output>
</script>
<script state="off">
<action>maincpu.md@00324 = 00004278</action>
<action>maincpu.mq@1e2b0 = ffffffffffffffff</action>
<action>maincpu.mq@1e2b8 = ffffffffffffffff</action>
<action>maincpu.mq@1e2c0 = ffffffffffffffff</action>
<action>maincpu.mq@1e2c8 = ffffffffffffffff</action>
<action>maincpu.mq@1e2d0 = ffffffffffffffff</action>
<action>maincpu.mq@1e2d8 = ffffffffffffffff</action>
<action>maincpu.mq@1e2e0 = ffffffffffffffff</action>
<action>maincpu.mq@1e2e8 = ffffffffffffffff</action>
</script>
</cheat>