[kurikintj] Kuri Kinton

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: 829
Joined: Tue Dec 01, 2020 1:24 pm

[kurikintj] Kuri Kinton

Post by jman »

Code: Select all

<cheat desc="no hit">
    <script state="on">
        <action> audiocpu.mb@05a3  = af</action> <!-- punch/kick -->
        <action> audiocpu.mb@0601  = af</action> <!-- firearm -->
        <action>tc0090lvc.mb@c072  = 18</action> <!-- trap ($6072) -->
    </script>
    <script state="off">
        <action> audiocpu.mb@05a3  = 79</action>
        <action> audiocpu.mb@0601  = 79</action>
        <action>tc0090lvc.mb@c072  = 28</action>
    </script>
</cheat>

<cheat desc="auto fire">
    <script state="on">
        <action>tc0090lvc.mb@c1ab = 00</action> <!-- ($61ab) -->
    </script>
    <script state="off">
        <action>tc0090lvc.mb@c1ab = 10</action>
    </script>
</cheat>

<cheat desc="attack speed up">
    <script state="on">
        <action>tc0090lvc.md@cb59 =         285e30cd</action>
        <action>tc0090lvc.mq@5e30 = c8fffe1a1313471a</action>
        <action>tc0090lvc.mq@5e38 = ffc91b1b78f628b8</action>
        <!--
        5e30 | 1a       : ld  a,(de)
        5e31 | 47       : ld  b,a
        5e32 | 13       : inc de
        5e33 | 13       : inc de
        5e34 | 1a       : ld  a,(de)
        5e35 | fe ff    : cp  $ff
        5e37 | c8       : ret z
        5e38 | b8       : cp  b
        5e39 | 28 f6    : jr  z,$5e31
        5e3b | 78       : ld  a,b
        5e3c | 1b       : dec de
        5e3d | 1b       : dec de
        5e3e | c9       : ret
        -->
    </script>
    <script state="off">
        <action>tc0090lvc.md@cb59 =         28fffe1a</action>
        <action>tc0090lvc.mq@5e30 = ffffffffffffffff</action>
        <action>tc0090lvc.mq@5e38 = ffffffffffffffff</action>
    </script>
</cheat>

<cheat desc="jumpable on trap floor">
    <script state="on">
        <action>tc0090lvc.mb@cf18 = 18</action> <!-- ($6f18) -->
        <action>tc0090lvc.mb@cf48 = 18</action> <!-- ($6f48) -->
        <action>tc0090lvc.mb@cf2f = 18</action> <!-- ($6f2f) -->
    </script>
    <script state="off">
        <action>tc0090lvc.mb@cf18 = 20</action>
        <action>tc0090lvc.mb@cf48 = 30</action>
        <action>tc0090lvc.mb@cf2f = 30</action>
    </script>
</cheat>
"jumpable on trap floor" is unique code. If you set foot on the trap floor (e.g. lava zone in stage 2), you will be unable to jump. This code enables jump again even on trap floor.
jman
Posts: 829
Joined: Tue Dec 01, 2020 1:24 pm

[kurikintj] update

Post by jman »

Recent MAME doesn't have "tc0090lvc" region tag so that you need to replace to "maincpu".
In official package based on 0.221, "Invincibility" and "Unlock Round Select" use old region tag.

Code: Select all

<cheat desc="no hit">
    <script state="on">
        <action>audiocpu.mb@05a3  = af</action> <!-- punch/kick -->
        <action>audiocpu.mb@0601  = af</action> <!-- firearm -->
        <action> maincpu.mb@c072  = 18</action> <!-- trap ($6072) -->
    </script>
    <script state="off">
        <action>audiocpu.mb@05a3  = 79</action>
        <action>audiocpu.mb@0601  = 79</action>
        <action> maincpu.mb@c072  = 28</action>
    </script>
</cheat>

<cheat desc="auto fire">
    <script state="on">
        <action>maincpu.mb@c1ab = 00</action> <!-- ($61ab) -->
    </script>
    <script state="off">
        <action>maincpu.mb@c1ab = 10</action>
    </script>
</cheat>

<cheat desc="attack speed up">
    <script state="on">
        <action>maincpu.md@cb59 =         285e30cd</action>
        <action>maincpu.mq@5e30 = c8fffe1a1313471a</action>
        <action>maincpu.mq@5e38 = ffc91b1b78f628b8</action>
        <!--
        5e30 | 1a    : ld  a,(de)
        5e31 | 47    : ld  b,a
        5e32 | 13    : inc de
        5e33 | 13    : inc de
        5e34 | 1a    : ld  a,(de)
        5e35 | fe ff : cp  $ff
        5e37 | c8    : ret z
        5e38 | b8    : cp  b
        5e39 | 28 f6 : jr  z,$5e31
        5e3b | 78    : ld  a,b
        5e3c | 1b    : dec de
        5e3d | 1b    : dec de
        5e3e | c9    : ret
        -->
    </script>
    <script state="off">
        <action>maincpu.md@cb59 =         28fffe1a</action>
        <action>maincpu.mq@5e30 = ffffffffffffffff</action>
        <action>maincpu.mq@5e38 = ffffffffffffffff</action>
    </script>
</cheat>

