Conversions guide for Sega System16B 5704 romboard

keropi

User
Feedback
8 (100%)
Credits
89CR
Welcome to the SEGA SYSTEM-16B 171-5704 romboard conversion guide !

I started researching this last year when I got my SEGA Tetris board - and with some help (mainly from donluca at arcade-projects thanks man!) I managed to successfully convert Tetris to several other compatible games with the 5704 romboard.

Also a huge help for that were the decrypted roms some brilliant people produced (and are now part of MAME romset).

I will try to explain things as simple as possible - it's nothing difficult: burn some eproms, instert them in correct places and make sure the jumpers are set correctly for each game.

I know there is an upcoming multi from Darksoft but tbh you can't beat the cost of a bunch of eproms against buying the multi. I won't argue that a multi is a more elegant solution and you get to play 3-4 more games that the 5704 does not support but almost all good ones can be had for the cost of some chips
smiley4.gif


[1] So which games are supported?

This is the list of the supported games

Altered Beast

Aurail

Bay Route

Cotton

Dynamite Dux

Golden Axe

Riot City

Shinobi

Wonder Boy III : Monster Lair

E-Swat

Flash Point

Tetris

IMHO the only notable omission is Alien Syndrome that uses another romboard (171-5358) which has different memory mapping than the 5704 one... maybe someone more knowledgeable could convert it to match the 5704 memory mapping, it is something I cannot do.

There is also Tough Turf but that uses the optional protection MCU and there is no deprotected version that I know of.

[2] Basic Requirements:

- you need a System16B board with the 5704 romboard - Tetris is the perfect game for this

- you need to have normal 68000 and Z80 cpus on your board - store the original Hitachi cpu modules somewhere safe

- you need a programmer to burn your new romsets

- you need to use NON-JEDEC 128kbyte eproms - only then will the games work correctly.

- 256kbyte, 64kbyte and 32kbyte eproms are normal JEDEC ones meaning bog standard 27C020 / 27C512 / 27C256 ones

- in conclusion: burn, match eprom placement and jumper settings and play! nothing more to it!

[3] About the NON-JEDEC eproms:

SEGA has hardwired the romboard to work with NON-JEDEC eproms for the 128kbyte sized ones.

That type was the normal one back then, the only difference from a normal 27C010 is two pins swapped: pin 2 and pin 24.

JAMMARCADE.NET expains the situation here: https://www.jammarcade.net/1mbit-eprom-confusion-jedec-vs-non-jedec/

It is possible to patch the romboard so you can use normal 27C010-style eproms but that is just too annoying IMHO.

Personally I bought a 100pcs lot of MBM27C1000A-15Z eproms and they work great. Other compatible eprom models can be found in jammarcade's list:



So to recap, you need normal standard 27C020 / 27C512 / 27C256 eproms but 128kbyte files need to be burned on NON-JEDEC 128kbyte eproms like the ones on the above list.

[3] Placement of eproms and files naming for burning:

This is the 171-5704 romboard:



it has 2 rows where you can put eproms, top row "A" and bottom row "B".

Both rows have 16 positions as seen on the above pic.

Positions A9 , A13 and B9 are not populated.

When you download the "SEGA System16B 171-5704 rompack.zip" you will find a bunch of directories and inside them the files you need to burn:



so what you need to pay attention is the extention of the file: I have marked epr-12385.a14 in the picture, this means the rom you will burn needs to placed at position A14.

Also you can see it is a 128kbyte file and it needs to be burned on those NON-JEDEC eproms.

Further down the list there is the epr-12524.a5x file, the x just means it's a decrypted rom that does not need the special cpu to run. So it goes to position A5.

For Golden Axe you would need:

6x 27C020 eproms for the 256kbyte files

8x NON-JEDEC eproms for the 128kbyte files

1x 27C256 eprom for the 32kbyte file

[4] Jumper settings:

There are some jumpers on the 5704 romboard in 3 groups marked in blue in the picture above.

You just have to short them correctly so the game works fine , inside each game's directory there is a _jumpers.txt file that explains which jumpers need to be installed.

