[samsho] 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

[samsho] Update/add. cheats

Post by mezdap »

samsho.xml, samshoh.xml

Code: Select all

  <cheat desc="Infinite Character Select Time">
    <script state="on">
      <action>temp0=maincpu.rw@023150</action>
    </script>
    <script state="run">
      <action>maincpu.rw@023150=4A6D</action> <!-- This ROM cheat was made by mezdap -->
    </script>
    <script state="off">
      <action>maincpu.rw@023150=temp0</action>
    </script>
  </cheat>

Code: Select all

  <cheat desc="Select Background">
    <parameter>
      <item value="0x00">Haohmaru</item>
      <item value="0x01">Nakoruru</item>
      <item value="0x02">Hanzo</item>
      <item value="0x03">Galford</item>
      <item value="0x04">Wang-Fu</item>
      <item value="0x05">Ukyo</item>
      <item value="0x06">Kyoshiro</item>
      <item value="0x07">Gen-An</item>
      <item value="0x08">Earthquake</item>
      <item value="0x09">Jubei</item>
      <item value="0x0A">Tamtam</item>
      <item value="0x0B">Charlotte</item>
      <item value="0x0C">Amakusa</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@100A8A=param</action>
    </script>
  </cheat>
mezdap
Posts: 124
Joined: Sun Feb 04, 2018 5:16 am
Has thanked: 2 times
Been thanked: 2 times

Re: [samsho] reselect character

Post by mezdap »

samsho.xml, samshoh.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@02318C</action>
    </script>
    <script state="run">
      <action>maincpu.rw@02318C=0012</action> <!-- This ROM cheat was made by mezdap -->
    </script>
    <script state="off">
      <action>maincpu.rw@02318C=temp0</action>
    </script>
  </cheat>
Last edited by mezdap on Fri May 03, 2024 12:09 pm, edited 1 time in total.
jman
Posts: 856
Joined: Tue Dec 01, 2020 1:24 pm

Re: [samsho] 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@02318A</action>
    </script>
    <script state="run">
      <action>maincpu.rw@02318A=6712</action> <!-- This ROM cheat was made by mezdap -->
    </script>
    <script state="off">
      <action>maincpu.rw@02318A=temp0</action>
    </script>
  </cheat>
Again, it's dangerous code.

Code: Select all

023186  tst.b   ($d,A3)                                     4A2B 000D
02318A  beq     $2319e                                      6712
02318C  dc.w    $000c; ILLEGAL                              000C
02318E  move.b  #$1, (-$73c8,A5)                            1B7C 0001 8C38
023194  jmp     ($5e,PC) ; ($231f4)                         4EFA 005E
023198  move.b  #$1, ($d,A3)                                177C 0001 000D
02319E  tst.b   (-$73c8,A5)                                 4A2D 8C38
If "beq $2319e" is false, the game throws illegal instruction and freezes.

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@2319B</action>
        </script>
        <script state="run">
            <action>maincpu.rb@2319B = 00</action>
        </script>
        <script state="off">
            <action>maincpu.rb@2319B = temp0</action>
        </script>
    </cheat>
mezdap
Posts: 124
Joined: Sun Feb 04, 2018 5:16 am
Has thanked: 2 times
Been thanked: 2 times

Re: [samsho] Update/add. cheats

Post by mezdap »

You're right it says 'ILLEGAL' I should've check it! but game is working normal...
I was trying add hidden character (Amakusa) to select screen and I gave up post this!
This is the address that I found first:maincpu.rw02318C=0012
Post Reply