<cheat desc="jumpable trap floor">
    <script state="on">
        <action>maincpu.mb@cf18 = 18</action> <!-- ($6f18) -->
        <action>maincpu.mb@cf48 = 18</action> <!-- ($6f48) -->
        <action>maincpu.mb@cf2f = 18</action> <!-- ($6f2f) -->
    </script>
    <script state="off">
        <action>maincpu.mb@cf18 = 20</action>
        <action>maincpu.mb@cf48 = 30</action>
        <action>maincpu.mb@cf2f = 30</action>
    </script>
</cheat>
And added "sound test mode".

Code: Select all

<cheat desc="sound test mode">
    <comment>reset the game (F3) to enter sound test mode</comment>
    <script state="on">
        <action>maincpu.mw@1fd0b =             5e40</action> <!-- ($7d0b) -->
        <action>maincpu.mq@05e40 = 47b880143a810021</action>
        <action>maincpu.mq@05e48 = fe350120fbfef928</action>
        <action>maincpu.mq@05e50 = 0320effe340120f7</action>
        <action>maincpu.mq@05e58 = af0420dffe05187e</action>
        <action>maincpu.mq@05e60 = ffffffde18a7f032</action>
        <!--
        5e40 | 21 00 81 : ld  hl,$8100  // sound code address
        5e43 | 3a 14 80 : ld  a,($8014) // read input
        5e46 | b8       : cp  b
        5e47 | 47       : ld  b,a
        5e48 | 28 f9    : jr  z,$5E43
        5e4a | fe fb    : cp  $FB
        5e4c | 20 01    : jr  nz,$5E4F
        5e4e | 35       : dec (hl)      // decrease code
        5e4f | fe f7    : cp  $F7
        5e51 | 20 01    : jr  nz,$5E54
        5e53 | 34       : inc (hl)      // increase code
        5e54 | fe ef    : cp  $EF
        5e56 | 20 03    : jr  nz,$5E5B
        5e58 | 7e       : ld  a,(hl)    // play sound
        5e59 | 18 05    : jr  $5E60
        5e5b | fe df    : cp  $DF
        5e5d | 20 04    : jr  nz,$5E63
        5e5f | af       : xor a         // stop sound
        5e60 | 32 f0 a7 : ld  ($A7F0),a // send sound code
        5e63 | 18 de    : jr  $5E43
        -->
        <action>audiocpu.mb@1293 = 00</action> <!-- accept sound code -->
    </script>
    <script state="run">
        <output format="----- kuri kinton sound test mode -----" line="10" align="center" />
        <output format="left : code decrement"                   line="11" align="center" />
        <output format="right : code increment"                  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@8100</argument>
        </output>
    </script>
    <script state="off">
        <action> maincpu.mw@1fd0b =             007a</action>
        <action> maincpu.mq@05e40 = ffffffffffffffff</action>
        <action> maincpu.mq@05e48 = ffffffffffffffff</action>
        <action> maincpu.mq@05e50 = ffffffffffffffff</action>
        <action> maincpu.mq@05e58 = ffffffffffffffff</action>
        <action> maincpu.mq@05e60 = ffffffffffffffff</action>
        <action>audiocpu.mb@01293 =               c8</action>
    </script>
</cheat>
jman
Posts: 829
Joined: Tue Dec 01, 2020 1:24 pm

[kurikintj] Kuri Kinton (update)

Post by jman »

Code: Select all

<cheat desc="sound test mode">
    <comment>reset the game (F3) to enter sound test mode</comment>
    <script state="on">
        <action>maincpu.mw@1fd0b =             5e40</action> <!-- ($7d0b) -->
        <action>maincpu.mq@05e40 = 47b880143a810021</action>
        <action>maincpu.mq@05e48 = fe350120fbfef928</action>
        <action>maincpu.mq@05e50 = 0420fdfe340120f7</action>
        <action>maincpu.mq@05e58 = 0520fefe0618f03e</action>
        <action>maincpu.mq@05e60 = 20effe787786103e</action>
        <action>maincpu.mq@05e68 = 0420dffe05187e03</action>
        <action>maincpu.mq@05e70 = ffffcd18a7f032af</action>
        <!--
        5e40 | 21 00 81 : ld  hl,$8100  // sound code address
        5e43 | 3a 14 80 : ld  a,($8014) // read input
        5e46 | b8       : cp  b
        5e47 | 47       : ld  b,a
        5e48 | 28 f9    : jr  z,$5E43
        5e4a | fe fb    : cp  $FB
        5e4c | 20 01    : jr  nz,$5E4F
        5e4e | 35       : dec (hl)      // decrease code -01
        5e4f | fe f7    : cp  $F7
        5e51 | 20 01    : jr  nz,$5E54
        5e53 | 34       : inc (hl)      // increase code +01
        5e54 | fe fd    : cp  $FD
        5e56 | 20 04    : jr  nz,$5E5C
        5e58 | 3e f0    : ld  a,$F0     // decrease code -10
        5e5a | 18 06    : jr  $5E62
        5e5c | fe fe    : cp  $FE
        5e5e | 20 05    : jr  nz,$5E65
        5e60 | 3e 10    : ld  a,$10     // increase code +10
        5e62 | 86       : add a,(hl)
        5e63 | 77       : ld  (hl),a
        5e64 | 78       : ld  a,b
        5e65 | fe ef    : cp  $EF
        5e67 | 20 03    : jr  nz,$5E6C
        5e69 | 7e       : ld  a,(hl)    // play sound
        5e6a | 18 05    : jr  $5E71
        5e6c | fe df    : cp  $DF
        5e6e | 20 04    : jr  nz,$5E74
        5e70 | af       : xor a         // stop sound
        5e71 | 32 f0 a7 : ld  ($A7F0),a // send sound code
        5e74 | 18 cd    : jr  $5E43
        -->
        <action>audiocpu.mb@1293 = 00</action> <!-- accept sound code -->
    </script>
    <script state="run">
        <output format="----- kuri kinton 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@8100</argument>
        </output>
    </script>
    <script state="off">
        <action> maincpu.mw@1fd0b =             007a</action>
        <action> maincpu.mq@05e40 = ffffffffffffffff</action>
        <action> maincpu.mq@05e48 = ffffffffffffffff</action>
        <action> maincpu.mq@05e50 = ffffffffffffffff</action>
        <action> maincpu.mq@05e58 = ffffffffffffffff</action>
        <action> maincpu.mq@05e60 = ffffffffffffffff</action>
        <action> maincpu.mq@05e68 = ffffffffffffffff</action>
        <action> maincpu.mq@05e70 = ffffffffffffffff</action>
        <action>audiocpu.mb@01293 =               c8</action>
    </script>