Basically there is only 2 settings for jumpers:

if a game uses some 256kbyte erpoms: S2 S4 S5 S8 S10 S12 S13 S15 S17 -> CLOSED

all other games that use 128/64/32kbyte erpoms: S2 S3 S6 S7 S9 S11 S13 S15 S17 -> CLOSED

[5] Download link:

Here you can download the "SEGA System16B 171-5704 rompack.zip" file with all the files you will need to burn your new romsets:

https://mega.nz/file/ldVwmIzQ#KZWib8kUsGriUw-cjPBRsDua6a17NgLdDWb3z2GXBPs

https://www.mediafire.com/file/kj23e8ifi9uypd9/SEGA_System16B_171-5704_rompack.zip/file




I hope I did not forget anything
smiley36.gif


Any questions just ask! I hope this helps someone!

Enjoy!
smiley1.gif
 

keropi

User
Feedback
8 (100%)
Credits
89CR
glad you like it mates
if anyone spots a mistake tell me so I can fix it

edit:

btw I salvaged a bunch of NON-JEDEC eproms from old SUBSINO slot-machine pcbs that are quite useless. They are so cheap that they also used the left over eproms noone wanted apparently
smiley36.gif


so check your junk pile, you might have a bunch already!

keropi2020-07-03 18:08:21
 

simonden

Active member
vacBacker
Feedback
20 (100%)
Credits
1,041CR
These boards (well at least on the 5797 board) have jumper settings for both JEDEC and Non-JEDEC ROMs. Looking at your jumper settings you have the jumpers set for non-JEDEC. Sadly the jumpers.txt in MAME is not 100% accurate and therefore where the confusion comes in.

I documented the jumper settings here:

http://ukvac.com/forum/eswat-golden-axe-desuicide-conversion_topic344026.html

Hopefully this will also allow you to choose between JEDEC and non-JEDEC ROMs at each location (you can confirm by running a continuity check from jumper to ROM/socket pin).
 

keropi

User
Feedback
8 (100%)
Credits
89CR
@simonden

very interesting! I will check if this applies to 5704 and make corrections, using normal 010 roms is the best solution

thanks for the info!

keropi2020-07-10 10:24:49
 

keropi

User
Feedback
8 (100%)
Credits
89CR
Well this was a short-lived investigation.
The jumpers only exist to select between 1 and 2mbit roms in certain locations.

Half of the locations have A16 tied permanently to pin24 with no jumper at all so they are wired for NON-JEDEC roms. So it seems the original info is valid from 5704 romboard...
 

simonden

Active member
vacBacker
Feedback
20 (100%)
Credits
1,041CR
OK - I have a 5704 board here and I have just partially mapped it.

S1 - OE to Pin24 of ROM0-E, ROM1-E, ROM0-O and ROM1-O (labelled A5-A8 of your picture): Short for JEDEC ROMs - open for Non-JEDEC ROMs

S2 - A16 to Pin24 of ROM0-E, ROM1-E, ROM0-O and ROM1-O (labelled A5-A8 of your picture): Open for JEDEC ROMs - Short for Non-JEDEC ROMs

No jumper found (yet) for pin 2 of these ROMs, maybe because A16 is not used in these locations.

S9 - A16 to Pin24 of ROMs labelled A1-A4 and B1-B13 of your picture: Open for JEDEC ROMs - Short for Non-JEDEC ROMs

S10 - OE to Pin24 of ROMs labelled A1-A4 and B1-B13 of your picture: Short for JEDEC ROMs - Open for Non-JEDEC ROMs

S11 - OE to Pin2 of ROMs labelled A1-A4 and B1-B13 of your picture: Open for JEDEC ROMs - Short for Non-JEDEC ROMs

S12 - A16 to Pin2 of ROMs labelled A1-A4 and B1-B13 of your picture: Short for JEDEC ROMs - Open for Non-JEDEC ROMs

I have started mapping the other jumpers on this board so we can see what jumper is adjusting what size for each ROM (I have a few differing 16b ROM boards here and I eventually expect to map them all).

