[madshark] Mad Shark

This forum is for posting M.A.M.E. Work In Progress "Arcade"cheats that are not quite ready for the prime time. If the cheats are buggy or the cheat descriptions are non-standard then please post them here. Help maybe given but there are no guarantees and they will only be added to the cheat file when the cheat file maintainer is happy with them.
Post Reply
jman
Posts: 843
Joined: Tue Dec 01, 2020 1:24 pm

[madshark] Mad Shark

Post by jman »

Code: Select all

<cheat desc="no hit">
    <script state="on">
        <action>maincpu.mb@a11c = 60</action> <!-- enemy -->
        <action>maincpu.mb@a1cc = 60</action> <!-- bullet -->
    </script>
    <script state="off">
        <action>maincpu.mb@a11c = 62</action>
        <action>maincpu.mb@a1cc = 62</action>
    </script>
</cheat>

<cheat desc="auto fire">
    <script state="on">
        <action>maincpu.mw@68de = 4e71</action>
        <action>maincpu.mw@68f0 = 4e71</action>
    </script>
    <script state="off">
        <action>maincpu.mw@68de = 6a0c</action>
        <action>maincpu.mw@68f0 = 6a1a</action>
    </script>
</cheat>

<cheat desc="player speed">
    <parameter min="0x01" max="0x08" step="0x01" />
    <script state="on">
        <action>maincpu.md@6970 =         4eb80270</action>
        <action>maincpu.mq@0270 = 381a70004a446706</action>
        <action>maincpu.mq@0278 = 6a02444038003612</action>
        <action>maincpu.mq@0280 = 70004a4367066a02</action>
        <action>maincpu.mq@0288 = 444036004e750000</action>
        <!--
        0270 | 381a : move.w (A2)+,D4
        0272 | 70xx : moveq  #$xx,D0
        0274 | 4a44 : tst.w  D4
        0276 | 6706 : beq    $27e
        0278 | 6a02 : bpl    $27c
        027a | 4440 : neg.w  D0
        027c | 3800 : move.w D0,D4
        027e | 3612 : move.w (A2),D3
        0280 | 70xx : moveq  #$xx,D0
        0282 | 4a43 : tst.w  D3
        0284 | 6706 : beq    $28c
        0286 | 6a02 : bpl    $28a
        0288 | 4440 : neg.w  D0
        028a | 3600 : move.w D0,D3
        028c | 4e75 : rts
        -->
    </script>
    <script>
        <action>maincpu.mb@0273 = param</action>
        <action>maincpu.mb@0281 = param</action>
    </script>
    <script state="off">
        <action>maincpu.md@6970 =         381a3612</action>
        <action>maincpu.mq@0270 = 0000000000000000</action>
        <action>maincpu.mq@0278 = 0000000000000000</action>
        <action>maincpu.mq@0280 = 0000000000000000</action>
        <action>maincpu.mq@0288 = 0000000000000000</action>
    </script>
</cheat>

<cheat desc="bullet speed">
    <parameter>
        <item value="0x0c">01 (slow)</item>
        <item value="0x18">02       </item>
        <item value="0x24">03       </item>
        <item value="0x30">04       </item>
        <item value="0x3c">05 (fast)</item>
    </parameter>
    <script state="on">
        <action>maincpu.mw@7eae = 7000</action> <!-- red -->
        <action>maincpu.mw@8820 = 7000</action> <!-- orange -->
        <action>maincpu.mw@9488 = 0000</action> <!-- blue -->
    </script>
    <script state="change">
        <action>maincpu.mb@7eaf = param</action>
        <action>maincpu.mb@8821 = param</action>
        <action>maincpu.mb@9489 = param</action>
    </script>
    <script state="off">
        <action>maincpu.mw@7eae = 7018</action>
        <action>maincpu.mw@8820 = 7018</action>
        <action>maincpu.mw@9488 = 0018</action>
    </script>
</cheat>

<cheat desc="sound test mode">
    <script state="on">
        <action>maincpu.mw@144c =             0290</action>
        <action>maincpu.mq@0290 = 41ed1000302d1cda</action>
        <action>maincpu.mq@0298 = b06d1ce0674a0c00</action>
        <action>maincpu.mq@02a0 = 00fe660253500c00</action>
        <action>maincpu.mq@02a8 = 00fd660252500c00</action>
        <action>maincpu.mq@02b0 = 00ef662832100c41</action>
        <action>maincpu.mq@02b8 = 0011640e3f3c000f</action>
        <action>maincpu.mq@02c0 = 3f014eb900010648</action>
        <action>maincpu.mq@02c8 = 6010044100113f3c</action>
        <action>maincpu.mq@02d0 = 00003f014eb90001</action>
        <action>maincpu.mq@02d8 = 147e588f0c0000df</action>
        <action>maincpu.mq@02e0 = 66064eb9000105da</action>
        <action>maincpu.mq@02e8 = 4e75000000000000</action>
        <!--
        000290 | 41ed 1000      : lea     ($1000,A5),A0
        000294 | 302d 1cda      : move.w  ($1cda,A5),D0 // read input
        000298 | b06d 1ce0      : cmp.w   ($1ce0,A5),D0
        00029c | 674a           : beq     $2e8
        00029e | 0c00 00fe      : cmpi.b  #-$2,D0
        0002a2 | 6602           : bne     $2a6
        0002a4 | 5350           : subq.w  #1,(A0)       // decrease code
        0002a6 | 0c00 00fd      : cmpi.b  #-$3,D0
        0002aa | 6602           : bne     $2ae
        0002ac | 5250           : addq.w  #1,(A0)       // increase code
        0002ae | 0c00 00ef      : cmpi.b  #-$11,D0
        0002b2 | 6628           : bne     $2dc
        0002b4 | 3210           : move.w  (A0),D1       // play sound
        0002b6 | 0c41 0011      : cmpi.w  #$11,D1
        0002ba | 640e           : bcc     $2ca
        0002bc | 3f3c 000f      : move.w  #$f,-(A7)
        0002c0 | 3f01           : move.w  D1,-(A7)
        0002c2 | 4eb9 0001 0648 : jsr     $10648.l      // music
        0002c8 | 6010           : bra     $2da
        0002ca | 0441 0011      : subi.w  #$11,D1
        0002ce | 3f3c 0000      : move.w  #$0,-(A7)
        0002d2 | 3f01           : move.w  D1,-(A7)
        0002d4 | 4eb9 0001 147e : jsr     $1147e.l      // sfx
        0002da | 588f           : addq.l  #4,A7
        0002dc | 0c00 00df      : cmpi.b  #-$21,D0
        0002e0 | 6606           : bne     $2e8
        0002e2 | 4eb9 0001 05da : jsr     $105da.l      // stop sound
        0002e8 | 4e75           : rts
        -->
    </script>
    <script state="run">
        <output format="----- mad shark 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="button 2 : stop sound"                 line="14" align="center" />
        <output format="----------------------------"          line="15" align="center" />
        <output format="&lt;&lt; sound code %2.2X &gt;&gt;"    line="17" align="center">
            <argument>maincpu.pb@201001</argument>
        </output>
    </script>
    <script state="off">
        <action>maincpu.mw@144c =             a74a</action>
        <action>maincpu.mq@0290 = ffffffffffffffff</action>
        <action>maincpu.mq@0298 = ffffffffffffffff</action>
        <action>maincpu.mq@02a0 = ffffffffffffffff</action>
        <action>maincpu.mq@02a8 = ffffffffffffffff</action>
        <action>maincpu.mq@02b0 = ffffffffffffffff</action>
        <action>maincpu.mq@02b8 = ffffffffffffffff</action>
        <action>maincpu.mq@02c0 = ffffffffffffffff</action>
        <action>maincpu.mq@02c8 = ffffffffffffffff</action>
        <action>maincpu.mq@02d0 = ffffffffffffffff</action>
        <action>maincpu.mq@02d8 = ffffffffffffffff</action>
        <action>maincpu.mq@02e0 = ffffffffffffffff</action>
        <action>maincpu.mq@02e8 = ffffffffffffffff</action>
    </script>