</cheat>
"sound test mode" : rewrite routine. add up/down key (code ±10).
jman
Posts: 829
Joined: Tue Dec 01, 2020 1:24 pm

[kurikint]+ Kuri Kinton

Post by jman »

kurikint.xml

Code: Select all

<!-- Kuri Kinton (World) -->
<mamecheat version="1">

    <cheat desc="no hit">
        <script state="on">
            <action>audiocpu.mb@05A3  = AF</action> <!-- punch/kick -->
            <action>audiocpu.mb@0601  = AF</action> <!-- firearm -->
            <action> maincpu.mb@C072  = 18</action> <!-- trap ($6072) -->
        </script>
        <script state="off">
            <action>audiocpu.mb@05A3  = 79</action>
            <action>audiocpu.mb@0601  = 79</action>
            <action> maincpu.mb@C072  = 28</action>
        </script>
    </cheat>

    <cheat desc="auto fire">
        <script state="on">
            <action>maincpu.mb@C1BD = 00</action> <!-- ($61bd) -->
        </script>
        <script state="off">
            <action>maincpu.mb@C1BD = 10</action>
        </script>
    </cheat>

    <cheat desc="attack speed up">
        <script state="on">
            <action>maincpu.md@CB59 = 285E30CD        </action> <!-- ($6b59) -->
            <action>maincpu.mq@5E30 = C8FFFE1A1313471A</action>
            <action>maincpu.mq@5E38 = FFC91B1B78F628B8</action>
            <!--
            5E30 | 1A    : ld   a,(de)
            5E31 | 47    : ld   b,a
            5E32 | 13    : inc  de
            5E33 | 13    : inc  de
            5E34 | 1A    : ld   a,(de)
            5E35 | FE FF : cp   $FF
            5E37 | C8    : ret  z
            5E38 | B8    : cp   b
            5E39 | 28 F6 : jr   z,$5E31
            5E3B | 78    : ld   a,b
            5E3C | 1B    : dec  de
            5E3D | 1B    : dec  de
            5E3E | C9    : ret
            -->
        </script>
        <script state="off">
            <action>maincpu.md@CB59 = 28FFFE1A        </action>
            <action>maincpu.mq@5E30 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@5E38 = FFFFFFFFFFFFFFFF</action>
        </script>
    </cheat>

    <cheat desc="jumpable on trap floor">
        <script state="on">
            <action>maincpu.mb@CF18 = 18</action> <!-- ($6f18) -->
            <action>maincpu.mb@CF48 = 18</action> <!-- ($6f48) -->
            <action>maincpu.mb@CF2F = 18</action> <!-- ($6f2f) -->
        </script>
        <script state="off">
            <action>maincpu.mb@CF18 = 20</action>
            <action>maincpu.mb@CF48 = 30</action>
            <action>maincpu.mb@CF2F = 30</action>
        </script>
    </cheat>

    <cheat desc="sound test mode">
        <comment>reset the game (F3) to enter sound test mode</comment>
        <script state="on">
            <action>maincpu.mw@07EF = 5E40            </action>
            <action>maincpu.mq@5E40 = 47B880143A810021</action>
            <action>maincpu.mq@5E48 = FE350120FBFEF928</action>
            <action>maincpu.mq@5E50 = 0420FDFE340120F7</action>
            <action>maincpu.mq@5E58 = 0520FEFE0618F03E</action>
            <action>maincpu.mq@5E60 = 20EFFE787786103E</action>
            <action>maincpu.mq@5E68 = 0420DFFE05187E03</action>
            <action>maincpu.mq@5E70 = FFFFCD18A7F032AF</action>
            <!--
            5E40 | 21 00 81 : ld   hl,$8100  // sound code address
            5E43 | 3A 14 80 : ld   a,($8014) // read input
            5E46 | B8       : cp   b
            5E47 | 47       : ld   b,a
            5E48 | 28 F9    : jr   z,$5E43
            5E4A | FE FB    : cp   $FB
            5E4C | 20 01    : jr   nz,$5E4F
            5E4E | 35       : dec  (hl)      // decrease code -01
            5E4F | FE F7    : cp   $F7
            5E51 | 20 01    : jr   nz,$5E54
            5E53 | 34       : inc  (hl)      // increase code +01
            5E54 | FE FD    : cp   $FD
            5E56 | 20 04    : jr   nz,$5E5C
            5E58 | 3E F0    : ld   a,$F0     // decrease code -10
            5E5A | 18 06    : jr   $5E62
            5E5C | FE FE    : cp   $FE
            5E5E | 20 05    : jr   nz,$5E65
            5E60 | 3E 10    : ld   a,$10     // increase code +10
            5E62 | 86       : add  a,(hl)
            5E63 | 77       : ld   (hl),a
            5E64 | 78       : ld   a,b
            5E65 | FE EF    : cp   $EF
            5E67 | 20 03    : jr   nz,$5E6C
            5E69 | 7E       : ld   a,(hl)    // play sound
            5E6A | 18 05    : jr   $5E71
            5E6C | FE DF    : cp   $DF
            5E6E | 20 04    : jr   nz,$5E74
            5E70 | AF       : xor  a         // stop sound
            5E71 | 32 F0 A7 : ld   ($A7F0),a // send sound code
            5E74 | 18 CD    : jr   $5E43
            -->
            <action>audiocpu.mb@1293 = 00</action> <!-- accept sound code -->
        </script>
        <script state="run">
            <output format="----- kuri kinton 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@8100</argument>
            </output>
        </script>
        <script state="off">
            <action> maincpu.mw@07EF = 01C4            </action>
            <action> maincpu.mq@5E40 = FFFFFFFFFFFFFFFF</action>
            <action> maincpu.mq@5E48 = FFFFFFFFFFFFFFFF</action>
            <action> maincpu.mq@5E50 = FFFFFFFFFFFFFFFF</action>
            <action> maincpu.mq@5E58 = FFFFFFFFFFFFFFFF</action>
            <action> maincpu.mq@5E60 = FFFFFFFFFFFFFFFF</action>
            <action> maincpu.mq@5E68 = FFFFFFFFFFFFFFFF</action>
            <action> maincpu.mq@5E70 = FFFFFFFFFFFFFFFF</action>
            <action>audiocpu.mb@1293 = C8              </action>
        </script>
    </cheat>

