Forums

Sega Master System / Mark III / Game Gear
SG-1000 / SC-3000 / SF-7000 / OMV
Home - Forums - Games - Scans - Maps - Cheats - Credits
Music - Videos - Development - Hacks - Translations - Homebrew

View topic - Are there patches for more games to swap player 1 and 2?

Reply to topic
Author Message
  • Joined: 11 Jan 2019
  • Posts: 6
Reply with quote
Are there patches for more games to swap player 1 and 2?
Post Posted: Fri Jan 11, 2019 9:53 am
I have a Mcwill modded Game gear with an Everdrive and an adapter to connect a Sega Master system controller to the extension port however the extension port acts as port 2, but I need it to act as port 1.
I know there is a controller mod for the Game gear however I don't want the extension port to be port 1 for all games, so are there any patches for the games?
I'm looking for controller patches for Sega Master system and SG-1000 games.
  View user's profile Send private message
  • Joined: 05 Sep 2013
  • Posts: 3805
  • Location: Stockholm, Sweden
Reply with quote
Post Posted: Fri Jan 11, 2019 11:48 am
you can try coding them by your own - basically instead of simply reading from port $DC and take the lowest 6 bits from there, you should keep the two highest bits and take the 4 lowest bits from next port, $DD.

see: http://www.smspower.org/Development/PeripheralPorts#PortDCIOPortAAndB
  View user's profile Send private message Visit poster's website
  • Joined: 14 Oct 2008
  • Posts: 510
Reply with quote
Post Posted: Fri Jan 11, 2019 6:18 pm
That sounds like it would take a sizeable amount of code (to do the necessary reads and shifts).
Basically shift the high two bits of DC down to the lowest two bits,
the read the low 4 bits of DD, shift them left two and mix with the previous.
  View user's profile Send private message
  • Site Admin
  • Joined: 19 Oct 1999
  • Posts: 14728
  • Location: London
Reply with quote
Post Posted: Fri Jan 11, 2019 7:20 pm
It's usually easy to find a few dozen bytes of unused space, then replace the existing code with a call to it.
  View user's profile Send private message Visit poster's website
  • Joined: 11 Jan 2019
  • Posts: 6
Reply with quote
I thought it was as simple as editing a few variables with the Hex editor
Post Posted: Fri Jan 11, 2019 10:04 pm
If I manage to swap player 1 and 2 will it be the same process for all games?
  View user's profile Send private message
  • Site Admin
  • Joined: 19 Oct 1999
  • Posts: 14728
  • Location: London
Reply with quote
Post Posted: Sat Jan 12, 2019 7:15 am
It's similar but definitely not identical, and not as simple as hex editing.
  View user's profile Send private message Visit poster's website
Reply to topic



Back to the top of this page

Back to SMS Power!