</cheat>

<cheat desc="skip ram check">
    <script state="on">
        <action>maincpu.mw@035c = 035e</action> <!-- skip ram check -->
        <action>maincpu.mb@0501 =   02</action> <!-- skip ram check result screen -->
    </script>
    <script state="off">
        <action>maincpu.mw@035c = 056a</action>
        <action>maincpu.mb@501 =    09</action>
    </script>
</cheat>
jman
Posts: 843
Joined: Tue Dec 01, 2020 1:24 pm

[madshark] Mad Shark (update)

Post by jman »

Code: Select all

<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.mq@06974 = 4eb90008e5e04e71</action>
        <action>maincpu.mq@8e5e0 = 303c00004a436706</action>
        <action>maincpu.mq@8e5e8 = 6a02444036003143</action>
        <action>maincpu.mq@8e5f0 = 0060303c00004a44</action>
        <action>maincpu.mq@8e5f8 = 67066a0244403800</action>
        <action>maincpu.mq@8e600 = 3144005e4e750000</action>
        <!--
        8e5e0 | 303c xxxx : move.w #$xx,D0     // x position
        8e5e4 | 4a43      : tst.w  D3
        8e5e6 | 6706      : beq    $8e5ee
        8e5e8 | 6a02      : bpl    $8e5ec
        8e5ea | 4440      : neg.w  D0
        8e5ec | 3600      : move.w D0,D3
        8e5ee | 3143 0060 : move.w D3,($60,A0)
        8e5f2 | 303c xxxx : move.w #$xx,D0     // y position
        8e5f6 | 4a44      : tst.w  D4
        8e5f8 | 6706      : beq    $8e600
        8e5fa | 6a02      : bpl    $8e5fe
        8e5fc | 4440      : neg.w  D0
        8e5fe | 3800      : move.w D0,D4
        8e600 | 3144 005e : move.w D4,($5e,A0)
        8e604 | 4e75      : rts
        -->
    </script>
    <script state="change">
        <action>maincpu.mw@8e5e2 = param</action>
        <action>maincpu.mw@8e5f4 = param</action>
    </script>
    <script state="off">
        <action>maincpu.mq@06974 = 314300603144005e</action>
        <action>maincpu.mq@8e5e0 = 0000000000000000</action>
        <action>maincpu.mq@8e5e8 = 0000000000000000</action>
        <action>maincpu.mq@8e5f0 = 0000000000000000</action>
        <action>maincpu.mq@8e5f8 = 0000000000000000</action>
        <action>maincpu.mq@8e600 = 0000000000000000</action>
    </script>
</cheat>
"player speed" : rewrite routine. reallocate address. change parameter from value to item.

Code: Select all

<cheat desc="max bullets up">
    <script state="on">
        <action>maincpu.mb@86d1 = 08</action> <!-- orange -->
        <action>maincpu.mb@8e8f = 08</action> <!-- red -->
        <action>maincpu.mb@9383 = 08</action> <!-- blue -->
    </script>
    <script state="off">
        <action>maincpu.mb@86d1 = 03</action>
        <action>maincpu.mb@8e8f = 03</action>
        <action>maincpu.mb@9383 = 03</action>
    </script>
</cheat>
"max bullets up" : add new.

Code: Select all

<cheat desc="short hit mark - main shot">
    <script state="on">
        <action>maincpu.mb@8857 = 00</action> <!-- orange -->
        <action>maincpu.mb@8fe7 = 00</action> <!-- red -->
        <action>maincpu.mb@94a5 = 00</action> <!-- blue -->
    </script>
    <script state="off">
        <action>maincpu.mb@8857 = 0x06</action>
        <action>maincpu.mb@8fe7 = 0x0b</action>
        <action>maincpu.mb@94a5 = 0x0b</action>
    </script>
</cheat>
"shor hit mark" : add new.

Code: Select all