</mamecheat>
kurikintw.xml

Code: Select all

<!-- Kuri Kinton (US, World Games license) -->
<mamecheat version="1">

    <cheat desc="no hit">
        <script state="on">
            <action>audiocpu.mb@05A3  = AF</action> <!-- punch/kick -->
            <action>audiocpu.mb@0601  = AF</action> <!-- firearm -->
            <action> maincpu.mb@C072  = 18</action> <!-- trap ($6072) -->
        </script>
        <script state="off">
            <action>audiocpu.mb@05A3  = 79</action>
            <action>audiocpu.mb@0601  = 79</action>
            <action> maincpu.mb@C072  = 28</action>
        </script>
    </cheat>

    <cheat desc="auto fire">
        <script state="on">
            <action>maincpu.mb@C1AB = 00</action> <!-- ($61ab) -->
        </script>
        <script state="off">
            <action>maincpu.mb@C1AB = 10</action>
        </script>
    </cheat>

    <cheat desc="attack speed up">
        <script state="on">
            <action>maincpu.md@CB59 = 285E30CD        </action> <!-- ($6b59) -->
            <action>maincpu.mq@5E30 = C8FFFE1A1313471A</action>
            <action>maincpu.mq@5E38 = FFC91B1B78F628B8</action>
            <!--
            5E30 | 1A    : ld   a,(de)
            5E31 | 47    : ld   b,a
            5E32 | 13    : inc  de
            5E33 | 13    : inc  de
            5E34 | 1A    : ld   a,(de)
            5E35 | FE FF : cp   $FF
            5E37 | C8    : ret  z
            5E38 | B8    : cp   b
            5E39 | 28 F6 : jr   z,$5E31
            5E3B | 78    : ld   a,b
            5E3C | 1B    : dec  de
            5E3D | 1B    : dec  de
            5E3E | C9    : ret
            -->
        </script>
        <script state="off">
            <action>maincpu.md@CB59 = 28FFFE1A        </action>
            <action>maincpu.mq@5E30 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@5E38 = FFFFFFFFFFFFFFFF</action>
        </script>
    </cheat>

    <cheat desc="jumpable on trap floor">
        <script state="on">
            <action>maincpu.mb@CF18 = 18</action> <!-- ($6f18) -->
            <action>maincpu.mb@CF48 = 18</action> <!-- ($6f48) -->
            <action>maincpu.mb@CF2F = 18</action> <!-- ($6f2f) -->
        </script>
        <script state="off">
            <action>maincpu.mb@CF18 = 20</action>
            <action>maincpu.mb@CF48 = 30</action>
            <action>maincpu.mb@CF2F = 30</action>
        </script>
    </cheat>

    <cheat desc="sound test mode">
        <comment>reset the game (F3) to enter sound test mode</comment>
        <script state="on">
            <action>maincpu.mw@07EF = 5E40            </action>
            <action>maincpu.mq@5E40 = 47B880143A810021</action>
            <action>maincpu.mq@5E48 = FE350120FBFEF928</action>
            <action>maincpu.mq@5E50 = 0420FDFE340120F7</action>
            <action>maincpu.mq@5E58 = 0520FEFE0618F03E</action>
            <action>maincpu.mq@5E60 = 20EFFE787786103E</action>
            <action>maincpu.mq@5E68 = 0420DFFE05187E03</action>
            <action>maincpu.mq@5E70 = FFFFCD18A7F032AF</action>
            <!--
            5E40 | 21 00 81 : ld   hl,$8100  // sound code address
            5E43 | 3A 14 80 : ld   a,($8014) // read input
            5E46 | B8       : cp   b
            5E47 | 47       : ld   b,a
            5E48 | 28 F9    : jr   z,$5E43
            5E4A | FE FB    : cp   $FB
            5E4C | 20 01    : jr   nz,$5E4F
            5E4E | 35       : dec  (hl)      // decrease code -01
            5E4F | FE F7    : cp   $F7
            5E51 | 20 01    : jr   nz,$5E54
            5E53 | 34       : inc  (hl)      // increase code +01
            5E54 | FE FD    : cp   $FD
            5E56 | 20 04    : jr   nz,$5E5C
            5E58 | 3E F0    : ld   a,$F0     // decrease code -10
            5E5A | 18 06    : jr   $5E62
            5E5C | FE FE    : cp   $FE
            5E5E | 20 05    : jr   nz,$5E65
            5E60 | 3E 10    : ld   a,$10     // increase code +10
            5E62 | 86       : add  a,(hl)
            5E63 | 77       : ld   (hl),a
            5E64 | 78       : ld   a,b
            5E65 | FE EF    : cp   $EF
            5E67 | 20 03    : jr   nz,$5E6C
            5E69 | 7E       : ld   a,(hl)    // play sound
            5E6A | 18 05    : jr   $5E71
            5E6C | FE DF    : cp   $DF
            5E6E | 20 04    : jr   nz,$5E74
            5E70 | AF       : xor  a         // stop sound
            5E71 | 32 F0 A7 : ld   ($A7F0),a // send sound code
            5E74 | 18 CD    : jr   $5E43
            -->
            <action>audiocpu.mb@1293 = 00</action> <!-- accept sound code -->
        </script>
        <script state="run">
            <output format="----- kuri kinton 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@8100</argument>
            </output>
        </script>
        <script state="off">
            <action> maincpu.mw@07EF = 01C4            </action>
            <action> maincpu.mq@5E40 = FFFFFFFFFFFFFFFF</action>
            <action> maincpu.mq@5E48 = FFFFFFFFFFFFFFFF</action>
            <action> maincpu.mq@5E50 = FFFFFFFFFFFFFFFF</action>
            <action> maincpu.mq@5E58 = FFFFFFFFFFFFFFFF</action>
            <action> maincpu.mq@5E60 = FFFFFFFFFFFFFFFF</action>
            <action> maincpu.mq@5E68 = FFFFFFFFFFFFFFFF</action>
            <action> maincpu.mq@5E70 = FFFFFFFFFFFFFFFF</action>
            <action>audiocpu.mb@1293 = C8              </action>
        </script>
    </cheat>

