Code: Select all
<cheat desc="no hit">
<script state="on">
<action>maincpu.mb@86cc = 60</action> <!-- background -->
<action>maincpu.mb@88e7 = 72</action> <!-- objects -->
</script>
<script state="off">
<action>maincpu.mb@86cc = 67</action>
<action>maincpu.mb@88e7 = 74</action>
</script>
</cheat>
<cheat desc="auto fire">
<script state="on">
<action>maincpu.mb@8a1a = 66</action>
</script>
<script state="off">
<action>maincpu.mb@8a1a = 67</action>
</script>
</cheat>
<cheat desc="player speed">
<parameter>
<item value="0x0001">01 (slow)</item>
<item value="0x0002">02 </item>
<item value="0x0004">03 </item>
<item value="0x0006">04 </item>
<item value="0x0008">05 (fast)</item>
</parameter>
<script state="on">
<action>maincpu.mw@8a56 = 343c</action> <!-- move.w #$xx,D2 -->
</script>
<script state="change">
<action>maincpu.mw@8a58 = param</action>
</script>
<script state="off">
<action>maincpu.md@8a56 = 14332000</action>
</script>
</cheat>
<cheat desc="bullet speed">
<parameter>
<item value="0x01">01 (slow)</item>
<item value="0x08">02 </item>
<item value="0x10">03 </item>
<item value="0x18">04 </item>
<item value="0x20">05 (fast)</item>
</parameter>
<script state="change">
<action>maincpu.mb@8f5f = param</action>
</script>
<script state="off">
<action>maincpu.mb@8f5f = 10</action>
</script>
</cheat>
<cheat desc="pod direction change by button 2">
<script state="on">
<action>maincpu.mb@08a8e = 60</action> <!-- fixed pod (move to left) -->
<action>maincpu.mb@08ad6 = 60</action> <!-- fixed pod (move to right) -->
<action>maincpu.mq@08b58 = 4eb90003f0706674</action>
<action>maincpu.mq@3f070 = 0800000566340828</action>
<action>maincpu.mq@3f078 = 00050009672c3229</action>
<action>maincpu.mq@3f080 = 000a4a6d1c62670c</action>
<action>maincpu.mq@3f088 = 59416c1472003b41</action>
<action>maincpu.mq@3f090 = 1c62600c58410c41</action>
<action>maincpu.mq@3f098 = 00116304721160ee</action>
<action>maincpu.mq@3f0a0 = 3341000ae2493341</action>
<action>maincpu.mq@3f0a8 = 00020c6d00011c5a</action>
<action>maincpu.mq@3f0b0 = 4e75000000000000</action>
<!--
3f070 | 0800 0005 : btst #$5,D0
3f074 | 6634 : bne $3f0aa
3f076 | 0828 0005 0009 : btst #$5,($9,A0)
3f07c | 672c : beq $3f0aa
3f07e | 3229 000a : move.w ($a,A1),D1
3f082 | 4a6d 1c62 : tst.w ($1c62,A5)
3f086 | 670c : beq $3f094
3f088 | 5941 : subq.w #4,D1
3f08a | 6c14 : bge $3f0a0
3f08c | 7200 : moveq #$0,D1
3f08e | 3b41 1c62 : move.w D1,($1c62,A5)
3f092 | 600c : bra $3f0a0
3f094 | 5841 : addq.w #4,D1
3f096 | 0c41 0011 : cmpi.w #$11,D1
3f09a | 6304 : bls $3f0a0
3f09c | 7211 : moveq #$11,D1
3f09e | 60ee : bra $3f08e
3f0a0 | 3341 000a : move.w D1,($a,A1)
3f0a4 | e249 : lsr.w #1,D1
3f0a6 | 3341 0002 : move.w D1,($2,A1)
3f0aa | 0c6d 0001 1c5a : cmpi.w #$1,($1c5a,A5)
3f0b0 | 4e75 : rts
-->
</script>
<script state="off">
<action>maincpu.mb@08a8e = 64</action>
<action>maincpu.mb@08ad6 = 64</action>
<action>maincpu.mq@08b58 = 0c6d00011c5a6674</action>
<action>maincpu.mq@3f070 = 0000000000000000</action>
<action>maincpu.mq@3f078 = 0000000000000000</action>
<action>maincpu.mq@3f080 = 0000000000000000</action>
<action>maincpu.mq@3f088 = 0000000000000000</action>
<action>maincpu.mq@3f090 = 0000000000000000</action>
<action>maincpu.mq@3f098 = 0000000000000000</action>
<action>maincpu.mq@3f0a0 = 0000000000000000</action>
<action>maincpu.mq@3f0a8 = 0000000000000000</action>
<action>maincpu.mq@3f0b0 = 0000000000000000</action>
</script>
</cheat>
<cheat desc="sound test mode">
<comment>reset the game (F3) to enter sound test mode</comment>
<script state="on">
<action>maincpu.mb@07bd5 = 02</action> <!-- disable next sequence at boot -->
<action>maincpu.md@013a6 = 0003f0c0</action>
<action>maincpu.mq@3f0c0 = 41ed100043ed1002</action>
<action>maincpu.mq@3f0c8 = 025000ff10390040</action>
<action>maincpu.mq@3f0d0 = 0001b01167400c00</action>
<action>maincpu.mq@3f0d8 = 00fe660253500c00</action>
<action>maincpu.mq@3f0e0 = 00fd660252500c00</action>
<action>maincpu.mq@3f0e8 = 00f7660404500010</action>
<action>maincpu.mq@3f0f0 = 0c0000fb66040650</action>
<action>maincpu.mq@3f0f8 = 00100c0000ef660a</action>
<action>maincpu.mq@3f100 = 3f104eb900005fe0</action>
<action>maincpu.mq@3f108 = 544f0c0000df6606</action>
<action>maincpu.mq@3f110 = 4eb90000611e1280</action>
<action>maincpu.mq@3f118 = 4e75000000000000</action>
<!--
3f0c0 | 41ed 1000 : lea ($1000,A5),A0 // sound code address
3f0c4 | 43ed 1002 : lea ($1002,A5),A1 // input check address
3f0c8 | 0250 00ff : andi.w #$ff,(A0)
3f0cc | 1039 0040 0001 : move.b $400001.l,D0 // read input
3f0d2 | b011 : cmp.b (A1),D0
3f0d4 | 6740 : beq $3f116
3f0d6 | 0c00 00fe : cmpi.b #-$2,D0
3f0da | 6602 : bne $3f0de
3f0dc | 5350 : subq.w #1,(A0) // decrease code -01
3f0de | 0c00 00fd : cmpi.b #-$3,D0
3f0e2 | 6602 : bne $3f0e6
3f0e4 | 5250 : addq.w #1,(A0) // increase code +01
3f0e6 | 0c00 00f7 : cmpi.b #-$9,D0
3f0ea | 6604 : bne $3f0f0
3f0ec | 0450 0010 : subi.w #$10,(A0) // decrease code -10
3f0f0 | 0c00 00fb : cmpi.b #-$5,D0
3f0f4 | 6604 : bne $3f0fa
3f0f6 | 0650 0010 : addi.w #$10,(A0) // increase code +10
3f0fa | 0c00 00ef : cmpi.b #-$11,D0
3f0fe | 660a : bne $3f10a
3f100 | 3f10 : move.w (A0),-(A7) // play sound
3f102 | 4eb9 0000 5fe0 : jsr $5fe0.l
3f108 | 544f : addq.w #2,A7
3f10a | 0c00 00df : cmpi.b #-$21,D0
3f10e | 6606 : bne $3f116
3f110 | 4eb9 0000 611e : jsr $611e.l // stop sound
3f116 | 1280 : move.b D0,(A1)
3f118 | 4e75 : rts
-->
</script>
<script state="run">
<output format="----- rezon 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 sound" line="16" align="center" />
<output format="----------------------------" line="17" align="center" />
<output format="<< sound code %2.2X >>" line="19" align="center">
<argument>maincpu.pb@201001</argument>
</output>
</script>
<script state="off">
<action>maincpu.mb@07bd5 = 00</action>
<action>maincpu.md@013a6 = 00002d18</action>
<action>maincpu.mq@3f0c0 = 41ed100043ed1002</action>
<action>maincpu.mq@3f0c8 = 025000ff10390040</action>
<action>maincpu.mq@3f0d0 = 0001b01167400c00</action>
<action>maincpu.mq@3f0d8 = 00fe660253500c00</action>
<action>maincpu.mq@3f0e0 = 00fd660252500c00</action>
<action>maincpu.mq@3f0e8 = 00f7660404500010</action>
<action>maincpu.mq@3f0f0 = 0c0000fb66040650</action>
<action>maincpu.mq@3f0f8 = 00100c0000ef660a</action>
<action>maincpu.mq@3f100 = 3f104eb900005fe0</action>
<action>maincpu.mq@3f108 = 544f0c0000df6606</action>
<action>maincpu.mq@3f110 = 4eb90000611e1280</action>
<action>maincpu.mq@3f118 = 4e75000000000000</action>
</script>
</cheat>