[shettle] Alone Shettle Crew

This forum is for posting M.A.M.E. arcade cheats. Requests will be fulfilled here....but please keep the requests to the requests forum.
Post Reply
jman
Posts: 856
Joined: Tue Dec 01, 2020 1:24 pm

[shettle] Alone Shettle Crew

Post by jman »

shettle was added in 0.245. Basic RAM cheats are the following.

Code: Select all

<!-- Alone Shettle Crew -->
<mamecheat version="1">

    <cheat desc="Infinite Credits">
        <script state="run">
            <action>maincpu.pb@9002 = 63</action>
        </script>
    </cheat>

    <cheat desc="P1 Infinite Lives">
        <script state="run">
            <action>maincpu.pb@900A = 07</action>
        </script>
    </cheat>

    <cheat desc="P2 Infinite Lives">
        <script state="run">
            <action>maincpu.pb@900B = 07</action>
        </script>
    </cheat>

    <cheat desc="P1 Starting Level">
        <parameter min="0x01" max="0xff" step="0x01" />
        <script state="run">
            <action condition="maincpu.pb@9012 == 0">maincpu.pb@9012 = param - 1</action>
        </script>
    </cheat>

    <cheat desc="P2 Starting Level">
        <parameter min="0x01" max="0xff" step="0x01" />
        <script state="run">
            <action condition="maincpu.pb@9013 == 0">maincpu.pb@9013 = param - 1</action>
        </script>
    </cheat>

</cheat>
ROM codes are WIP.

Code: Select all

    <cheat desc="no hit (wip)">
        <script state="on">
            <action>maincpu.mb@0B48 = 4A</action>
        </script>
        <script state="off">
            <action>maincpu.mb@0B48 = 53</action>
        </script>
    </cheat>

    <cheat desc="player speed (wip)">
        <parameter>
            <item value="0x10">01 (slow)</item>
            <item value="0x08">02       </item>
            <item value="0x03">03       </item>
            <item value="0x02">04       </item>
            <item value="0x00">05 (fast)</item>
        </parameter>
        <script state="change">
            <action>maincpu.mb@0EED = param</action>
        </script>
        <script state="off">
            <action>maincpu.mb@0EED = 03</action>
        </script>
    </cheat>

    <cheat desc="enemy speed (wip)">
        <parameter>
            <item value="0x10">01 (slow)</item>
            <item value="0x08">02       </item>
            <item value="0x03">03       </item>
            <item value="0x02">04       </item>
            <item value="0x00">05 (fast)</item>
        </parameter>
        <script state="on">
            <action>maincpu.md@14A8 = 4700003E</action>
        </script>
        <script state="change">
            <action>maincpu.mb@14A9 = param</action>
        </script>
        <script state="off">
            <action>maincpu.mb@14A8 = 472984CD</action>
        </script>
    </cheat>

    <cheat desc="sound test mode (wip)">
        <comment>reset the game (F3) to enter sound test mode</comment>
        <script state="on">
            <action>maincpu.mw@016C = 5E70            </action>
            <action>maincpu.mq@5E70 = 02E6A1053A910021</action>
            <action>maincpu.mq@5E78 = 17E690073A4F0F0F</action>
            <action>maincpu.mq@5E80 = 2004FEEE2847B8B1</action>
            <action>maincpu.mq@5E88 = FE34012003FE3501</action>
            <action>maincpu.mq@5E90 = FE0618F03E042002</action>
            <action>maincpu.mq@5E98 = 787786103E052001</action>
            <action>maincpu.mq@5EA0 = FE06187E032010FE</action>
            <action>maincpu.mq@5EA8 = 960132FF3E052080</action>
            <action>maincpu.mq@5EB0 = 000000000000C118</action>
            <!--
            5E70 | 21 00 91 : ld   hl,$9100  // sound code address
            5E73 | 3A 05 A1 : ld   a,($A105) // read start button
            5E76 | E6 02    : and  $02
            5E78 | 0F       : rrca
            5E79 | 0F       : rrca
            5E7A | 4F       : ld   c,a
            5E7B | 3A 07 90 : ld   a,($9007) // read other inputs
            5E7E | E6 17    : and  $17
            5E80 | B1       : or   c
            5E81 | B8       : cp   b
            5E82 | 47       : ld   b,a
            5E83 | 28 EE    : jr   z,$5E73
            5E85 | FE 04    : cp   $04
            5E87 | 20 01    : jr   nz,$5E8A
            5E89 | 35       : dec  (hl)      // decrease code -01
            5E8A | FE 03    : cp   $03
            5E8C | 20 01    : jr   nz,$5E8F
            5E8E | 34       : inc  (hl)      // increase code +01
            5E8F | FE 02    : cp   $02
            5E91 | 20 04    : jr   nz,$5E97
            5E93 | 3E F0    : ld   a,$F0     // decrease code -10
            5E95 | 18 06    : jr   $5E9D
            5E97 | FE 01    : cp   $01
            5E99 | 20 05    : jr   nz,$5EA0
            5E9B | 3E 10    : ld   a,$10     // increase code +10
            5E9D | 86       : add  a,(hl)
            5E9E | 77       : ld   (hl),a
            5E9F | 78       : ld   a,b
            5EA0 | FE 10    : cp   $10
            5EA2 | 20 03    : jr   nz,$5EA7
            5EA4 | 7E       : ld   a,(hl)    // play sound
            5EA5 | 18 06    : jr   $5EAD
            5EA7 | FE 80    : cp   $80
            5EA9 | 20 05    : jr   nz,$5EB0
            5EAB | 3E FF    : ld   a,$FF     // stop sound
            5EAD | 32 01 96 : ld   ($9601),a // send sound code
            5EB0 | 18 C1    : jr   $5E73
            -->
            <action>audiocpu.mb@004A = CD</action> <!-- enable sound -->
        </script>
        <script state="run">
            <output format="----- alone shettle crew 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="P1 start : 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@9100</argument>
            </output>
        </script>
        <script state="off">
            <action> maincpu.mw@016C = 21A9            </action>
            <action> maincpu.mq@5E70 = 0000000000000000</action>
            <action> maincpu.mq@5E78 = 0000000000000000</action>
            <action> maincpu.mq@5E80 = 0000000000000000</action>
            <action> maincpu.mq@5E88 = 0000000000000000</action>
            <action> maincpu.mq@5E90 = 0000000000000000</action>
            <action> maincpu.mq@5E98 = 0000000000000000</action>
            <action> maincpu.mq@5EA0 = 0000000000000000</action>
            <action> maincpu.mq@5EA8 = 0000000000000000</action>
            <action> maincpu.mq@5EB0 = 0000000000000000</action>
            <action>audiocpu.mb@004A = C4              </action>
        </script>
    </cheat>
Post Reply