[smsj/kenseidj] Kenseiden

This forum is for posting cheats for any non-arcade game in M.A.M.E. ( aka the M.E.S.S. games ) including any softwarelist game. Requests will be fulfilled here....but please keep the requests to the requests forum.
Post Reply
jman
CheatFinder Sergeant
CheatFinder Sergeant
Posts: 161
Joined: Tue Dec 01, 2020 1:24 pm

[smsj/kenseidj] Kenseiden

Post by jman »

Code: Select all

<cheat desc="no hit (wip)">
    <script state="on">
        <action>slot:cart:rom.mb@535b = 18</action> <!-- objects -->
        <action>slot:cart:rom.mb@117f = c9</action> <!-- background -->
        <action>slot:cart:rom.mb@1166 = 18</action> <!-- lava -->
    </script>
    <script state="off">
        <action>slot:cart:rom.mb@535b = 30</action>
        <action>slot:cart:rom.mb@117f = c8</action>
        <action>slot:cart:rom.mb@1166 = 28</action>
    </script>
</cheat>

<cheat desc="auto fire (wip)">
    <script state="on">
        <action>slot:cart:rom.mb@1271 = 61</action> <!-- stand -->
        <action>slot:cart:rom.mb@149d = 61</action> <!-- crouch -->
        <action>slot:cart:rom.mb@15f7 = 61</action> <!-- jump -->
    </script>
    <script state="off">
        <action>slot:cart:rom.mb@1271 = 60</action>
        <action>slot:cart:rom.mb@149d = 60</action>
        <action>slot:cart:rom.mb@15f7 = 60</action>
    </script>
</cheat>

<cheat desc="attack speed up (wip)">
    <script state="on">
        <action>slot:cart:rom.mw@1337 = 0101</action> <!-- stand -->
        <action>slot:cart:rom.mw@14d7 = 0101</action> <!-- crouch -->
        <action>slot:cart:rom.mw@1663 = 0101</action> <!-- jump -->
    </script>
    <script state="off">
        <action>slot:cart:rom.mw@1337 = 0202</action>
        <action>slot:cart:rom.mw@14d7 = 0202</action>
        <action>slot:cart:rom.mw@1663 = 0202</action>
    </script>
</cheat>

<cheat desc="multiple jump (wip)">
    <script state="on">
        <action>slot:cart:rom.mw@10d8 =             7fa0</action>
        <action>slot:cart:rom.mq@7fa0 = 15eac31576c268cb</action>
        <!--
        7fa0 | cb 68    : bit 5,b
        7fa2 | c2 76 15 : jp  nz,$1576
        7fa5 | c3 ea 15 : jp  $15ea
        -->
    </script>
    <script state="off">
        <action>slot:cart:rom.mw@10d8 =             15ea</action>
        <action>slot:cart:rom.mq@7fa0 = ffffffffffffffff</action>
    </script>
</cheat>

<cheat desc="sound test mode (wip)">
    <comment>reset the game (F3) to enter sound test mode</comment>
    <script state="on">
        <action>slot:cart:rom.mw@010e =             7fb0</action>
        <action>slot:cart:rom.mq@7fb0 = 22d57fb311800021</action>
        <action>slot:cart:rom.mq@7fb8 = fec86fbddcdbc100</action>
        <action>slot:cart:rom.mq@7fc0 = 0120f7fe250120fb</action>
        <action>slot:cart:rom.mq@7fc8 = 04187c0320effe24</action>
        <action>slot:cart:rom.mq@7fd0 = c9de0332afc0dffe</action>
        <!--
        7fb0 | 21 00 80 : ld   hl,$8000   // initialize sound and input values
        7fb3 | 11 b3 7f : ld   de,$7fb3
        7fb6 | d5       : push de
        7fb7 | 22 00 c1 : ld   ($c100),hl
        7fba | db dc    : in   a,($dc)    // read input
        7fbc | bd       : cp   l
        7fbd | 6f       : ld   l,a
        7fbe | c8       : ret  z
        7fbf | fe fb    : cp   $fb
        7fc1 | 20 01    : jr   nz,$7fc4
        7fc3 | 25       : dec  h          // decrease code
        7fc4 | fe f7    : cp   $f7
        7fc6 | 20 01    : jr   nz,$7fc9
        7fc8 | 24       : inc  h          // increase code
        7fc9 | fe ef    : cp   $ef
        7fcb | 20 03    : jr   nz,$7fd0
        7fcd | 7c       : ld   a,h        // play sound
        7fce | 18 04    : jr   $7fd4
        7fd0 | fe df    : cp   $df
        7fd2 | c0       : ret  nz
        7fd3 | af       : xor  a          // stop sound
        7fd4 | 32 03 de : ld   ($de03),a  // send sound code
        7fd7 | c9       : ret
        -->
    </script>
    <script state="run">
        <output format="----- kenseiden 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@c101</argument>
        </output>
    </script>
    <script state="off">
        <action>slot:cart:rom.mw@010e =             0922</action>
        <action>slot:cart:rom.mq@7fb0 = ffffffffffffffff</action>
        <action>slot:cart:rom.mq@7fb8 = ffffffffffffffff</action>
        <action>slot:cart:rom.mq@7fc0 = ffffffffffffffff</action>
        <action>slot:cart:rom.mq@7fc8 = ffffffffffffffff</action>
        <action>slot:cart:rom.mq@7fd0 = ffffffffffffffff</action>
    </script>
</cheat>
Post Reply