PC utility to manipulate ROM images

All about the serious stuff.

Moderators: Mug UK, Zorro 2, Moderator Team

tzok
Obsessive compulsive Atari behavior
Obsessive compulsive Atari behavior
Posts: 120
Joined: Fri Jun 30, 2017 7:22 pm
Location: Bielsko-Biala, PL
Contact:

PC utility to manipulate ROM images

Postby tzok » Wed Dec 26, 2018 11:29 pm

I don't know where to put it on the forum, but I've done a small .NET utility, which I've called CartMan. It can be used to split 16-bit image into two (L/H E/O) 8-bit ROMs (and vice versa), do a byteswap in 16-bit ROM image, and "stack" multiple ROMs into one ROM image. So it may be used to split TOS images to EPROMs, to create a switchable TOS EPROM, or a multi ROM Cartridge (either wits two 8-bit EPROMs or with a 16-bit EPROM).

You may find this little utility here:
https://github.com/TzOk83/CartMan

mpattonm
Hardware Guru
Hardware Guru
Posts: 401
Joined: Mon Oct 21, 2002 8:52 am
Location: Czech republic
Contact:

Re: PC utility to manipulate ROM images

Postby mpattonm » Thu Dec 27, 2018 7:49 am

Handy tool! Gotta try it .

User avatar
alienkidmj12
Captain Atari
Captain Atari
Posts: 235
Joined: Sat Mar 10, 2012 6:45 pm

Re: PC utility to manipulate ROM images

Postby alienkidmj12 » Thu Dec 27, 2018 8:31 am

how is it ran ?

User avatar
mfro
Atari Super Hero
Atari Super Hero
Posts: 799
Joined: Thu Aug 02, 2012 10:33 am
Location: SW Germany

Re: PC utility to manipulate ROM images

Postby mfro » Thu Dec 27, 2018 8:52 am

don't want to retard your enthusiasm, but all this already can be done out of the box with a combination of m68k-atari-mint-objcopy (comes with the gcc compiler toolchain) and dd (comes with every Linux distribution or MiNT).

tzok
Obsessive compulsive Atari behavior
Obsessive compulsive Atari behavior
Posts: 120
Joined: Fri Jun 30, 2017 7:22 pm
Location: Bielsko-Biala, PL
Contact:

Re: PC utility to manipulate ROM images

Postby tzok » Thu Dec 27, 2018 2:05 pm

Only file required to run the program is the cartman.exe in /CartMan/bin/Release directory.

mfro wrote:all this already can be done out of the box with a combination of m68k-atari-mint-objcopy (comes with the gcc compiler toolchain) and dd (comes with every Linux distribution or MiNT).
Of course, but does it have a GUI?

mpattonm
Hardware Guru
Hardware Guru
Posts: 401
Joined: Mon Oct 21, 2002 8:52 am
Location: Czech republic
Contact:

Re: PC utility to manipulate ROM images

Postby mpattonm » Thu Dec 27, 2018 5:04 pm

mfro wrote:don't want to retard your enthusiasm, but all this already can be done out of the box with a combination of m68k-atari-mint-objcopy (comes with the gcc compiler toolchain) and dd (comes with every Linux distribution or MiNT).

Well I use hex editor on Windows machine to do all this (WinHex), but one-click utility would save me a lot of time. I am glad someone made one.

User avatar
charles
10 GOTO 10
10 GOTO 10
Posts: 2476
Joined: Tue Aug 17, 2004 12:11 am
Location: ont. Canada
Contact:

Re: PC utility to manipulate ROM images

Postby charles » Fri Dec 28, 2018 12:03 am

would the ability to "rip" a section and save to its own file ever be implemented....???

I did some coding ages ago ,it accessed my rom image "disk a " within steem and well you can see where this is going
it wrote over some of the boot sector making the disk img unreadable....... ive salvaged sections with a text editor but its very time consuming ....
The radioactive half-life : )
Atari is a lifestyle,not a hobby.
HOLD ON ! ! ! Im printing unreadable characters ...!

User avatar
spiny
Disk Imager Supreme
Disk Imager Supreme
Posts: 2584
Joined: Mon Aug 11, 2003 11:53 pm
Location: just outside bristol
Contact:

Re: PC utility to manipulate ROM images

Postby spiny » Fri Dec 28, 2018 3:40 pm

charles wrote:would the ability to "rip" a section and save to its own file ever be implemented....???

I did some coding ages ago ,it accessed my rom image "disk a " within steem and well you can see where this is going
it wrote over some of the boot sector making the disk img unreadable....... ive salvaged sections with a text editor but its very time consuming ....


ROMs are not disk images.

User avatar
charles
10 GOTO 10
10 GOTO 10
Posts: 2476
Joined: Tue Aug 17, 2004 12:11 am
Location: ont. Canada
Contact:

Re: PC utility to manipulate ROM images

Postby charles » Fri Dec 28, 2018 3:50 pm

I see....
but this program has ability to alter pure 'raw' data?????

physically, is a image not just a image, which ever data it contains?
The radioactive half-life : )
Atari is a lifestyle,not a hobby.
HOLD ON ! ! ! Im printing unreadable characters ...!

User avatar
Greenious
Hardware Guru
Hardware Guru
Posts: 1439
Joined: Sat Apr 24, 2004 5:39 pm
Location: Sweden

Re: PC utility to manipulate ROM images

Postby Greenious » Fri Dec 28, 2018 4:26 pm

tzok wrote:Only file required to run the program is the cartman.exe in /CartMan/bin/Release directory.

mfro wrote:all this already can be done out of the box with a combination of m68k-atari-mint-objcopy (comes with the gcc compiler toolchain) and dd (comes with every Linux distribution or MiNT).
Of course, but does it have a GUI?


Everything that simplifies things are welcome additions... :wink:

Now, if I may make a suggestion, it would be handy if your tool also could convert between .stc and .rom. (steem emulator cartridge format)...
Updated my guides as of june 28th, 2016. Check'em out and feedback!
viewtopic.php?t=5040

tzok
Obsessive compulsive Atari behavior
Obsessive compulsive Atari behavior
Posts: 120
Joined: Fri Jun 30, 2017 7:22 pm
Location: Bielsko-Biala, PL
Contact:

Re: PC utility to manipulate ROM images

Postby tzok » Fri Dec 28, 2018 7:44 pm

I think it should be only a case of adding/removing a few first bytes.

Unfortunately there are two possible sets of "magic" 4 bytes used to distinguish between 2 types of cartridges:
$ABCDEF42 - application cartridge
$FA52235F - diagnostic cartridge

STeEM's STC image has this 4 bytes set to 0x00, so there is no way to distinguish the right type of cartridge.


Social Media

     

Return to “Applications”

Who is online

Users browsing this forum: No registered users and 3 guests