Double Dragon 2 fault

paulcan69

Can reburn OTP EPROMs! Fear my power!
Feedback
11 (100%)
Credits
946CR
Hello,

I got a very cheap Double Dragon 2 bootleg on Arcade Otaku a few days ago, great value, I seem to have a slight fault with it, wondered if anyone could point me to a place to start?

Great bootleg, almost a 1 to 1 copy of the original, worth saving I think, not everyone's cup of tea I know, but here we are....

Level 1 - perfect

Level 2 - perfect

Level 3 - From the first screen of this level as you fight the first 5-7 guys, random character sprites flash over 25% the screen, but anywhere, game still plays spot on.

No other problems other than random heads, legs, arms and the odd piece of background randomly flash over the screen. You can still see what's going on fine and play through it.

Soon as you kill everyone and go a bit further the rest of the game is spot on.

One time it did stick and I couldn't go any further like it forgot to run the code to say "GO" and move on to the next screen.

Level 4 - perfect

?

This always happens in the same place, the first few screens of Level 3?

Any ideas, I shall up a video if anyone is interested.

I've done the obvious, pushed chips down, checked the two ribbon cables etc...

One thing I did notice about this board is that the eproms have no windows (OTP's?)

These are all the original ones, and have never been changed, all have the same silver Mitsubishi stickers on them. (You know the ones, as found on most bootlegs)

If you think it's worth it then I shall pull them one by one, read and compare to mame to see if any have dropped a wee bit of code?

You thoughts good clever people?

Quick side note:- Also chuffed with myself, prog'd a ST-V multibios tonight so now my USA Sega ST-V motherboard can play any region cartridge now
smiley4.gif
I have one more 40 pin chip, @ Andy C if your reading this, what was the name of the one you recommended? I did this one:-
http://home.online.no/~tjaberg/stv/index.htm

Wasn't there another multi bios for me to try, if so what's it called as I couldn't find any info, only ones with a switch, this one has ABCD menu to select bios??



Thanks for reading!
paulcan692010-10-30 09:22:37
 

paulcan69

Can reburn OTP EPROMs! Fear my power!
Feedback
11 (100%)
Credits
946CR
Ok tonight I pulled all 27 eproms from the board (I called them C1-C27 as per the stickers)

Looks like they aren't in mame, d'oh!

This could be a pain, how do you get around this problem, I'm sure (as sure as a novice can be) that the fact it always happens at the same point that it will be a failing eprom.

(Or am I way off?)

Anyway here's the results of romcmp:-

Lastly what can I do to see if the mame team did have these roms and have not used them in mame anymore?

Where can I download the older DD2 roms to check, I know there's a rollback kit you can do, not sure how, I may even have those roms somewhere if anyone can point to how I roll them back.

Thanks people for any ideas,

There are two DD2 roms in mame, ddragon2.zip (world) and ddragon2u.zip (usa) this pic is the romcmp on both:-

dd2romcmp.JPG


Seems that loads of the roms on my bootleg board aren't part of those two sets at all.

I want to fix it as it plays a wee bit faster than an original does, probably half the slowdown which is cool.

Out of 27 roms only 5 are exactly the same, which I why I think this whole version isn't supported.

Ta.

smiley17.gif

paulcan692010-10-22 19:08:16
 

favouredson

Super Star
vacBacker
Credits
1,260CR
The reason a lot of the ROMs don't match anything is that, according to the MAME driver, the sprites, tiles and samples seem to be using 27C010s or similar, whereas your bootleg is probably using 27512s so you need twice as many.

You could split the original ROMs and compare the results with your bootleg dumps.
 

paulcan69

Can reburn OTP EPROMs! Fear my power!
Feedback
11 (100%)
Credits
946CR
Your spot on, this board is covered with 512's

about 4 or 5 - 256's and the rest are 512's

Hmmm interesting, how would I "split" them?

?

Thanks Fav,
 

paulcan69

Can reburn OTP EPROMs! Fear my power!
Feedback
11 (100%)
Credits
946CR
Ah, thanks Ace, I like, call me thick so what do I enter as my sizes?

As aren't old skool roms in bits, so 512 is like 64kb or something???

So if this does work....and I do find that my board has alot of 1024 roms split into 512,

How do I know which ones to split in half to burn my correct roms?

Or will this make sense after I split them and compare to my board, then i'll know which two live together?

Ta
 

favouredson

Super Star
vacBacker
Credits
1,260CR
Divide the ROM name (512 part) by 8 and you have the Kb value for the split files.

So you are right with 64Kb.

Once you split them, compare the CRCs with your bootleg ROMs and see if they match. If they don't match they are not necessarily 'wrong', the bootleggers may have made small changes to the data such as removing/obscuring any mention of Technos etc. Any that do match can be ruled out for now, though.

Edit: I use HJsplit to do my splitting/joining
favouredson2010-10-24 12:37:04
 

paulcan69

Can reburn OTP EPROMs! Fear my power!
Feedback
11 (100%)
Credits
946CR
Thanks bud will give that a try later and see how I get on, I'm around someone else's at the mo and the files are on a desktop pc, thanks Fav
 

paulcan69

Can reburn OTP EPROMs! Fear my power!
Feedback
11 (100%)
Credits
946CR
Damn it, tried the split just now, managed to split all the original roms 1024 roms

into double the amount of 512 roms then ran romcmp, nowhere near any of them, out of 20 files 3 were 5%, 15% and 33% the same, all the others no match at all!

So that's that my plan shat out on me!

Am I screwed?

Can anyone think of anything else to try please?

I tried the game again yesterday, I got to the start of level 3 slight corruption to gfx then it got stuck again so I was stuck in that same screen again?

So it's 50-50 one game it will play through with 25% corruption at the start of level 3 then be ok,

or next game corruption will be 5% at the start of level 3 then it gets stuck on that screen and the game won't continue.

Is it logic probe time? I doubt there is schemes for this one?

Ideas of what you would do next?

Ta

Paul
paulcan692010-10-24 23:44:02
 

favouredson

Super Star
vacBacker
Credits
1,260CR
I have never used romcmp so I don't know how or what it is comparing.

What I would do is put the bootleg dumps and the split originals in a zip file and, as you can have winzip display the CRCs, compare the two sets of files that way.
 

trm

Who loves you, and who do you love?
Feedback
2 (100%)
Credits
2,877CR
The problem with using winzip CRCs to test for ROM matches is that you're relying upon your split/join being 100% perfect as a single bit change will cause a very different CRC value.

I personally suggest romcmp as the way forward as it compares each of the unknown files to all of the other files in your known-good romset zip. This way, if you accidentally merge the wrong files then you'll still get a (close to) 50% match as romcmp will spot that at least half the ROM matches the known good set, even if you've combined or split in the wrong order.

Going back to your romcmp screenshots above, the "27 and 18" reference in the first romcmp is saying that you supplied 27 files in your "unknown" ZIP and there were 18 files in the known-good dump. Of these three matched entirely, a few were partial matches and some weren't found (the fixed bits is almost certainly caused by the prom being only 4 bits wide, so the dumper wrote them out as standard 8 bit bytes and romcmp is warning you that you may have a bad dump as every byte of the ROM has the same 4 bits set low - ignore this).

The second romcmp shows that your known-good file only had two roms in it. This is because it's a child set to the main doubledragon parent, so the romset zip only contains the files needed to turn the parent from World to USA versions (if you look in MAWS at the rom listing, you'll see how the parent/child system works).

