Sega Master System / Mark III / Game Gear
The BIOS can be replaced with an EPROM to enable use of different BIOS types.
SMS consoles with US/European BIOS v1.3 use a Sony CXK3864 mask ROM, which is pin compatible with a standard 27C64 (8Kx8) EPROM.
Here is a more detailed explanation using flash ROM.
We can use any 32Kb ROM as a BIOS (probably, up to 48Kb is fine).
In red, the BIOS chip.
In the blue area, there were two capacitors that you will have to remove. The system will work fine without them.
I will detail how to use a 29F0x0 flash ROM.
A 29F010 is the best part you can get in my opinion; it's a 128kbytes, 8 bit Flash chip, and requires less wiring than higher capacity models.
The modifications needed to match the pinout can be made on a 32 pin socket that sits on top of the 28 pin one. This way there's no need to do anything on the motherboard or the memory chip, which can be easily pulled off for reprogramming.
Obviously, the 32 pin socket is bigger than the original chip, and that's why you will need to remove the 2 capacitors shown in the above image.
If you use a 29F010 then it is easy to make pinout compatible. 29F020 or 29F040 will need some more wiring, to ground extra address lines, but that is not a big deal.
BIOS Pinout 29F040 pinout: 29F020 lacks A18 +------+ 29F010 lacks A17 A18 |01 32| +5V +--------+ A16 |02 31| /WR /WR |01 28| - +5V A15 |03 30| A17 A12 |02 27| - A14 A12 |04 29| A14 A7 |03 26| - A13 A7 |05 28| A13 A6 |04 25| - A8 A6 |06 27| A8 A5 |05 24| - A9 A5 |07 26| A9 A4 |06 23| - A11 A4 |08 25| A11 A3 |07 22| - A15 A3 |09 24| /RD A2 |08 21| - A10 A2 |10 23| A10 A1 |09 20| - /CE0 A1 |11 22| /CS A0 |10 19| - D7 A0 |12 21| D7 D0 |11 18| - D6 D0 |13 20| D6 D1 |12 17| - D5 D1 |14 19| D5 D2 |13 16| - D4 D2 |15 18| D4 GND |14 15| - D3 GND |16 17| D3 +--------+ +------+
You will have to connect Flash ROM /WE and Vcc together to 5V, taken from any place on the mainboard.
Connect A15, A16 and A17 to ground. If your Flash ROM chip has more address lines, tie them to ground too. I did these modifications on the 32 pin socket.
Apart from these pins I mentioned, the rest of the board pinout matches exactly a 29F0x0 flash ROM.
You can take advantage of the desoldered caps, by taking power and ground from their pads, as seen below:
Black pads are ground points. Red pads are 5V points.
The final result should look pretty similar to this:
If you disabled BIOS, you need to undo the modification for the BIOS to be able to boot again at start-up (else, cartridge will boot first).
This can be very easily done by desoldering the cable that connect cartridge pin #13 (/CE) to pin #36 (/CE0) of I/O chip. You will only need to desolder the I/O chip end; the cartridge end of the cable remains the same as it should already be.