<cheat desc="sound test mode">
    <!-- playing code 0x25 or later cause the game reset -->
    <comment>reset the game (F3) to enter sound test mode</comment>
    <script state="on">
        <action>maincpu.md@0144a =         0008e610</action>
        <action>maincpu.mq@8e610 = 41ed10003e2d1cda</action>
        <action>maincpu.mq@8e618 = be6d1ce0675e0c07</action>
        <action>maincpu.mq@8e620 = 00fe660253100c07</action>
        <action>maincpu.mq@8e628 = 00fd660252100c07</action>
        <action>maincpu.mq@8e630 = 00f7660404100010</action>
        <action>maincpu.mq@8e638 = 0c0700fb66040610</action>
        <action>maincpu.mq@8e640 = 00100c0700ef6628</action>
        <action>maincpu.mq@8e648 = 424010100c400010</action>
        <action>maincpu.mq@8e650 = 6c0e3f3c000f3f00</action>
        <action>maincpu.mq@8e658 = 4eb900010648600e</action>
        <action>maincpu.mq@8e660 = 0400001042673f00</action>
        <action>maincpu.mq@8e668 = 4eb90001147e588f</action>
        <action>maincpu.mq@8e670 = 0c0700df66064eb9</action>
        <action>maincpu.mq@8e678 = 000105da4e750000</action>
        <!--
        8e610 | 41ed 1000      : lea    ($1000,A5),A0 // $201000 : sound code address
        8e614 | 3e2d 1cda      : move.w ($1cda,A5),D7 // read input
        8e618 | be6d 1ce0      : cmp.w  ($1ce0,A5),D7
        8e61c | 675e           : beq    $8e67c
        8e61e | 0c07 00fe      : cmpi.b #-$2,D7
        8e622 | 6602           : bne    $8e626
        8e624 | 5310           : subq.b #1,(A0)       // decrease code -01
        8e626 | 0c07 00fd      : cmpi.b #-$3,D7
        8e62a | 6602           : bne    $8e62e
        8e62c | 5210           : addq.b #1,(A0)       // increase code +01
        8e62e | 0c07 00f7      : cmpi.b #-$9,D7
        8e632 | 6604           : bne    $8e638
        8e634 | 0410 0010      : subi.b #$10,(A0)     // decrease code -10
        8e638 | 0c07 00fb      : cmpi.b #-$5,D7
        8e63c | 6604           : bne    $8e642
        8e63e | 0610 0010      : addi.b #$10,(A0)     // increase code +10
        8e642 | 0c07 00ef      : cmpi.b #-$11,D7
        8e646 | 6628           : bne    $8e670
        8e648 | 4240           : clr.w  D0            // play sound
        8e64a | 1010           : move.b (A0),D0
        8e64c | 0c40 0010      : cmpi.w #$10,D0
        8e650 | 6c0e           : bge    $8e660
        8e652 | 3f3c 000f      : move.w #$f,-(A7)     // music
        8e656 | 3f00           : move.w D0,-(A7)
        8e658 | 4eb9 0001 0648 : jsr    $10648.l
        8e65e | 600e           : bra    $8e66e
        8e660 | 0400 0010      : subi.b #$10,D0       // sfx
        8e664 | 4267           : clr.w  -(A7)
        8e666 | 3f00           : move.w D0,-(A7)
        8e668 | 4eb9 0001 147e : jsr    $1147e.l
        8e66e | 588f           : addq.l #4,A7
        8e670 | 0c07 00df      : cmpi.b #-$21,D7
        8e674 | 6606           : bne    $8e67c
        8e676 | 4eb9 0001 05da : jsr    $105da.l      // stop sound
        8e67c | 4e75           : rts
        -->
    </script>
    <script state="run">
        <output format="----- mad shark 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="&lt;&lt; sound code %2.2X &gt;&gt;"    line="19" align="center"  >
            <argument>maincpu.pb@201000</argument>
        </output>
    </script>
    <script state="off">
        <action>maincpu.md@0144a =         0000a47a</action>
        <action>maincpu.mq@8e610 = 0000000000000000</action>
        <action>maincpu.mq@8e618 = 0000000000000000</action>
        <action>maincpu.mq@8e620 = 0000000000000000</action>
        <action>maincpu.mq@8e628 = 0000000000000000</action>
        <action>maincpu.mq@8e630 = 0000000000000000</action>
        <action>maincpu.mq@8e638 = 0000000000000000</action>
        <action>maincpu.mq@8e640 = 0000000000000000</action>
        <action>maincpu.mq@8e648 = 0000000000000000</action>
        <action>maincpu.mq@8e650 = 0000000000000000</action>
        <action>maincpu.mq@8e658 = 0000000000000000</action>
        <action>maincpu.mq@8e660 = 0000000000000000</action>
        <action>maincpu.mq@8e668 = 0000000000000000</action>
        <action>maincpu.mq@8e670 = 0000000000000000</action>
        <action>maincpu.mq@8e678 = 0000000000000000</action>
    </script>
</cheat>
"sound test mode" : rewrite routine. reallocate address. add up/down key (code ±10).

madsharkbl was added in 0.249. You can convert the codes easily because madsharkbl has the same address and code as madshark.

Code: Select all

<cheat desc="no hit">
    <script state="on">
        <action>maincpu.mb@a11c = 60</action> <!-- enemy -->
        <action>maincpu.mb@a1cc = 60</action> <!-- bullet -->
    </script>
    <script state="off">
        <action>maincpu.mb@a11c = 62</action>
        <action>maincpu.mb@a1cc = 62</action>
    </script>
</cheat>