From the output above, you have c1 & c6 as 100% matches to the two roms from double dragon 2 USA. As dd2 USA only consists of 2 ROMs, you know that c1 & c6 are 100% copies of the USA specific ROMs. You also have a set of matches to some roms from the World set, but not a complete match. There are two possible reasons to this, both alluded to earlier.

1. The roms were split by the bootleggers. It's clear you have more roms than MAME so you could try combining some, but unless you do something logical like combine adjacent ROMS you're pretty much guessing. If I really wanted to fix this, I'd follow the address decoding circuit and figure out which ROM sockets are logically adjacent to each other in the CPU address space, then combine these pairs to make a single larger ROM from them. This is tricky without schems as you need to a) understand how address decoding works and b) trace/beep it out on the board.

2. The close matches (98% and ~70%) are probably where the bootleggers hacked the ROMs slightly, probably to remove (c) or knock out some gfx or sound fx they didn't include the hardware for.

I don't have time tonight to explain address decoding now (but ISTR writing a semi-legible explanation in another post) but I may have chance tomorrow. Basically, you steal some of the higher CPU address lines and use these to activate the /OE (output enable) line on an EPROM so that it's allowed to talk (aka gated) to the CPU bus. If you know that e.g. A15 is wired to /OE on ROM1, you can address ROM1 by setting bit 15 in the address, then setting the lower address lines to the actual address inside the ROM you want to read. This is much more understandable in binary, but basically to read the first byte out of ROM1 in this system, the address you'd ask the CPU to request would be:

bit 15 bit 0
1000 0000 0000 0000

To read the second byte out of ROM1 you'd address

bit 15 bit 0
1000 0000 0000 0001

To read the third byte out of ROM1 you'd address

bit 15 bit 0
1000 0000 0000 0010

As you can see, bit 15 is ignored by the system but runs from address line 15 on the CPU to the /OE pin on ROM1. Using the same system you could address ROM2 by wiring bit 14 to /OE on ROM2, thus addressing the first byte of ROM2 by accessing

bit 15 bit 0
0100 0000 0000 0000

See how bit 14 is now high? This is a bit of an over simplification as rarely do you take the address lines direct to /OE on the roms - you'd use a demultiplexor (ls159 for example) so you could address lots of roms. Hopefully this gives you a bit of a hint and there may be some info available via google (also read http://en.wikipedia.org/wiki/Address_decoder)

Good luck ;)
 

favouredson

Super Star
vacBacker
Credits
1,260CR
trmatthe said:
The problem with using winzip CRCs to test for ROM matches is that you're relying upon your split/join being 100% perfect as a single bit change will cause a very different CRC value.

At least it's a starting point.
smiley17.gif


If you get a few matches you should be able to work out how the files have been split without spending hours going over address decoding etc...
 

paulcan69

Can reburn OTP EPROMs! Fear my power!
Feedback
11 (100%)
Credits
946CR
WOW, that blew me away, maybe in a year or two some of that will make sense
smiley5.gif
smiley36.gif


Thanks Tim, that does make a wee bit of sense the more I re-read it.

Thanks Fav, I did compare the CRC's in winrar and they are mega different.

Well I'm stuck now, if the roms were the same I'd look at the mame code look at which handled sprites/characters and have a shoutgun blast with swapping a few roms for fresh prog'd copies which may cure my fault, then playtest each rom swap.

Looks like I can't do that with the lack of my roms on the net.

The way it always happens in the exact same place means to me (well to my dumb a*s) that it must be a dropped piece of code (like a eprom which is failing)

It's not just a bootleg fault as it's waaaayyyyy tooooooo crazy for that, even the bootleggers would have said, "Hold on a mo, we can't sell it like that!"

Next I'm gonna spend a bit of time going over the board very closely to see if I have a bad socket on one of the eproms causing 1 leg maybe to have a bad contact?

Clutching at straws really?

Thanks all,

Paul
 

trm

Who loves you, and who do you love?
Feedback
2 (100%)
Credits
2,877CR
Hi dude,

Glad to see that tenacity is a strong point, but I'd probably be tempted to put this to one side and save it for a bit later on. There are so many variants (and there are plenty of boots which don't play properly) that I think there are too many variables in play.

It looks like I'm about to get some free time this weekend, so I'll finish the video probe article which is so temptingly close to done and maybe write about address decoding if I can find some good schems to nick images from.

So don't chuck it away, but put it on the to-be pile
smiley36.gif
.

cheers
tim
 

paulcan69

Can reburn OTP EPROMs! Fear my power!
Feedback
11 (100%)
Credits
946CR
Yeah that's what I was thinking, "to-do" pile.

You never know may come across someone else with this board and be able to throw some light onto it!

Video probe would be great as I think this is going to be my best tool.
 
Top