Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: ROMs question  (Read 2997 times)

0 Members and 1 Guest are viewing this topic.

shilmover

  • Trade Count: (+5)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 533
  • Last login:September 25, 2018, 12:36:59 am
ROMs question
« on: February 02, 2009, 01:58:18 pm »
Does anyone know how I can modify an existing ROM?  I have a Ms Pac Man cab that I would like to make minor changes to the ROM.  I can test it in MAME, but I dont know how the ROMs are put together, configured, etc...
My projects...

Finished:  Stargate (only 'cause I got it that way)
In progress:  Tron, 48-in-1 for School Auction, DKJr (currently a 60-in-1), Millipede, MAME System

Level42

  • Wiki Contributor
  • Trade Count: (+5)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5965
  • Last login:November 13, 2018, 01:56:39 am
  • A Suzo stick is a joy forever...
Re: ROMs question
« Reply #1 on: February 02, 2009, 02:33:01 pm »
You need a hex editor for that.

There are plenty of free hex editors around.

For the Mac, there's 0xED (http://www.apple.com/downloads/macosx/development_tools/0xed.html) or
HexFiend (http://ridiculousfish.com/hexfiend/)

for the PC, I suggest HexEdit (http://www.physics.ohio-state.edu/~prewett/hexedit/)

Basically you load the ROM file, with the hex-editor you can see every byte of that rom file, usually both in hexadecimal and decimal value ("readable"). Now you can change at will, but you will have to know what you're doing. You may be able to find texts in the files (like (C)Namco) and change that. Or the names of the ghosts f.i.

However, some games may use checksums to see if the contents of the ROM is correct. If so, the checksum of the data won't be correct if you changed it. Depending on how the checksum is calculated and where it is stored you'd need to correct that. I'm not sure if the early games used any checksums but I think newer games might well do.

When you made your changes, save the file under a different name.
Make a new folder with the new rom files (and the old one's if there are no changes). Change the names back to what they were originally (the names that MAME expects) and try it in MAME. If it works, it should also work on the real board I guess. Than all you need to do is burn the modified files to a (new) EPROM.
« Last Edit: February 02, 2009, 02:36:45 pm by Level42 »

shilmover

  • Trade Count: (+5)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 533
  • Last login:September 25, 2018, 12:36:59 am
Re: ROMs question
« Reply #2 on: February 02, 2009, 02:43:53 pm »
I got that far, but its not working...  for example, I tried to change PAC to CAP.
My projects...

Finished:  Stargate (only 'cause I got it that way)
In progress:  Tron, 48-in-1 for School Auction, DKJr (currently a 60-in-1), Millipede, MAME System

Level42

  • Wiki Contributor
  • Trade Count: (+5)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5965
  • Last login:November 13, 2018, 01:56:39 am
  • A Suzo stick is a joy forever...
Re: ROMs question
« Reply #3 on: February 02, 2009, 02:47:15 pm »
Then it must be the checksum thing I guess....


O wait, doesn't MAME check the ROMs ?

Level42

  • Wiki Contributor
  • Trade Count: (+5)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5965
  • Last login:November 13, 2018, 01:56:39 am
  • A Suzo stick is a joy forever...
Re: ROMs question
« Reply #4 on: February 02, 2009, 02:54:32 pm »
How about this:

http://home.kabelfoon.nl/~msilvius/down/pacname5.zip


(Found it here:
http://home.kabelfoon.nl/~msilvius/sillyarcade.htm

scroll down a bit to - PACMAN/MSPACMAN NAMES PATCHES -

Here's the readme file: http://home.kabelfoon.nl/~msilvius/down/readme5.txt

Whadayaknow, it's a fellow Dutchman who made this :D

Just reading the readme and it says you can even replace some graphics ! and I also was right about the checksum thing....
« Last Edit: February 02, 2009, 03:02:36 pm by Level42 »

Blanka

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2248
  • Last login:January 25, 2018, 03:19:28 pm
Re: ROMs question
« Reply #5 on: February 02, 2009, 04:54:56 pm »
Sta je ook op de Retro Computerdag 42?
From which game is Level 42 btw? From Chuckie Egg? Lemmings? Boulderdash?

Ginsu Victim

  • Yeah, owning a MAME cab only leads to owning real ones. MAME just isn't good enough. It's a gateway drug.
  • Trade Count: (+10)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 10092
  • Last login:April 06, 2025, 01:44:14 am
  • Comanche, OK -- USA
Re: ROMs question
« Reply #6 on: February 02, 2009, 04:59:36 pm »
42 is the answer.

Blanka

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2248
  • Last login:January 25, 2018, 03:19:28 pm
Re: ROMs question
« Reply #7 on: February 02, 2009, 05:05:25 pm »
Or are you referring to seventies hippie music?

Ginsu Victim

  • Yeah, owning a MAME cab only leads to owning real ones. MAME just isn't good enough. It's a gateway drug.
  • Trade Count: (+10)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 10092
  • Last login:April 06, 2025, 01:44:14 am
  • Comanche, OK -- USA
Re: ROMs question
« Reply #8 on: February 02, 2009, 05:12:37 pm »
Uhhhhhhh.....no, but now you've got my interest.

It was a Douglas Adams reference.

Level42

  • Wiki Contributor
  • Trade Count: (+5)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5965
  • Last login:November 13, 2018, 01:56:39 am
  • A Suzo stick is a joy forever...
Re: ROMs question
« Reply #9 on: February 02, 2009, 05:40:56 pm »
Or are you referring to seventies hippie music?

Hippies ? 70's ?? No, it's 80's and jazz-funk !

One of their corniest pictures for sure.....

although this one is pretty corny too (Cambridge, UK, oct. 2006):



Go check out Level 42 live in Holland very soon:
http://www.level42.com/?page_id=91

O and yes it is very likely that I will be at the Retrocomputerdag with one of my cabs. I've been there since the last three years...

http://forum.arcadecontrols.com/index.php?topic=71621.0

Back on topic please :)
« Last Edit: February 02, 2009, 05:46:13 pm by Level42 »

Blanka

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2248
  • Last login:January 25, 2018, 03:19:28 pm
Re: ROMs question
« Reply #10 on: February 03, 2009, 06:57:44 am »
Go check out Level 42 live in Holland very soon:
http://www.level42.com/?page_id=91

LOL, they their visitors are OLD now. It's all seated theaters  :laugh2:
It's a shame I know, that I don't remember them. I grew up with Europe and Van Halen, so they are about from the same time? When I saw that picture I posted, my only guess could be seventies.  :afro:

Level42

  • Wiki Contributor
  • Trade Count: (+5)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5965
  • Last login:November 13, 2018, 01:56:39 am
  • A Suzo stick is a joy forever...
Re: ROMs question
« Reply #11 on: February 03, 2009, 07:09:39 am »
OK since Barry didn't report his results with the little program I suggested just yet, I will reply completely off-topic:

I HATE seated theaters for rock concerts !!!!!!!!!!  It's actually one of the reasons I still haven't got a ticket yet.....

Last gig I went to was 's Hertogenbosch (seated at a balcony for crying out loud.....) and it just doesn't do it for me.

Gigs should NOT be in seated venues.

The picture I put up was taken outside the Corn Exchange after the gig. It was seated (well they had put in those small fold-out chairs in there) but from the start to the end everybody was up on their legs.....thank God.....

When Mark King returned to the stages in the late 90's, he did (amongst others) a really small venue in London called the Jazz cafe. Absolutely no seats there and the stage was about 75 cm high. Was standing right in front of Mark (if I'd reached out, I could have played a couple of notes on his bass :D)  That, combined with a hardcore fan's set-list brought me the ultimate L42 gig, and I already told my wife then that it would never be like that again....I think that was around the turn of the millenium IIRC.
« Last Edit: February 03, 2009, 07:12:01 am by Level42 »

shilmover

  • Trade Count: (+5)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 533
  • Last login:September 25, 2018, 12:36:59 am
Re: ROMs question
« Reply #12 on: February 03, 2009, 09:06:45 am »
WOW...  How Off Topic would this thread possible get?!?  It went past the topic by 30 years... backwards!  :)

<BackOnTopic>

That gave me a bit of info, but I still dont understand how the ROMs are put together so I can try them in MAME.  Anyone know of any docs to explain this?  Where does MAME get the game info when it start up?  How does it know which ROMs to load, in what order, what names?

Thanks
My projects...

Finished:  Stargate (only 'cause I got it that way)
In progress:  Tron, 48-in-1 for School Auction, DKJr (currently a 60-in-1), Millipede, MAME System

RayB

  • I'm not wearing pants! HA!
  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 11279
  • Last login:February 25, 2025, 08:29:42 pm
  • There's my post
    • RayB.com
Re: ROMs question
« Reply #13 on: February 03, 2009, 11:24:36 am »
That gave me a bit of info, but I still dont understand how the ROMs are put together so I can try them in MAME.  Anyone know of any docs to explain this?  Where does MAME get the game info when it start up?  How does it know which ROMs to load, in what order, what names?

Thanks
Uhhhhh, it's not magic. MAME is (drum roll) programmed to "know".
NO MORE!!

shilmover

  • Trade Count: (+5)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 533
  • Last login:September 25, 2018, 12:36:59 am
Re: ROMs question
« Reply #14 on: February 03, 2009, 11:33:02 am »
That gave me a bit of info, but I still dont understand how the ROMs are put together so I can try them in MAME.  Anyone know of any docs to explain this?  Where does MAME get the game info when it start up?  How does it know which ROMs to load, in what order, what names?

Thanks
Uhhhhh, it's not magic. MAME is (drum roll) programmed to "know".


LOL  I understand that, but if I wanted to create my own custom ROM in MAME...  How would i go about doing it?
My projects...

Finished:  Stargate (only 'cause I got it that way)
In progress:  Tron, 48-in-1 for School Auction, DKJr (currently a 60-in-1), Millipede, MAME System

Level42

  • Wiki Contributor
  • Trade Count: (+5)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5965
  • Last login:November 13, 2018, 01:56:39 am
  • A Suzo stick is a joy forever...
Re: ROMs question
« Reply #15 on: February 03, 2009, 12:08:44 pm »
Uhm, so did that little program I suggested didn't work ?


shilmover

  • Trade Count: (+5)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 533
  • Last login:September 25, 2018, 12:36:59 am
Re: ROMs question
« Reply #16 on: February 03, 2009, 12:10:46 pm »
nope.  ROMs are missing or I am doing something wrong.
My projects...

Finished:  Stargate (only 'cause I got it that way)
In progress:  Tron, 48-in-1 for School Auction, DKJr (currently a 60-in-1), Millipede, MAME System

RayB

  • I'm not wearing pants! HA!
  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 11279
  • Last login:February 25, 2025, 08:29:42 pm
  • There's my post
    • RayB.com
Re: ROMs question
« Reply #17 on: February 03, 2009, 03:19:37 pm »
LOL  I understand that, but if I wanted to create my own custom ROM in MAME...  How would i go about doing it?
Custom from the ground up? You'd have to first choose what chipsets you're going to base it on. For example, the combination of chips that make up the Ms Pac Man hardware. Then you'd have to learn how this hardware works, such as what memory banks graphics are stored, how the sprite system (if any) draws the graphics, where game code is located, what registers are used for input, what registers are used for sounds, etc. Then you'd need an assembly language editor to program some game logic (you could also program in straight machine language with a hex editor, but that's more difficult than using a compiler). You'd have to somehow disable or circumvent any part of the hardware that does anti-piracy checks (your code won't match that that custom chip will be looking for, therefore you need to change or stop it). etc, etc, etc.........
NO MORE!!