</mamecheat>
kurikintu.xml

Code: Select all

<!-- Kuri Kinton (US) -->
<mamecheat version="1">

    <cheat desc="no hit">
        <script state="on">
            <action>audiocpu.mb@05A3  = AF</action> <!-- punch/kick -->
            <action>audiocpu.mb@0601  = AF</action> <!-- firearm -->
            <action> maincpu.mb@C072  = 18</action> <!-- trap ($6072) -->
        </script>
        <script state="off">
            <action>audiocpu.mb@05A3  = 79</action>
            <action>audiocpu.mb@0601  = 79</action>
            <action> maincpu.mb@C072  = 28</action>
        </script>
    </cheat>

    <cheat desc="auto fire">
        <script state="on">
            <action>maincpu.mb@C1AB = 00</action> <!-- ($61ab) -->
        </script>
        <script state="off">
            <action>maincpu.mb@C1AB = 10</action>
        </script>
    </cheat>

    <cheat desc="attack speed up">
        <script state="on">
            <action>maincpu.md@CB59 = 285E30CD        </action> <!-- ($6b59) -->
            <action>maincpu.mq@5E30 = C8FFFE1A1313471A</action>
            <action>maincpu.mq@5E38 = FFC91B1B78F628B8</action>
            <!--
            5E30 | 1A    : ld   a,(de)
            5E31 | 47    : ld   b,a
            5E32 | 13    : inc  de
            5E33 | 13    : inc  de
            5E34 | 1A    : ld   a,(de)
            5E35 | FE FF : cp   $FF
            5E37 | C8    : ret  z
            5E38 | B8    : cp   b
            5E39 | 28 F6 : jr   z,$5E31
            5E3B | 78    : ld   a,b
            5E3C | 1B    : dec  de
            5E3D | 1B    : dec  de
            5E3E | C9    : ret
            -->
        </script>
        <script state="off">
            <action>maincpu.md@CB59 = 28FFFE1A        </action>
            <action>maincpu.mq@5E30 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@5E38 = FFFFFFFFFFFFFFFF</action>
        </script>
    </cheat>

    <cheat desc="jumpable on trap floor">
        <script state="on">
            <action>maincpu.mb@CF18 = 18</action> <!-- ($6f18) -->
            <action>maincpu.mb@CF48 = 18</action> <!-- ($6f48) -->
            <action>maincpu.mb@CF2F = 18</action> <!-- ($6f2f) -->
        </script>
        <script state="off">
            <action>maincpu.mb@CF18 = 20</action>
            <action>maincpu.mb@CF48 = 30</action>
            <action>maincpu.mb@CF2F = 30</action>
        </script>
    </cheat>

    <cheat desc="sound test mode">
        <comment>reset the game (F3) to enter sound test mode</comment>
        <script state="on">
            <action>maincpu.mw@07EF = 5E40            </action>
            <action>maincpu.mq@5E40 = 47B880143A810021</action>
            <action>maincpu.mq@5E48 = FE350120FBFEF928</action>
            <action>maincpu.mq@5E50 = 0420FDFE340120F7</action>
            <action>maincpu.mq@5E58 = 0520FEFE0618F03E</action>
            <action>maincpu.mq@5E60 = 20EFFE787786103E</action>
            <action>maincpu.mq@5E68 = 0420DFFE05187E03</action>
            <action>maincpu.mq@5E70 = FFFFCD18A7F032AF</action>
            <!--
            5E40 | 21 00 81 : ld   hl,$8100  // sound code address
            5E43 | 3A 14 80 : ld   a,($8014) // read input
            5E46 | B8       : cp   b
            5E47 | 47       : ld   b,a
            5E48 | 28 F9    : jr   z,$5E43
            5E4A | FE FB    : cp   $FB
            5E4C | 20 01    : jr   nz,$5E4F
            5E4E | 35       : dec  (hl)      // decrease code -01
            5E4F | FE F7    : cp   $F7
            5E51 | 20 01    : jr   nz,$5E54
            5E53 | 34       : inc  (hl)      // increase code +01
            5E54 | FE FD    : cp   $FD
            5E56 | 20 04    : jr   nz,$5E5C
            5E58 | 3E F0    : ld   a,$F0     // decrease code -10
            5E5A | 18 06    : jr   $5E62
            5E5C | FE FE    : cp   $FE
            5E5E | 20 05    : jr   nz,$5E65
            5E60 | 3E 10    : ld   a,$10     // increase code +10
            5E62 | 86       : add  a,(hl)
            5E63 | 77       : ld   (hl),a
            5E64 | 78       : ld   a,b
            5E65 | FE EF    : cp   $EF
            5E67 | 20 03    : jr   nz,$5E6C
            5E69 | 7E       : ld   a,(hl)    // play sound
            5E6A | 18 05    : jr   $5E71
            5E6C | FE DF    : cp   $DF
            5E6E | 20 04    : jr   nz,$5E74
            5E70 | AF       : xor  a         // stop sound
            5E71 | 32 F0 A7 : ld   ($A7F0),a // send sound code
            5E74 | 18 CD    : jr   $5E43
            -->
            <action>audiocpu.mb@1293 = 00</action> <!-- accept sound code -->
        </script>
        <script state="run">
            <output format="----- kuri kinton 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@8100</argument>
            </output>
        </script>
        <script state="off">
            <action> maincpu.mw@07EF = 01C4            </action>
            <action> maincpu.mq@5E40 = FFFFFFFFFFFFFFFF</action>
            <action> maincpu.mq@5E48 = FFFFFFFFFFFFFFFF</action>
            <action> maincpu.mq@5E50 = FFFFFFFFFFFFFFFF</action>
            <action> maincpu.mq@5E58 = FFFFFFFFFFFFFFFF</action>
            <action> maincpu.mq@5E60 = FFFFFFFFFFFFFFFF</action>
            <action> maincpu.mq@5E68 = FFFFFFFFFFFFFFFF</action>
            <action> maincpu.mq@5E70 = FFFFFFFFFFFFFFFF</action>
            <action>audiocpu.mb@1293 = C8              </action>
        </script>
    </cheat>