You need to remove ALL jumpers from the board before mapping otherwise it will appear that certain pins are tied as they flow through the jumper next to it.

EDIT: You may also find that having some of these jumpers set incorrectly will still work on either games that use smaller parts of the ROMs or get issues on later stages.

simonden2020-07-10 12:48:29
 

keropi

User
Feedback
8 (100%)
Credits
89CR
simonden said:
OK - I have a 5704 board here and I have just partially mapped it.

S1 - OE to Pin24 of ROM0-E, ROM1-E, ROM0-O and ROM1-O (labelled A5-A8 of your picture): Short for JEDEC ROMs - open for Non-JEDEC ROMs

S2 - A16 to Pin24 of ROM0-E, ROM1-E, ROM0-O and ROM1-O (labelled A5-A8 of your picture): Open for JEDEC ROMs - Short for Non-JEDEC ROMs

No jumper found (yet) for pin 2 of these ROMs, maybe because A16 is not used in these locations.

this is where I stopped I poked around to find the pin2 jumpers but found nothing ...

I will wait for your complete map then - maybe the info from my original post is wrong - it is mostly based on mame source comments
 

simonden

Active member
vacBacker
Feedback
20 (100%)
Credits
1,041CR
The MAME src comments for SegaSys16b does have issues, especially around the jumpers (see my previous link). Will keep the 5704 on the bench to remind me to continue mapping.

One interesting thing I noticed was that one of the jumpers is to send +5v to pin 30 of some sockets (Pin 28 if a 28 pin EPROM is placed) which would allow the use of 28 pin JEDEC EPROMs such as the 27c512 to be used instead of 27c010/020. Maybe one of the games uses smaller data area in those sockets? But more likely just for MASK ROMs, will look at that too.

Can't remember which Jumper/sockets now, but will map it all out.

simonden2020-07-10 15:49:13
 

simonden

Active member
vacBacker
Feedback
20 (100%)
Credits
1,041CR
OK, I have now mapped all the jumpers on the 5704 board.

The first thing I thought of is that the board accepts 2mbit JEDEC EPROMs at certain locations. And as 1mbit JEDEC EPROMs use the same pinout, it stands to reason that this board must accept 1mbit JEDEC EPROMs controlled by the jumpers.

Some of the ROM locations are hard-wired to Non-JEDEC/MASK which are A5, A7, A11, A12, A14, A15 and A16. A6 and A8 are also hard-wired for Non-JEDEC/MASK at 1mbit however are jumper selectable for JEDEC EPROMs 512kbits and below.

A10 is 28 pin EPROM for a 27(c) 64/128/256/512

A1-A4 and B1-B16 are jumper selectable between JEDEC and Non-JEDEC/MASK however they are all switchable together, which means that you must choose either JEDEC or non-JEDEC in all these locations and cannot mix between the two.

As I mapped the jumpers, I noticed that the jumpers are grouped by their function. I have kept that grouping below.

ROM Select Locations A6 and A8

S1 – Ground to Pin 24 – A6, A8 – Use for 27(C)64/128/256/512

S2 - A16 - to Pin 24 – A6, A8 – Use for 1mbit non-JEDEC EPROMs

All of the games listed that use A6 and A8 have file sizes for 1mbit EPROMs therefore keeping this jumper at S2 for these games is fine. However, it should be noted that this jumper group is not applicable for any games that do not have ROMs at A6/A8 and if any further games are added that use smaller file sizes at A6/A8 then this jumper group should be moved from S2 to S1.

JEDEC vs NON-JEDEC/MASK ROMs at A1-A4 and B1-B13

S9 A16 to Pin 24 A1-A4, B1-B13 Use for NON-JEDEC/MASK ROM

S10 Ground to Pin 24 A1-A4, B1-B13 Use for JEDEC

S11 Ground to Pin 2 A1-A4, B1-B13 Use for NON-JEDEC/MASK ROM

S12 A16 to Pin 2 A1-A4, B1-B13 Use for JEDEC