<cheat desc="auto fire">
    <script state="on">
        <action>maincpu.mw@68de = 4e71</action>
        <action>maincpu.mw@68f0 = 4e71</action>
    </script>
    <script state="off">
        <action>maincpu.mw@68de = 6a0c</action>
        <action>maincpu.mw@68f0 = 6a1a</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.mq@06974 = 4eb90008e5e04e71</action>
        <action>maincpu.mq@8e5e0 = 303c00004a436706</action>
        <action>maincpu.mq@8e5e8 = 6a02444036003143</action>
        <action>maincpu.mq@8e5f0 = 0060303c00004a44</action>
        <action>maincpu.mq@8e5f8 = 67066a0244403800</action>
        <action>maincpu.mq@8e600 = 3144005e4e750000</action>
        <!--
        8e5e0 | 303c xxxx : move.w #$xx,D0     // x position
        8e5e4 | 4a43      : tst.w  D3
        8e5e6 | 6706      : beq    $8e5ee
        8e5e8 | 6a02      : bpl    $8e5ec
        8e5ea | 4440      : neg.w  D0
        8e5ec | 3600      : move.w D0,D3
        8e5ee | 3143 0060 : move.w D3,($60,A0)
        8e5f2 | 303c xxxx : move.w #$xx,D0     // y position
        8e5f6 | 4a44      : tst.w  D4
        8e5f8 | 6706      : beq    $8e600
        8e5fa | 6a02      : bpl    $8e5fe
        8e5fc | 4440      : neg.w  D0
        8e5fe | 3800      : move.w D0,D4
        8e600 | 3144 005e : move.w D4,($5e,A0)
        8e604 | 4e75      : rts
        -->
    </script>
    <script state="change">
        <action>maincpu.mw@8e5e2 = param</action>
        <action>maincpu.mw@8e5f4 = param</action>
    </script>
    <script state="off">
        <action>maincpu.mq@06974 = 314300603144005e</action>
        <action>maincpu.mq@8e5e0 = 0000000000000000</action>
        <action>maincpu.mq@8e5e8 = 0000000000000000</action>
        <action>maincpu.mq@8e5f0 = 0000000000000000</action>
        <action>maincpu.mq@8e5f8 = 0000000000000000</action>
        <action>maincpu.mq@8e600 = 0000000000000000</action>
    </script>
</cheat>

<cheat desc="bullet speed">
    <parameter>
        <item value="0x04">01 (slow)</item>
        <item value="0x08">02       </item>
        <item value="0x0c">03       </item>
        <item value="0x10">04       </item>
        <item value="0x14">05 (fast)</item>
    </parameter>
    <script state="on">
        <action>maincpu.mw@7eae = 7000</action> <!-- red -->
        <action>maincpu.mw@8820 = 7000</action> <!-- orange -->
        <action>maincpu.mw@9488 = 0000</action> <!-- blue -->
    </script>
    <script state="change">
        <action>maincpu.mb@7eaf = param</action>
        <action>maincpu.mb@8821 = param</action>
        <action>maincpu.mb@9489 = param</action>
    </script>
    <script state="off">
        <action>maincpu.mw@7eae = 4880</action>
        <action>maincpu.mw@8820 = 4880</action>
        <action>maincpu.mw@9488 = 000f</action>
    </script>
</cheat>

<cheat desc="max bullets up">
    <script state="on">
        <action>maincpu.mb@86d1 = 08</action> <!-- orange -->
        <action>maincpu.mb@8e8f = 08</action> <!-- red -->
        <action>maincpu.mb@9383 = 08</action> <!-- blue -->
    </script>
    <script state="off">
        <action>maincpu.mb@86d1 = 03</action>
        <action>maincpu.mb@8e8f = 03</action>
        <action>maincpu.mb@9383 = 03</action>
    </script>
</cheat>

<cheat desc="short hit mark - main shot">
    <script state="on">
        <action>maincpu.mb@8857 = 00</action> <!-- orange -->
        <action>maincpu.mb@8fe7 = 00</action> <!-- red -->
        <action>maincpu.mb@94a5 = 00</action> <!-- blue -->
    </script>
    <script state="off">
        <action>maincpu.mb@8857 = 0x06</action>
        <action>maincpu.mb@8fe7 = 0x0b</action>
        <action>maincpu.mb@94a5 = 0x0b</action>
    </script>
</cheat>

