Page 1 of 1

[samsho2] Update/add. cheats

Posted: Fri Apr 12, 2024 7:08 am
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>

Re: [samsho2] Update/add. cheats

Posted: Fri Apr 12, 2024 8:09 pm
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>

Re: [samsho2] Reselect Character

Posted: Fri May 03, 2024 8:08 am
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>

Re: [samsho2] Reselect character

Posted: Fri May 03, 2024 8:19 am
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>

Re: [samsho2] Update/add. cheats

Posted: Fri May 03, 2024 10:22 am
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>

Re: [samsho2] Update/add. cheats

Posted: Fri May 03, 2024 12:26 pm
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