[samsho2] Update/add. cheats

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
mezdap
Posts: 124
Joined: Sun Feb 04, 2018 5:16 am
Has thanked: 2 times
Been thanked: 2 times

[samsho2] Update/add. cheats

Post by mezdap »

samsho2.xml

Code: Select all

  <cheat desc="Infinite Character Select Time">
    <script state="on">
      <action>temp0=maincpu.rw@014888</action>
    </script>
    <script state="run">
      <action>maincpu.rw@014888=4A6E</action> <!-- This ROM cheat was made by mezdap -->
    </script>
    <script state="off">
      <action>maincpu.rw@014888=temp0</action>
    </script>
  </cheat>
mezdap
Posts: 124
Joined: Sun Feb 04, 2018 5:16 am
Has thanked: 2 times
Been thanked: 2 times

Re: [samsho2] Update/add. cheats

Post by mezdap »

samsho2k.xml, samsho2ka.xml

Code: Select all

  <cheat desc="Infinite Character Select Time">
    <script state="on">
      <action>temp0=maincpu.rw@01485A</action>
    </script>
    <script state="run">
      <action>maincpu.rw@01485A=4A6E</action> <!-- This ROM cheat was made by mezdap -->
    </script>
    <script state="off">
      <action>maincpu.rw@01485A=temp0</action>
    </script>
  </cheat>
mezdap
Posts: 124
Joined: Sun Feb 04, 2018 5:16 am
Has thanked: 2 times
Been thanked: 2 times

Re: [samsho2] Reselect Character

Post by mezdap »

samsho2.xml

Code: Select all

  <cheat desc="Reselect Character"> <comment>Lets you reselect character on the select screen for P1 and P2.</comment>
    <script state="on">
      <action>temp0=maincpu.rw@0148C6</action>
    </script>
    <script state="run">
      <action>maincpu.rw@0148C6=000A</action> <!-- This ROM cheat was made by mezdap -->
    </script>
    <script state="off">
      <action>maincpu.rw@0148C6=temp0</action>
    </script>
  </cheat>
Last edited by mezdap on Fri May 03, 2024 12:27 pm, edited 1 time in total.
mezdap
Posts: 124
Joined: Sun Feb 04, 2018 5:16 am
Has thanked: 2 times
Been thanked: 2 times

Re: [samsho2] Reselect character

Post by mezdap »

samsho2k.xml, samsho2ka.xml

Code: Select all

  <cheat desc="Reselect Character"> <comment>Lets you reselect character on the select screen for P1 and P2.</comment>
    <script state="on">
      <action>temp0=maincpu.rw@014898</action>
    </script>
    <script state="run">
      <action>maincpu.rw@014898=000A</action> <!-- This ROM cheat was made by mezdap -->
    </script>
    <script state="off">
      <action>maincpu.rw@014898=temp0</action>
    </script>
  </cheat>
Last edited by mezdap on Fri May 03, 2024 12:30 pm, edited 1 time in total.
jman
Posts: 856
Joined: Tue Dec 01, 2020 1:24 pm

Re: [samsho2] Update/add. cheats

Post by jman »

mezdap wrote:

Code: Select all

  <cheat desc="Reselect Character"> <comment>Lets you reselect character on the select screen for P1 and P2.</comment>
    <script state="on">
      <action>temp0=maincpu.rw@0148C4</action>
    </script>
    <script state="run">
      <action>maincpu.rw@0148C4=6A0A</action> <!-- This ROM cheat was made by mezdap -->
    </script>
    <script state="off">
      <action>maincpu.rw@0148C4=temp0</action>
    </script>
  </cheat>
It's dangerous code.
Origianl program code.

Code: Select all

0148C2  tst.w   (A4)                                        4A54
0148C4  bpl     $148ce                                      6A00 0008
0148C8  moveq   #$11, D0                                    7011
0148CA  move.b  D0, ($b,A2)                                 1540 000B
0148CE  move.b  #$1, ($e,A2)                                157C 0001 000E
0148D4  tst.b   ($e,A3)                                     4A2B 000E
0148D8  beq     $148f0                                      6700 0016
mezdap replaces 0x6A00 with 0x6A0A at $148C4.
But...

Code: Select all

0148C2  tst.w   (A4)                                        4A54
0148C4  bpl     $148d0                                      6A0A
0148C6  dc.w    $0008; ILLEGAL                              0008
0148C8  moveq   #$11, D0                                    7011
0148CA  move.b  D0, ($b,A2)                                 1540 000B
0148CE  move.b  #$1, ($e,A2)                                157C 0001 000E
0148D4  tst.b   ($e,A3)                                     4A2B 000E
0148D8  beq     $148f0                                      6700 0016
  • $148d0 is UNEXPECTED "ori.b #$e,D1" (0001 000e) in program code.
  • If "bpl $148d0" at $148C4 is false, $148C6 is executed and the game throws illegal instruction.
Fixed code is the following.

Code: Select all

    <cheat desc="Reselect Character">
    <comment>Lets you reselect character on the select screen for P1 and P2.</comment>
        <script state="on">
            <action>temp0 = maincpu.rb@148D1</action>
        </script>
        <script state="run">
            <action>maincpu.rb@148D1 = 00</action>
        </script>
        <script state="off">
            <action>maincpu.rb@148D1 = temp0</action>
        </script>
    </cheat>
mezdap
Posts: 124
Joined: Sun Feb 04, 2018 5:16 am
Has thanked: 2 times
Been thanked: 2 times

Re: [samsho2] Update/add. cheats

Post by mezdap »

Thanks again, same reason, trying to add hidden characters (Mizuki and Kuroko) to select screen...And current 'select character' cheat for this game and the other ones are not working that I want! Tried to fix them but failed! So I start making these.
This is the address that I use first: maincpu.rw@0148C6=000A
Post Reply