<cheat desc="sound test mode">
    <!-- music does not be played and stop button is no response -->
    <!-- playing code 0x25 or later cause the game reset -->
    <comment>reset the game (F3) to enter sound test mode</comment>
    <script state="on">
        <action>maincpu.md@0144a =         0008e610</action>
        <action>maincpu.mq@8e610 = 41ed10003e2d1cda</action>
        <action>maincpu.mq@8e618 = be6d1ce0675e0c07</action>
        <action>maincpu.mq@8e620 = 00fe660253100c07</action>
        <action>maincpu.mq@8e628 = 00fd660252100c07</action>
        <action>maincpu.mq@8e630 = 00f7660404100010</action>
        <action>maincpu.mq@8e638 = 0c0700fb66040610</action>
        <action>maincpu.mq@8e640 = 00100c0700ef6628</action>
        <action>maincpu.mq@8e648 = 424010100c400010</action>
        <action>maincpu.mq@8e650 = 6c0e3f3c000f3f00</action>
        <action>maincpu.mq@8e658 = 4eb900010648600e</action>
        <action>maincpu.mq@8e660 = 0400001042673f00</action>
        <action>maincpu.mq@8e668 = 4eb90001147e588f</action>
        <action>maincpu.mq@8e670 = 0c0700df66064eb9</action>
        <action>maincpu.mq@8e678 = 000105da4e750000</action>
        <!--
        8e610 | 41ed 1000      : lea    ($1000,A5),A0 // $201000 : sound code address
        8e614 | 3e2d 1cda      : move.w ($1cda,A5),D7 // read input
        8e618 | be6d 1ce0      : cmp.w  ($1ce0,A5),D7
        8e61c | 675e           : beq    $8e67c
        8e61e | 0c07 00fe      : cmpi.b #-$2,D7
        8e622 | 6602           : bne    $8e626
        8e624 | 5310           : subq.b #1,(A0)       // decrease code -01
        8e626 | 0c07 00fd      : cmpi.b #-$3,D7
        8e62a | 6602           : bne    $8e62e
        8e62c | 5210           : addq.b #1,(A0)       // increase code +01
        8e62e | 0c07 00f7      : cmpi.b #-$9,D7
        8e632 | 6604           : bne    $8e638
        8e634 | 0410 0010      : subi.b #$10,(A0)     // decrease code -10
        8e638 | 0c07 00fb      : cmpi.b #-$5,D7
        8e63c | 6604           : bne    $8e642
        8e63e | 0610 0010      : addi.b #$10,(A0)     // increase code +10
        8e642 | 0c07 00ef      : cmpi.b #-$11,D7
        8e646 | 6628           : bne    $8e670
        8e648 | 4240           : clr.w  D0            // play sound
        8e64a | 1010           : move.b (A0),D0
        8e64c | 0c40 0010      : cmpi.w #$10,D0
        8e650 | 6c0e           : bge    $8e660
        8e652 | 3f3c 000f      : move.w #$f,-(A7)     // music
        8e656 | 3f00           : move.w D0,-(A7)
        8e658 | 4eb9 0001 0648 : jsr    $10648.l
        8e65e | 600e           : bra    $8e66e
        8e660 | 0400 0010      : subi.b #$10,D0       // sfx
        8e664 | 4267           : clr.w  -(A7)
        8e666 | 3f00           : move.w D0,-(A7)
        8e668 | 4eb9 0001 147e : jsr    $1147e.l
        8e66e | 588f           : addq.l #4,A7
        8e670 | 0c07 00df      : cmpi.b #-$21,D7
        8e674 | 6606           : bne    $8e67c
        8e676 | 4eb9 0001 05da : jsr    $105da.l      // stop sound
        8e67c | 4e75           : rts
        -->
    </script>
    <script state="run">
        <output format="----- mad shark 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="&lt;&lt; sound code %2.2X &gt;&gt;"    line="19" align="center"  >
            <argument>maincpu.pb@201000</argument>
        </output>
    </script>
    <script state="off">
        <action>maincpu.md@0144a =         0000a47a</action>
        <action>maincpu.mq@8e610 = 0000000000000000</action>
        <action>maincpu.mq@8e618 = 0000000000000000</action>
        <action>maincpu.mq@8e620 = 0000000000000000</action>
        <action>maincpu.mq@8e628 = 0000000000000000</action>
        <action>maincpu.mq@8e630 = 0000000000000000</action>
        <action>maincpu.mq@8e638 = 0000000000000000</action>
        <action>maincpu.mq@8e640 = 0000000000000000</action>
        <action>maincpu.mq@8e648 = 0000000000000000</action>
        <action>maincpu.mq@8e650 = 0000000000000000</action>
        <action>maincpu.mq@8e658 = 0000000000000000</action>
        <action>maincpu.mq@8e660 = 0000000000000000</action>
        <action>maincpu.mq@8e668 = 0000000000000000</action>
        <action>maincpu.mq@8e670 = 0000000000000000</action>
        <action>maincpu.mq@8e678 = 0000000000000000</action>
    </script>
</cheat>

<cheat desc="skip ram check">
    <script state="on">
        <action>maincpu.mw@035c = 035e</action> <!-- skip ram check -->
        <action>maincpu.mb@0501 =   02</action> <!-- skip ram check result -->
    </script>
    <script state="off">
        <action>maincpu.mw@035c = 056a</action>
        <action>maincpu.mb@501 =    09</action>
    </script>
</cheat>
The only difference is that madsharkbl has incomplete sound emulation. So you can't listen any musics and stop sound by stop button in "sound test mode".
jman
Posts: 843
Joined: Tue Dec 01, 2020 1:24 pm

[madshark]+ Mad Shark

Post by jman »

madshark.xml

Code: Select all