Jumpers S9 and S11 should be used for Non-JEDEC EPROMs and MASK ROMs at these locations

Jumpers S10 and S12 should be used for JEDEC EPROMs at these locations.

As noted above you should not mix and match JEDEC and Non-JEDEC EPROMs at these locations.

Pin 30 select for B1-B8

S5 A17 to pin 30 B1-B8 (2mbit EPROM B1-B8)

S6 +5v to pin 30 B1-B8 (1mbit MASK ROM/27(C)64/128/256/512)

S19 A19 to pin 30 B1-B8 (2mbit MASK ROM)

1mbit EPROMs (both JEDEC and Non-JEDEC) are not connected at pin 30 and therefore this setting is not applicable for these (although ensure that if you have S5 or S19 connected that you do not have S7 connected).

Address Mapping

S18 Ground to Address Input B of 74LS138N at C10

S17 A18 to Address Input B of 74LS138N at C10

S14 A18 to pin 31 B1-B2 + B5-B6

S13 +5v to pin 31 B1-B2 + B5-B6

S4 Ground to Address Input C of 74LS138N at C10

S3 A17 to Address Input C of 74LS138N at C10

S16 A17 to Address Input A of 74LS138N at C10

S15 A19 to Address Input A of 74LS138N at C10

I have also mapped the 74LS138N at C10. The Address Inputs are as shown above, the enable inputs are correctly tied to H (G1) and L (G2A+G2B). The outputs are connected to the CE Pins of the following locations (with the input truth table next to it in the order of Address Input Pins A/B/C)

Y0 – B1/B5 – L/L/L

Y1 – B2/B6 – H/L/L

Y2 – B3/B7 – L/H/L

Y3 – B4/B8 – H/H/L

Y4 – B10/A1 – L/L/H

Y5 – B11/A2 – H/L/H

Y6 – B12/A3 – L/H/H

Y7 – B13/A4 – H/H/H

I will leave it to someone much cleverer than me to decipher what these should be.

Unknown

S7 +5v to pin 30 B1-B8 (MASK ROM/27(C)64/128/256/512)

S8 Not connected on input or output

S8 does not appear to be connected on the board I am using, this may be an issue with the board or it may be purposeful just as a placeholder to store the jumper header when S7 is not used. As this jumper pin controls pin 30, S7 should be used for 1mbit MASK ROMs or 64-512kbit EPROM at these locations. S8 should be used for all 2mbit ROMs at these locations. This jumper group is not applicable for 1mbit EPROMs (JEDEC or Non-JEDEC) as pin 30 in not connected (although ensure that if you have S5 or S19 connected that you do not have S7 connected).

What does this tell us?

JEDEC EPROMs (1mbit and 2mbit) can be used at locations A1-A4 and B1-B13 by changing jumper S9 to S10 and S11 to S12

Some games have 64KB files for locations A5, A7, A14, A15 and A16. These locations only accept 1mbit Non-JEDEC/MASK ROMs. Using either a 27(C)512 or a 1mbit Non-JEDEC EPROM is likely to cause issues later on in the game. There is an easy workaround/fix. You just need to double up these files and burn them to a 1mbit Non-JEDEC EPROM. To double up the files you just need to open up a DOS prompt/command prompt within the folder the files are stored and type in (example for A14 of Bay Route):

copy opr-12462.a14+opr-12462.a14 doubledfile.a14

You can then just burn the newly created ‘doubledfile.a14’ to the Non-JEDEC 1mbit EPROM

Enjoy

simonden2020-10-18 18:26:26
 

Ace`

PlanB contributor #1
Feedback
37 (100%)
Credits
3,792CR
Lots of invaluable info in this thread, it helped me a lot getting a rom board going again that had been completely stripped and needed every socket replacing, not a fun job but got it going in the end. (y)

I haven't tried it yet but this Fantasy Zone (patched by Apocalypse) should work on 5704 rom boards too, so another to add to the list.
 

Attachments

  • FZ1_roms_16b_Apocalypse-fixed.zip
    247.5 KB · Views: 23
Top