Bit manipulation software

philmurr

Active member
vacBacker
Feedback
48 (100%)
Credits
2,374CR
I'm currently working on a faulty Scramble board, and have found it has some very simple "encryption" in as much as it swaps some of the address and data lines around on the ROMs presumably to stop direct copying (a bit ironic really as it's a bootleg board).

Does anyone know of any software that does bit maniuplation so I can at least get the code into an unencrypted format?
 

Hurray Banana

Moderator
Staff member
vacBacker
Feedback
8 (100%)
Credits
2,755CR
You can do this in C, C++, C# etc...

I tend to use small c# to do bitwise manipulation projects (such as building rom data for sprites and tiles etc...)

I personally use Visual Studio (the community edition is free) as I'm on Windows

Either C or C# have the standard 4 bitwise operators, not, or, and and xor

Hurray Banana2016-06-02 19:32:52
 

philmurr

Active member
vacBacker
Feedback
48 (100%)
Credits
2,374CR
Thanks Eric - never done anything in C etc. and it's a bit much to learn just for an old bootleg game!

Mike - it's a version of Scramble on hacked Galaxian hardware - I'm not entirely sure why I'm spending time on it and don't just return it to being Galaxian!

PaulSwan said:
Is it an South West Research (SWR) Scramble bootleg on Galaxian? If so, it might be in MAME and thus ROM dump available.

Paul.

Paul - Do you know which ROMset that is? I only have scramblb listed as bootleg on Galaxian hardware, and the code is different from that.

I've tried using ever-faithful Excel to try to decrypt it, and it's worked ok with the data bits but my head hurts after trying to change the address bits around. Someone on here has said they're going to see if they can write something to do what I need so fingers crossed...
 

Judder

Active member
Feedback
2 (100%)
Credits
1,009CR
Have a read of this Phil
smiley4.gif


I used PHP to decode the ECU ROM on my Cerbera (crazy English sports car) which was using a similar kind of substitution encryption

http://www.alexjudd.com/judder/?p=236

Source code

https://github.com/Judder/DIM-Sport-ECU-Key-1010A-Decrypter

HTH

Judder2016-06-03 17:26:02
 

philmurr

Active member
vacBacker
Feedback
48 (100%)
Credits
2,374CR
Thanks Alex - that's a cracking read (nice car too). I'll probably do a bit of experimenting with that in the future, and was all set to go down that route...but then Chad throws in the simplest of ideas...

Thanks Chad - I didn't think of that and doesn't get much simpler. And as the highest address line that gets swapped is A11, it doesn't go over the boundary into one of the other ROMs so is even easier
smiley4.gif
 

Judder

Active member
Feedback
2 (100%)
Credits
1,009CR
Damn that Chad guy - he's always finding the simplest route to do things - damn you Chad!
smiley36.gif


(*and sending me nice presents - thanks again Chad - just plugged it in :) )

Glad you got it sorted Phil, we should do a timed challenge - hardware vs. software - a la Top Gear one day!
 

philmurr

Active member
vacBacker
Feedback
48 (100%)
Credits
2,374CR
That's the one Paul, ROMs all compare
smiley20.gif
Unfortunately the app doesn't work on windows 10 so I'll go down Chad's hardware route to decrypt.

I can't find much info out there about SWR (other than dambusters) and this version of Scramble doesn't look to be in mame any more.

Thanks for your help with this.
 
Top