<!-- Mad Shark -->
<mamecheat version="1">

    <cheat desc="no hit">
        <script state="on">
            <action>maincpu.mb@A11C = 60</action> <!-- enemy -->
            <action>maincpu.mb@A1CC = 60</action> <!-- bullet -->
        </script>
        <script state="off">
            <action>maincpu.mb@A11C = 62</action>
            <action>maincpu.mb@A1CC = 62</action>
        </script>
    </cheat>

    <cheat desc="auto fire">
        <script state="on">
            <action>maincpu.mw@68DE = 4E71</action>
            <action>maincpu.mw@68F0 = 4E71</action>
        </script>
        <script state="off">
            <action>maincpu.mw@68DE = 6A0C</action>
            <action>maincpu.mw@68F0 = 6A1A</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.mq@06974 = 4EB90008E5E04E71</action>
            <action>maincpu.mq@8E5E0 = 303C00004A436706</action>
            <action>maincpu.mq@8E5E8 = 6A02444036003143</action>
            <action>maincpu.mq@8E5F0 = 0060303C00004A44</action>
            <action>maincpu.mq@8E5F8 = 67066A0244403800</action>
            <action>maincpu.mq@8E600 = 3144005E4E750000</action>
            <!--
            8E5E0 | 303C xxxx : move.w  #$xx, D0     // x position
            8E5E4 | 4A43      : tst.w   D3
            8E5E6 | 6706      : beq     $8e5ee
            8E5E8 | 6A02      : bpl     $8e5ec
            8E5EA | 4440      : neg.w   D0
            8E5EC | 3600      : move.w  D0, D3
            8E5EE | 3143 0060 : move.w  D3, ($60,A0)
            8E5F2 | 303C xxxx : move.w  #$xx D0      // y position
            8E5F6 | 4A44      : tst.w   D4
            8E5F8 | 6706      : beq     $8e600
            8E5FA | 6A02      : bpl     $8e5fe
            8E5FC | 4440      : neg.w   D0
            8E5FE | 3800      : move.w  D0, D4
            8E600 | 3144 005E : move.w  D4, ($5e,A0)
            8E604 | 4E75      : rts
            -->
        </script>
        <script state="change">
            <action>maincpu.mw@8E5E2 = param</action>
            <action>maincpu.mw@8E5F4 = param</action>
        </script>
        <script state="off">
            <action>maincpu.mq@06974 = 314300603144005E</action>
            <action>maincpu.mq@8E5E0 = 0000000000000000</action>
            <action>maincpu.mq@8E5E8 = 0000000000000000</action>
            <action>maincpu.mq@8E5F0 = 0000000000000000</action>
            <action>maincpu.mq@8E5F8 = 0000000000000000</action>
            <action>maincpu.mq@8E600 = 0000000000000000</action>
        </script>
    </cheat>

    <cheat desc="bullet speed">
        <parameter>
            <item value="0x04">01 (slow)</item>
            <item value="0x08">02       </item>
            <item value="0x0c">03       </item>
            <item value="0x10">04       </item>
            <item value="0x14">05 (fast)</item>
        </parameter>
        <script state="on">
            <action>maincpu.mw@7EAE = 7000</action> <!-- red -->
            <action>maincpu.mw@8820 = 7000</action> <!-- orange -->
            <action>maincpu.mw@9488 = 0000</action> <!-- blue -->
        </script>
        <script state="change">
            <action>maincpu.mb@7EAF = param</action>
            <action>maincpu.mb@8821 = param</action>
            <action>maincpu.mb@9489 = param</action>
        </script>
        <script state="off">
            <action>maincpu.mw@7EAE = 4880</action>
            <action>maincpu.mw@8820 = 4880</action>
            <action>maincpu.mw@9488 = 000F</action>
        </script>
    </cheat>

    <cheat desc="max bullets up">
        <script state="on">
            <action>maincpu.mb@86D1 = 08</action> <!-- orange -->
            <action>maincpu.mb@8E8F = 08</action> <!-- red -->
            <action>maincpu.mb@9383 = 08</action> <!-- blue -->
        </script>
        <script state="off">
            <action>maincpu.mb@86D1 = 03</action>
            <action>maincpu.mb@8E8F = 03</action>
            <action>maincpu.mb@9383 = 03</action>
        </script>
    </cheat>

    <cheat desc="short hit mark - main shot">
        <script state="on">
            <action>maincpu.mb@8857 = 00</action> <!-- orange -->
            <action>maincpu.mb@8FE7 = 00</action> <!-- red -->
            <action>maincpu.mb@94A5 = 00</action> <!-- blue -->
        </script>
        <script state="off">
            <action>maincpu.mb@8857 = 06</action>
            <action>maincpu.mb@8FE7 =  B</action>
            <action>maincpu.mb@94A5 =  B</action>
        </script>
    </cheat>

    <cheat desc="sound test mode">
        <!-- playing code 0x25 or later cause the game reset -->
        <comment>reset the game (F3) to enter sound test mode</comment>
        <script state="on">
            <action>maincpu.md@0144A = 0008E610        </action>
            <action>maincpu.mq@8E610 = 41ED10003E2D1CDA</action>
            <action>maincpu.mq@8E618 = BE6D1CE0675E0C07</action>
            <action>maincpu.mq@8E620 = 00FE660253100C07</action>
            <action>maincpu.mq@8E628 = 00FD660252100C07</action>
            <action>maincpu.mq@8E630 = 00F7660404100010</action>
            <action>maincpu.mq@8E638 = 0C0700FB66040610</action>
            <action>maincpu.mq@8E640 = 00100C0700EF6628</action>
            <action>maincpu.mq@8E648 = 424010100C400010</action>
            <action>maincpu.mq@8E650 = 6C0E3F3C000F3F00</action>
            <action>maincpu.mq@8E658 = 4EB900010648600E</action>
            <action>maincpu.mq@8E660 = 0400001042673F00</action>
            <action>maincpu.mq@8E668 = 4EB90001147E588F</action>
            <action>maincpu.mq@8E670 = 0C0700DF66064EB9</action>
            <action>maincpu.mq@8E678 = 000105DA4E750000</action>
            <!--
            8E610 | 41ED 1000      : lea     ($1000,A5), A0 // sound code address ($201000)
            8E614 | 3E2D 1CDA      : move.w  ($1cda,A5), D7 // read input ($201cda)
            8E618 | BE6D 1CE0      : cmp.w   ($1ce0,A5), D7
            8E61C | 675E           : beq     $8e67c
            8E61E | 0C07 00FE      : cmpi.b  #-$2, D7
            8E622 | 6602           : bne     $8e626
            8E624 | 5310           : subq.b  #1, (A0)       // decrease code -01
            8E626 | 0C07 00FD      : cmpi.b  #-$3, D7
            8E62A | 6602           : bne     $8e62e
            8E62C | 5210           : addq.b  #1, (A0)       // increase code +01
            8E62E | 0C07 00F7      : cmpi.b  #-$9, D7
            8E632 | 6604           : bne     $8e638
            8E634 | 0410 0010      : subi.b  #$10, (A0)     // decrease code -10
            8E638 | 0C07 00FB      : cmpi.b  #-$5, D7
            8E63C | 6604           : bne     $8e642
            8E63E | 0610 0010      : addi.b  #$10, (A0)     // increase code +10
            8E642 | 0C07 00EF      : cmpi.b  #-$11, D7
            8E646 | 6628           : bne     $8e670
            8E648 | 4240           : clr.w   D0             // play sound
            8E64A | 1010           : move.b  (A0), D0
            8E64C | 0C40 0010      : cmpi.w  #$10, D0
            8E650 | 6C0E           : bge     $8e660
            8E652 | 3F3C 000F      : move.w  #$f, -(A7)     // music
            8E656 | 3F00           : move.w  D0, -(A7)
            8E658 | 4EB9 0001 0648 : jsr     $10648.l
            8E65E | 600E           : bra     $8e66e
            8E660 | 0400 0010      : subi.b  #$10, D0       // sfx
            8E664 | 4267           : clr.w   -(A7)
            8E666 | 3F00           : move.w  D0, -(A7)
            8E668 | 4EB9 0001 147E : jsr     $1147e.l
            8E66E | 588F           : addq.l  #4, A7
            8E670 | 0C07 00DF      : cmpi.b  #-$21, D7
            8E674 | 6606           : bne     $8e67c
            8E676 | 4EB9 0001 05DA : jsr     $105da.l       // stop sound
            8E67C | 4E75           : rts
            -->
        </script>
        <script state="run">
            <output format="----- mad shark 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="&lt;&lt; sound code %02X &gt;&gt;"     line="19" align="center"  >
                <argument>maincpu.pb@201000</argument>
            </output>
        </script>
        <script state="off">
            <action>maincpu.md@0144A = 0000A47A        </action>
            <action>maincpu.mq@8E610 = 0000000000000000</action>
            <action>maincpu.mq@8E618 = 0000000000000000</action>
            <action>maincpu.mq@8E620 = 0000000000000000</action>
            <action>maincpu.mq@8E628 = 0000000000000000</action>
            <action>maincpu.mq@8E630 = 0000000000000000</action>
            <action>maincpu.mq@8E638 = 0000000000000000</action>
            <action>maincpu.mq@8E640 = 0000000000000000</action>
            <action>maincpu.mq@8E648 = 0000000000000000</action>
            <action>maincpu.mq@8E650 = 0000000000000000</action>
            <action>maincpu.mq@8E658 = 0000000000000000</action>
            <action>maincpu.mq@8E660 = 0000000000000000</action>
            <action>maincpu.mq@8E668 = 0000000000000000</action>
            <action>maincpu.mq@8E670 = 0000000000000000</action>
            <action>maincpu.mq@8E678 = 0000000000000000</action>
        </script>
    </cheat>

    <cheat desc="skip ram check">
        <script state="on">
            <action>maincpu.mw@035C = 035E</action> <!-- ram check -->
            <action>maincpu.mw@0500 = 0002</action> <!-- result -->
        </script>
        <script state="off">
            <action>maincpu.mw@035C = 056A</action>
            <action>maincpu.mw@0500 = 0009</action>
        </script>
    </cheat>