</mamecheat>
kurikintj.xml

Code: Select all

<!-- Kuri Kinton (Japan) -->
<mamecheat version="1">

    <cheat desc="no hit">
        <script state="on">
            <action>audiocpu.mb@05A3  = AF</action> <!-- punch/kick -->
            <action>audiocpu.mb@0601  = AF</action> <!-- firearm -->
            <action> maincpu.mb@C072  = 18</action> <!-- trap ($6072) -->
        </script>
        <script state="off">
            <action>audiocpu.mb@05A3  = 79</action>
            <action>audiocpu.mb@0601  = 79</action>
            <action> maincpu.mb@C072  = 28</action>
        </script>
    </cheat>

    <cheat desc="auto fire">
        <script state="on">
            <action>maincpu.mb@C1AB = 00</action> <!-- ($61ab) -->
        </script>
        <script state="off">
            <action>maincpu.mb@C1AB = 10</action>
        </script>
    </cheat>

    <cheat desc="attack speed up">
        <script state="on">
            <action>maincpu.md@CB59 = 285E30CD        </action> <!-- ($6b59) -->
            <action>maincpu.mq@5E30 = C8FFFE1A1313471A</action>
            <action>maincpu.mq@5E38 = FFC91B1B78F628B8</action>
            <!--
            5E30 | 1A    : ld   a,(de)
            5E31 | 47    : ld   b,a
            5E32 | 13    : inc  de
            5E33 | 13    : inc  de
            5E34 | 1A    : ld   a,(de)
            5E35 | FE FF : cp   $FF
            5E37 | C8    : ret  z
            5E38 | B8    : cp   b
            5E39 | 28 F6 : jr   z,$5E31
            5E3B | 78    : ld   a,b
            5E3C | 1B    : dec  de
            5E3D | 1B    : dec  de
            5E3E | C9    : ret
            -->
        </script>
        <script state="off">
            <action>maincpu.md@CB59 = 28FFFE1A        </action>
            <action>maincpu.mq@5E30 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@5E38 = FFFFFFFFFFFFFFFF</action>
        </script>
    </cheat>

    <cheat desc="jumpable on trap floor">
        <script state="on">
            <action>maincpu.mb@CF18 = 18</action> <!-- ($6f18) -->
            <action>maincpu.mb@CF48 = 18</action> <!-- ($6f48) -->
            <action>maincpu.mb@CF2F = 18</action> <!-- ($6f2f) -->
        </script>
        <script state="off">
            <action>maincpu.mb@CF18 = 20</action>
            <action>maincpu.mb@CF48 = 30</action>
            <action>maincpu.mb@CF2F = 30</action>
        </script>
    </cheat>

    <cheat desc="sound test mode">
        <comment>reset the game (F3) to enter sound test mode</comment>
        <script state="on">
            <action>maincpu.mw@1FD0B = 5E40            </action> <!-- ($7d0b) -->
            <action>maincpu.mq@05E40 = 47B880143A810021</action>
            <action>maincpu.mq@05E48 = FE350120FBFEF928</action>
            <action>maincpu.mq@05E50 = 0420FDFE340120F7</action>
            <action>maincpu.mq@05E58 = 0520FEFE0618F03E</action>
            <action>maincpu.mq@05E60 = 20EFFE787786103E</action>
            <action>maincpu.mq@05E68 = 0420DFFE05187E03</action>
            <action>maincpu.mq@05E70 = FFFFCD18A7F032AF</action>
            <!--
            5E40 | 21 00 81 : ld   hl,$8100  // sound code address
            5E43 | 3A 14 80 : ld   a,($8014) // read input
            5E46 | B8       : cp   b
            5E47 | 47       : ld   b,a
            5E48 | 28 F9    : jr   z,$5E43
            5E4A | FE FB    : cp   $FB
            5E4C | 20 01    : jr   nz,$5E4F
            5E4E | 35       : dec  (hl)      // decrease code -01
            5E4F | FE F7    : cp   $F7
            5E51 | 20 01    : jr   nz,$5E54
            5E53 | 34       : inc  (hl)      // increase code +01
            5E54 | FE FD    : cp   $FD
            5E56 | 20 04    : jr   nz,$5E5C
            5E58 | 3E F0    : ld   a,$F0     // decrease code -10
            5E5A | 18 06    : jr   $5E62
            5E5C | FE FE    : cp   $FE
            5E5E | 20 05    : jr   nz,$5E65
            5E60 | 3E 10    : ld   a,$10     // increase code +10
            5E62 | 86       : add  a,(hl)
            5E63 | 77       : ld   (hl),a
            5E64 | 78       : ld   a,b
            5E65 | FE EF    : cp   $EF
            5E67 | 20 03    : jr   nz,$5E6C
            5E69 | 7E       : ld   a,(hl)    // play sound
            5E6A | 18 05    : jr   $5E71
            5E6C | FE DF    : cp   $DF
            5E6E | 20 04    : jr   nz,$5E74
            5E70 | AF       : xor  a         // stop sound
            5E71 | 32 F0 A7 : ld   ($A7F0),a // send sound code
            5E74 | 18 CD    : jr   $5E43
            -->
            <action>audiocpu.mb@1293 = 00</action> <!-- accept sound code -->
        </script>
        <script state="run">
            <output format="----- kuri kinton 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@8100</argument>
            </output>
        </script>
        <script state="off">
            <action> maincpu.mw@1FD0B = 007A            </action>
            <action> maincpu.mq@05E40 = FFFFFFFFFFFFFFFF</action>
            <action> maincpu.mq@05E48 = FFFFFFFFFFFFFFFF</action>
            <action> maincpu.mq@05E50 = FFFFFFFFFFFFFFFF</action>
            <action> maincpu.mq@05E58 = FFFFFFFFFFFFFFFF</action>
            <action> maincpu.mq@05E60 = FFFFFFFFFFFFFFFF</action>
            <action> maincpu.mq@05E68 = FFFFFFFFFFFFFFFF</action>
            <action> maincpu.mq@05E70 = FFFFFFFFFFFFFFFF</action>
            <action>audiocpu.mb@01293 = C8              </action>
        </script>
    </cheat>

