[sstrangr]+ Space Stranger

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: 870
Joined: Tue Dec 01, 2020 1:24 pm
Been thanked: 1 time

[sstrangr]+ Space Stranger

Post by jman »

sstrangr.xml

Code: Select all

<!-- Space Stranger -->
<mamecheat version="1">

    <cheat desc="no hit">
        <script state="on">
            <action>maincpu.md@14a6 =         f11350cd</action>
            <action>maincpu.mq@1350 = fe135acaa7207b3a</action>
            <action>maincpu.mq@1358 = c9206132013ed827</action>
            <!--
            1350 | 3a 7b 20 : lda $207b
            1353 | a7       : ana a
            1354 | ca 5a 13 : jz  $135a
            1357 | fe 27    : cpi $27
            1359 | d8       : rc
            135a | 3e 01    : mvi a,$01
            135c | 32 61 20 : sta $2061
            135f | c9       : ret
            -->
        </script>
        <script state="off">
            <action>maincpu.md@14a6 =         f1206132</action>
            <action>maincpu.mq@1350 = ffffffffffffffff</action>
            <action>maincpu.mq@1358 = ffffffffffffffff</action>
        </script>
    </cheat>

    <cheat desc="auto fire">
        <script state="on">
            <action>maincpu.md@164d = 163fc3c8</action> <!-- rz / jmp $163f -->
        </script>
        <script state="off">
            <action>maincpu.md@164d = 202d32c0</action>
        </script>
    </cheat>

    <cheat desc="player speed">
        <parameter min="0x01" max="0x05" step="0x01" />
        <script state="on">
            <action>maincpu.mw@0353 =             1360</action>
            <action>maincpu.mq@1360 = cd47201b3af5003e</action>
            <action>maincpu.mq@1368 = c91362c23df10363</action>
            <!--
            1360 | 3e xx    : mvi  a,$xx
            1362 | f5       : push psw
            1363 | 3a 1b 20 : lda  $201b
            1366 | 47       : mov  b,a
            1367 | cd 63 03 : call $0363
            136a | f1       : pop  psw
            136b | 3d       : dcr  a
            136c | c2 62 13 : jnz  $1362
            136f | c9       : ret
            -->
        </script>
        <script state="change">
            <action>maincpu.mb@1361 = param</action>
        </script>
        <script state="off">
            <action>maincpu.mw@0353 =             0363</action>
            <action>maincpu.mq@1360 = ffffffffffffffff</action>
            <action>maincpu.mq@1368 = ffffffffffffffff</action>
        </script>
    </cheat>

    <cheat desc="bullet speed">
        <parameter>
            <item value="0x01">01 (slow)</item>
            <item value="0x02">02       </item>
            <item value="0x04">03       </item>
            <item value="0x06">04       </item>
            <item value="0x08">05 (fast)</item>
        </parameter>
        <script state="on">
            <action>maincpu.md@0416 = 8500003e</action> <!-- mvi a,$xx / nop -->
        </script>
        <script state="change">
            <action>maincpu.mb@0417 = param</action>
        </script>
        <script state="off">
            <action>maincpu.md@0416 = 85202c3a</action>
        </script>
    </cheat>

</mamecheat>
sstrangr2.xml

Code: Select all

<!-- Space Stranger 2 -->
<mamecheat version="1">

    <cheat desc="no hit">
        <script state="on">
            <action>maincpu.md@14a6 =         f11350cd</action>
            <action>maincpu.mq@1350 = fe135acaa7207b3a</action>
            <action>maincpu.mq@1358 = c9206132013ed827</action>
            <!--
            1350 | 3a 7b 20 : lda $207b
            1353 | a7       : ana a
            1354 | ca 5a 13 : jz  $135a
            1357 | fe 27    : cpi $27
            1359 | d8       : rc
            135a | 3e 01    : mvi a,$01
            135c | 32 61 20 : sta $2061
            135f | c9       : ret
            -->
        </script>
        <script state="off">
            <action>maincpu.md@14a6 =         f1206132</action>
            <action>maincpu.mq@1350 = ffffffffffffffff</action>
            <action>maincpu.mq@1358 = ffffffffffffffff</action>
        </script>
    </cheat>

    <cheat desc="auto fire">
        <script state="on">
            <action>maincpu.md@164d = 163fc3c8</action> <!-- rz / jmp $163f -->
        </script>
        <script state="off">
            <action>maincpu.md@164d = 202d32c0</action>
        </script>
    </cheat>

    <cheat desc="player speed">
        <parameter min="0x01" max="0x05" step="0x01" />
        <script state="on">
            <action>maincpu.mw@0353 =             1360</action>
            <action>maincpu.mq@1360 = cd47201b3af5003e</action>
            <action>maincpu.mq@1368 = c91362c23df10363</action>
            <!--
            1360 | 3e xx    : mvi  a,$xx
            1362 | f5       : push psw
            1363 | 3a 1b 20 : lda  $201b
            1366 | 47       : mov  b,a
            1367 | cd 63 03 : call $0363
            136a | f1       : pop  psw
            136b | 3d       : dcr  a
            136c | c2 62 13 : jnz  $1362
            136f | c9       : ret
            -->
        </script>
        <script state="change">
            <action>maincpu.mb@1361 = param</action>
        </script>
        <script state="off">
            <action>maincpu.mw@0353 =             0363</action>
            <action>maincpu.mq@1360 = ffffffffffffffff</action>
            <action>maincpu.mq@1368 = ffffffffffffffff</action>
        </script>
    </cheat>

    <cheat desc="bullet speed">
        <parameter>
            <item value="0x01">01 (slow)</item>
            <item value="0x02">02       </item>
            <item value="0x04">03       </item>
            <item value="0x06">04       </item>
            <item value="0x08">05 (fast)</item>
        </parameter>
        <script state="on">
            <action>maincpu.md@0416 = 8500003e</action> <!-- mvi a,$xx / nop -->
        </script>
        <script state="change">
            <action>maincpu.mb@0417 = param</action>
        </script>
        <script state="off">
            <action>maincpu.md@0416 = 85202c3a</action>
        </script>
    </cheat>

</mamecheat>
Post Reply