</mamecheat>
madsharkbl.xml

Code: Select all

<!-- Mad Shark (bootleg) -->
<mamecheat version="1">

    <cheat desc="no hit">
        <script state="on">
            <action>maincpu.mb@A11C = 60</action> <!-- enemy -->
            <action>maincpu.mb@A1CC = 60</action> <!-- bullet -->
        </script>
        <script state="off">
            <action>maincpu.mb@A11C = 62</action>
            <action>maincpu.mb@A1CC = 62</action>
        </script>
    </cheat>

    <cheat desc="auto fire">
        <script state="on">
            <action>maincpu.mw@68DE = 4E71</action>
            <action>maincpu.mw@68F0 = 4E71</action>
        </script>
        <script state="off">
            <action>maincpu.mw@68DE = 6A0C</action>
            <action>maincpu.mw@68F0 = 6A1A</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.mq@06974 = 4EB90008E5E04E71</action>
            <action>maincpu.mq@8E5E0 = 303C00004A436706</action>
            <action>maincpu.mq@8E5E8 = 6A02444036003143</action>
            <action>maincpu.mq@8E5F0 = 0060303C00004A44</action>
            <action>maincpu.mq@8E5F8 = 67066A0244403800</action>
            <action>maincpu.mq@8E600 = 3144005E4E750000</action>
            <!--
            8E5E0 | 303C xxxx : move.w  #$xx, D0     // x position
            8E5E4 | 4A43      : tst.w   D3
            8E5E6 | 6706      : beq     $8e5ee
            8E5E8 | 6A02      : bpl     $8e5ec
            8E5EA | 4440      : neg.w   D0
            8E5EC | 3600      : move.w  D0, D3
            8E5EE | 3143 0060 : move.w  D3, ($60,A0)
            8E5F2 | 303C xxxx : move.w  #$xx D0      // y position
            8E5F6 | 4A44      : tst.w   D4
            8E5F8 | 6706      : beq     $8e600
            8E5FA | 6A02      : bpl     $8e5fe
            8E5FC | 4440      : neg.w   D0
            8E5FE | 3800      : move.w  D0, D4
            8E600 | 3144 005E : move.w  D4, ($5e,A0)
            8E604 | 4E75      : rts
            -->
        </script>
        <script state="change">
            <action>maincpu.mw@8E5E2 = param</action>
            <action>maincpu.mw@8E5F4 = param</action>
        </script>
        <script state="off">
            <action>maincpu.mq@06974 = 314300603144005E</action>
            <action>maincpu.mq@8E5E0 = 0000000000000000</action>
            <action>maincpu.mq@8E5E8 = 0000000000000000</action>
            <action>maincpu.mq@8E5F0 = 0000000000000000</action>
            <action>maincpu.mq@8E5F8 = 0000000000000000</action>
            <action>maincpu.mq@8E600 = 0000000000000000</action>
        </script>
    </cheat>

    <cheat desc="bullet speed">
        <parameter>
            <item value="0x04">01 (slow)</item>
            <item value="0x08">02       </item>
            <item value="0x0c">03       </item>
            <item value="0x10">04       </item>
            <item value="0x14">05 (fast)</item>
        </parameter>
        <script state="on">
            <action>maincpu.mw@7EAE = 7000</action> <!-- red -->
            <action>maincpu.mw@8820 = 7000</action> <!-- orange -->
            <action>maincpu.mw@9488 = 0000</action> <!-- blue -->
        </script>
        <script state="change">
            <action>maincpu.mb@7EAF = param</action>
            <action>maincpu.mb@8821 = param</action>
            <action>maincpu.mb@9489 = param</action>
        </script>
        <script state="off">
            <action>maincpu.mw@7EAE = 4880</action>
            <action>maincpu.mw@8820 = 4880</action>
            <action>maincpu.mw@9488 = 000F</action>
        </script>
    </cheat>

    <cheat desc="max bullets up">
        <script state="on">
            <action>maincpu.mb@86D1 = 08</action> <!-- orange -->
            <action>maincpu.mb@8E8F = 08</action> <!-- red -->
            <action>maincpu.mb@9383 = 08</action> <!-- blue -->
        </script>
        <script state="off">
            <action>maincpu.mb@86D1 = 03</action>
            <action>maincpu.mb@8E8F = 03</action>
            <action>maincpu.mb@9383 = 03</action>
        </script>
    </cheat>

    <cheat desc="short hit mark - main shot">
        <script state="on">
            <action>maincpu.mb@8857 = 00</action> <!-- orange -->
            <action>maincpu.mb@8FE7 = 00</action> <!-- red -->
            <action>maincpu.mb@94A5 = 00</action> <!-- blue -->
        </script>
        <script state="off">
            <action>maincpu.mb@8857 = 06</action>
            <action>maincpu.mb@8FE7 =  B</action>
            <action>maincpu.mb@94A5 =  B</action>
        </script>
    </cheat>

    <cheat desc="sound test mode">
        <!-- playing code 0x25 or later cause the game reset -->
        <comment>reset the game (F3) to enter sound test mode</comment>
        <script state="on">
            <action>maincpu.md@0144A = 0008E610        </action>
            <action>maincpu.mq@8E610 = 41ED10003E2D1CDA</action>
            <action>maincpu.mq@8E618 = BE6D1CE0675E0C07</action>
            <action>maincpu.mq@8E620 = 00FE660253100C07</action>
            <action>maincpu.mq@8E628 = 00FD660252100C07</action>
            <action>maincpu.mq@8E630 = 00F7660404100010</action>
            <action>maincpu.mq@8E638 = 0C0700FB66040610</action>
            <action>maincpu.mq@8E640 = 00100C0700EF6628</action>
            <action>maincpu.mq@8E648 = 424010100C400010</action>
            <action>maincpu.mq@8E650 = 6C0E3F3C000F3F00</action>
            <action>maincpu.mq@8E658 = 4EB900010648600E</action>
            <action>maincpu.mq@8E660 = 0400001042673F00</action>
            <action>maincpu.mq@8E668 = 4EB90001147E588F</action>
            <action>maincpu.mq@8E670 = 0C0700DF66064EB9</action>
            <action>maincpu.mq@8E678 = 000105DA4E750000</action>
            <!--
            8E610 | 41ED 1000      : lea     ($1000,A5), A0 // sound code address ($201000)
            8E614 | 3E2D 1CDA      : move.w  ($1cda,A5), D7 // read input ($201cda)
            8E618 | BE6D 1CE0      : cmp.w   ($1ce0,A5), D7
            8E61C | 675E           : beq     $8e67c
            8E61E | 0C07 00FE      : cmpi.b  #-$2, D7
            8E622 | 6602           : bne     $8e626
            8E624 | 5310           : subq.b  #1, (A0)       // decrease code -01
            8E626 | 0C07 00FD      : cmpi.b  #-$3, D7
            8E62A | 6602           : bne     $8e62e
            8E62C | 5210           : addq.b  #1, (A0)       // increase code +01
            8E62E | 0C07 00F7      : cmpi.b  #-$9, D7
            8E632 | 6604           : bne     $8e638
            8E634 | 0410 0010      : subi.b  #$10, (A0)     // decrease code -10
            8E638 | 0C07 00FB      : cmpi.b  #-$5, D7
            8E63C | 6604           : bne     $8e642
            8E63E | 0610 0010      : addi.b  #$10, (A0)     // increase code +10
            8E642 | 0C07 00EF      : cmpi.b  #-$11, D7
            8E646 | 6628           : bne     $8e670
            8E648 | 4240           : clr.w   D0             // play sound
            8E64A | 1010           : move.b  (A0), D0
            8E64C | 0C40 0010      : cmpi.w  #$10, D0
            8E650 | 6C0E           : bge     $8e660
            8E652 | 3F3C 000F      : move.w  #$f, -(A7)     // music
            8E656 | 3F00           : move.w  D0, -(A7)
            8E658 | 4EB9 0001 0648 : jsr     $10648.l
            8E65E | 600E           : bra     $8e66e
            8E660 | 0400 0010      : subi.b  #$10, D0       // sfx
            8E664 | 4267           : clr.w   -(A7)
            8E666 | 3F00           : move.w  D0, -(A7)
            8E668 | 4EB9 0001 147E : jsr     $1147e.l
            8E66E | 588F           : addq.l  #4, A7
            8E670 | 0C07 00DF      : cmpi.b  #-$21, D7
            8E674 | 6606           : bne     $8e67c
            8E676 | 4EB9 0001 05DA : jsr     $105da.l       // stop sound
            8E67C | 4E75           : rts
            -->
        </script>
        <script state="run">
            <output format="----- mad shark 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="&lt;&lt; sound code %02X &gt;&gt;"     line="19" align="center"  >
                <argument>maincpu.pb@201000</argument>
            </output>
        </script>
        <script state="off">
            <action>maincpu.md@0144A = 0000A47A        </action>
            <action>maincpu.mq@8E610 = 0000000000000000</action>
            <action>maincpu.mq@8E618 = 0000000000000000</action>
            <action>maincpu.mq@8E620 = 0000000000000000</action>
            <action>maincpu.mq@8E628 = 0000000000000000</action>
            <action>maincpu.mq@8E630 = 0000000000000000</action>
            <action>maincpu.mq@8E638 = 0000000000000000</action>
            <action>maincpu.mq@8E640 = 0000000000000000</action>
            <action>maincpu.mq@8E648 = 0000000000000000</action>
            <action>maincpu.mq@8E650 = 0000000000000000</action>
            <action>maincpu.mq@8E658 = 0000000000000000</action>
            <action>maincpu.mq@8E660 = 0000000000000000</action>
            <action>maincpu.mq@8E668 = 0000000000000000</action>
            <action>maincpu.mq@8E670 = 0000000000000000</action>
            <action>maincpu.mq@8E678 = 0000000000000000</action>
        </script>
    </cheat>

    <cheat desc="skip ram check">
        <script state="on">
            <action>maincpu.mw@035C = 035E</action> <!-- ram check -->
            <action>maincpu.mw@0500 = 0002</action> <!-- result -->
        </script>
        <script state="off">
            <action>maincpu.mw@035C = 056A</action>
            <action>maincpu.mw@0500 = 0009</action>
        </script>
    </cheat>

</mamecheat>
Post Reply