</mamecheat>
kurikinta.xml

Code: Select all

<!-- Kuri Kinton (World, prototype?) -->
<mamecheat version="1">

    <cheat desc="no hit">
        <script state="on">
            <action>audiocpu.mb@05A3 = AF</action> <!-- punch/kick -->
            <action>audiocpu.mb@0601 = AF</action> <!-- firearm -->
            <action> maincpu.mb@C065 = 18</action> <!-- trap ($6065) -->
            <action> maincpu.mb@C073 = 18</action> <!-- trap ($6073) -->
        </script>
        <script state="off">
            <action>audiocpu.mb@05A3 = 79</action>
            <action>audiocpu.mb@0601 = 79</action>
            <action> maincpu.mb@C065 = 20</action>
            <action> maincpu.mb@C073 = 28</action>
        </script>
    </cheat>

    <cheat desc="auto fire">
        <script state="on">
            <action>maincpu.mb@C1BD = 00</action> <!-- ($61bd) -->
        </script>
        <script state="off">
            <action>maincpu.mb@C1BD = 10</action>
        </script>
    </cheat>

    <cheat desc="attack speed up">
        <script state="on">
            <action>maincpu.md@CB6C = 287F90CD        </action> <!-- ($6b6c) -->
            <action>maincpu.mq@DF90 = C8FFFE1A1313471A</action>
            <action>maincpu.mq@DF98 = FFC91B1B78F628B8</action>
            <!--
            7F90 | 1A    : ld   a,(de)
            7F91 | 47    : ld   b,a
            7F92 | 13    : inc  de
            7F93 | 13    : inc  de
            7F94 | 1A    : ld   a,(de)
            7F95 | FE FF : cp   $FF
            7F97 | C8    : ret  z
            7F98 | B8    : cp   b
            7F99 | 28 F6 : jr   z,$7F91
            7F9B | 78    : ld   a,b
            7F9C | 1B    : dec  de
            7F9D | 1B    : dec  de
            7F9E | C9    : ret
            -->
        </script>
        <script state="off">
            <action>maincpu.md@CB6C = 28FFFE1A        </action>
            <action>maincpu.mq@DF90 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@DF98 = 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.mw@0612 = 7F70            </action>
            <action>maincpu.mq@7F70 = 47B880143A810021</action>
            <action>maincpu.mq@7F78 = FE350120FBFEF928</action>
            <action>maincpu.mq@7F80 = 0420FDFE340120F7</action>
            <action>maincpu.mq@7F88 = 0520FEFE0618F03E</action>
            <action>maincpu.mq@7F90 = 20EFFE787786103E</action>
            <action>maincpu.mq@7F98 = 0420DFFE05187E03</action>
            <action>maincpu.mq@7FA0 = FFFFCD18A7F032AF</action>
            <!--
            7F70 | 21 00 81 : ld   hl,$8100  // sound code address
            7F73 | 3A 14 80 : ld   a,($8014) // read input
            7F76 | B8       : cp   b
            7F77 | 47       : ld   b,a
            7F78 | 28 F9    : jr   z,$7F73
            7F7A | FE FB    : cp   $FB
            7F7C | 20 01    : jr   nz,$7F7F
            7F7E | 35       : dec  (hl)      // decrease code -01
            7F7F | FE F7    : cp   $F7
            7F81 | 20 01    : jr   nz,$7F84
            7F83 | 34       : inc  (hl)      // increase code +01
            7F84 | FE FD    : cp   $FD
            7F86 | 20 04    : jr   nz,$7F8C
            7F88 | 3E F0    : ld   a,$F0     // decrease code -10
            7F8A | 18 06    : jr   $7F92
            7F8C | FE FE    : cp   $FE
            7F8E | 20 05    : jr   nz,$7F95
            7F90 | 3E 10    : ld   a,$10     // increase code +10
            7F92 | 86       : add  a,(hl)
            7F93 | 77       : ld   (hl),a
            7F94 | 78       : ld   a,b
            7F95 | FE EF    : cp   $EF
            7F97 | 20 03    : jr   nz,$7F9C
            7F99 | 7E       : ld   a,(hl)    // play sound
            7F9A | 18 05    : jr   $7FA1
            7F9C | FE DF    : cp   $DF
            7F9E | 20 04    : jr   nz,$7FA4
            7FA0 | AF       : xor  a         // stop sound
            7FA1 | 32 F0 A7 : ld   ($A7F0),a // send sound code
            7FA4 | 18 CD    : jr   $7F73
            -->
            <action>audiocpu.mb@1293 = 00</action> <!-- accept sound code -->
        </script>
        <script state="run">
            <output format="----- kuri kinton 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@8100</argument>
            </output>
        </script>
        <script state="off">
            <action> maincpu.mw@0612 = 42F6            </action>
            <action> maincpu.mq@7F70 = FFFFFFFFFFFFFFFF</action>
            <action> maincpu.mq@7F78 = FFFFFFFFFFFFFFFF</action>
            <action> maincpu.mq@7F80 = FFFFFFFFFFFFFFFF</action>
            <action> maincpu.mq@7F88 = FFFFFFFFFFFFFFFF</action>
            <action> maincpu.mq@7F90 = FFFFFFFFFFFFFFFF</action>
            <action> maincpu.mq@7F98 = FFFFFFFFFFFFFFFF</action>
            <action> maincpu.mq@7FA0 = FFFFFFFFFFFFFFFF</action>
            <action>audiocpu.mb@1293 = C8              </action>
        </script>
    </cheat>

</mamecheat>
"jumpable on trap floor" : Removed from kurikinta because some traps don't work and I can't find corresponded routine in this set.
Post Reply