Code: Select all
<cheat desc="keep a ball">
<script state="on">
<action>maincpu.mq@07432 = 4eb900013640606a</action>
<action>maincpu.mq@13640 = 0c2e00fb0113650a</action>
<action>maincpu.mq@13648 = 3d7cfa000382462e</action>
<action>maincpu.mq@13650 = 03864e75ffffffff</action>
<!--
13640 | 0c2e 00fb 0113 : cmpi.b #-$5,($113,A6)
13646 | 650a : bcs $13652
13648 | 3d7c fa00 0382 : move.w #$fa00,($382,A6)
1364e | 462e 0386 : not.b ($386,A6)
13652 | 4e75 : rts
-->
</script>
<script state="off">
<action>maincpu.mq@07432 = 0c2e00fb0113656a</action>
<action>maincpu.mq@13640 = ffffffffffffffff</action>
<action>maincpu.mq@13648 = ffffffffffffffff</action>
<action>maincpu.mq@13650 = ffffffffffffffff</action>
</script>
</cheat>
<cheat desc="winning hand">
<comment>catch a tile to win</comment>
<script state="on">
<action>maincpu.mq@00c80 = 4eb9000136604e41</action>
<action>maincpu.mq@13660 = 43ee04c24a2e0207</action>
<action>maincpu.mq@13668 = 670443ee04e245fa</action>
<action>maincpu.mq@13670 = 0014700c12da51c8</action>
<action>maincpu.mq@13678 = fffc115a00031152</action>
<action>maincpu.mq@13680 = 02344e7531313132</action>
<action>maincpu.mq@13688 = 3235353536363637</action>
<action>maincpu.mq@13690 = 373706ffffffffff</action>
<!--
13660 | 43ee 04c2 : lea ($4c2,A6),A1 // P1
13664 | 4a2e 0207 : tst.b ($207,A6)
13668 | 6704 : beq $1366e
1366a | 43ee 04e2 : lea ($4e2,A6),A1 // P2
1366e | 45fa 0014 : lea ($14,PC);($13684),A2
13672 | 700c : moveq #$c,D0
13674 | 12da : move.b (A2)+,(A1)+
13676 | 51c8 fffc : dbra D0,$13674
1367a | 115a 0003 : move.b (A2)+,($3,A0)
1367e | 1152 0234 : move.b (A2),($234,A0)
13682 | 4e75 : rts
13684 - 13692 : tile table
-->
</script>
<script state="off">
<action>maincpu.mq@00c80 = 1d7c000602344e41</action>
<action>maincpu.mq@13660 = ffffffffffffffff</action>
<action>maincpu.mq@13668 = ffffffffffffffff</action>
<action>maincpu.mq@13670 = ffffffffffffffff</action>
<action>maincpu.mq@13678 = ffffffffffffffff</action>
<action>maincpu.mq@13680 = ffffffffffffffff</action>
<action>maincpu.mq@13688 = ffffffffffffffff</action>
<action>maincpu.mq@13690 = ffffffffffffffff</action>
</script>
</cheat>
<cheat desc="ball speed">
<parameter>
<item value="0x100">01 (slow)</item>
<item value="0x200">02 </item>
<item value="0x300">03 </item>
<item value="0x400">04 </item>
<item value="0x500">05 (fast)</item>
</parameter>
<script state="on">
<action>maincpu.mq@072f2 = 4eb9000136a04e71</action> <!-- x position -->
<action>maincpu.mq@072fe = 4eb9000136ae4e71</action> <!-- y position -->
<action>maincpu.mq@136a0 = 302e0380323c0000</action>
<action>maincpu.mq@136a8 = 4a6e0384600c302e</action>
<action>maincpu.mq@136b0 = 0382323c00004a6e</action>
<action>maincpu.mq@136b8 = 038667066a024441</action>
<action>maincpu.mq@136c0 = d0414e75ffffffff</action>
<!--
136a0 | 302e 0380 : move.w ($380,A6),D0 // x position
136a4 | 323c xxxx : move.w #$xxxx,D1
136a8 | 4a6e 0384 : tst.w ($384,A6)
136ac | 600c : bra $136ba
136ae | 302e 0382 : move.w ($382,A6),D0 // y position
136b2 | 323c xxxx : move.w #$xxxx,D1
136b6 | 4a6e 0386 : tst.w ($386,A6)
136ba | 6706 : beq $136c2
136bc | 6a02 : bpl $136c0
136be | 4441 : neg.w D1
136c0 | d041 : add.w D1,D0
136c2 | 4e75 : rts
-->
</script>
<script state="change">
<action>maincpu.mw@136a6 = param</action>
<action>maincpu.mw@136b4 = param</action>
</script>
<script state="off">
<action>maincpu.mq@072f2 = 302e0380d06e0384</action>
<action>maincpu.mq@072fe = 302e0382d06e0386</action>
<action>maincpu.mq@136a0 = ffffffffffffffff</action>
<action>maincpu.mq@136a8 = ffffffffffffffff</action>
<action>maincpu.mq@136b0 = ffffffffffffffff</action>
<action>maincpu.mq@136b8 = ffffffffffffffff</action>
<action>maincpu.mq@136c0 = 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@01aa0 = 4ef9000136d043f9</action>
<action>maincpu.mq@136d0 = 41ee010043f9000e</action>
<action>maincpu.mq@136d8 = 000012001039000c</action>
<action>maincpu.mq@136e0 = 0000b20067f40c00</action>
<action>maincpu.mq@136e8 = 0010660253100c00</action>
<action>maincpu.mq@136f0 = 0020660252100c00</action>
<action>maincpu.mq@136f8 = 0040660212900c00</action>
<action>maincpu.mq@13700 = 0080660412bc0010</action>
<action>maincpu.mq@13708 = 60d0ffffffffffff</action>
<!--
136d0 | 41ee 0100 : lea ($100,A6),A0 // sound code address
136d4 | 43f9 000e 0000 : lea $e0000.l,A1
136da | 1200 : move.b D0,D1
136dc | 1039 000c 0000 : move.b $c0000.l,D0 // read input
136e2 | b200 : cmp.b D0,D1
136e4 | 67f4 : beq $136da
136e6 | 0c00 0010 : cmpi.b #$10,D0
136ea | 6602 : bne $136ee
136ec | 5310 : subq.b #1,(A0) // decrease code
136ee | 0c00 0020 : cmpi.b #$20,D0
136f2 | 6602 : bne $136f6
136f4 | 5210 : addq.b #1,(A0) // increase code
136f6 | 0c00 0040 : cmpi.b #$40,D0
136fa | 6602 : bne $136fe
136fc | 1290 : move.b (A0),(A1) // play sound
136fe | 0c00 0080 : cmpi.b #-$80,D0
13702 | 6604 : bne $13708
13704 | 12bc 0010 : move.b #$10,(A1) // stop sound
13708 | 60d0 : bra $136da
-->
</script>
<script state="run">
<output format="----- jongbou sound test mode -----" line="10" align="center" />
<output format="1P start : decrease code" line="11" align="center" />
<output format="2P start : increase code" line="12" align="center" />
<output format="1P button 1 : play sound" line="13" align="center" />
<output format="2P button 1 : 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@20100</argument>
</output>
</script>
<script state="off">
<action>maincpu.mq@01aa0 = 41f90002010243f9</action>
<action>maincpu.mq@136d0 = ffffffffffffffff</action>
<action>maincpu.mq@136d8 = ffffffffffffffff</action>
<action>maincpu.mq@136e0 = ffffffffffffffff</action>
<action>maincpu.mq@136e8 = ffffffffffffffff</action>
<action>maincpu.mq@136f0 = ffffffffffffffff</action>
<action>maincpu.mq@136f8 = ffffffffffffffff</action>
<action>maincpu.mq@13700 = ffffffffffffffff</action>
<action>maincpu.mq@13708 = ffffffffffffffff</action>
</script>
</cheat>
<cheat desc="skip rom check">
<script state="on">
<action>maincpu.md@1928 = 600000f8</action>
</script>
<script state="off">
<action>maincpu.md@1928 = 41f80401</action>
</script>
</cheat>