PC utility to manipulate ROM images

All about the serious stuff.

Moderators: Mug UK, Zorro 2, Moderator Team

Post Reply
tzok
Captain Atari
Captain Atari
Posts: 268
Joined: Fri Jun 30, 2017 7:22 pm
Location: Bielsko-Biala, PL
Contact:

PC utility to manipulate ROM images

Post by tzok »

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
User avatar
mpattonm
Hardware Guru
Hardware Guru
Posts: 629
Joined: Mon Oct 21, 2002 8:52 am
Location: Czech republic
Contact:

Re: PC utility to manipulate ROM images

Post by mpattonm »

Handy tool! Gotta try it .
User avatar
alienkidmj12
Captain Atari
Captain Atari
Posts: 291
Joined: Sat Mar 10, 2012 6:45 pm

Re: PC utility to manipulate ROM images

Post by alienkidmj12 »

how is it ran ?
User avatar
mfro
Atari God
Atari God
Posts: 1011
Joined: Thu Aug 02, 2012 10:33 am
Location: SW Germany

Re: PC utility to manipulate ROM images

Post by mfro »

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
Captain Atari
Captain Atari
Posts: 268
Joined: Fri Jun 30, 2017 7:22 pm
Location: Bielsko-Biala, PL
Contact:

Re: PC utility to manipulate ROM images

Post by tzok »

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?
User avatar
mpattonm
Hardware Guru
Hardware Guru
Posts: 629
Joined: Mon Oct 21, 2002 8:52 am
Location: Czech republic
Contact:

Re: PC utility to manipulate ROM images

Post by mpattonm »

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: 2880
Joined: Tue Aug 17, 2004 12:11 am
Location: ont. Canada
Contact:

Re: PC utility to manipulate ROM images

Post by charles »

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 ...!
spiny
Disk Imager Supreme
Disk Imager Supreme
Posts: 2720
Joined: Mon Aug 11, 2003 11:53 pm
Location: just outside bristol
Contact:

Re: PC utility to manipulate ROM images

Post by spiny »

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: 2880
Joined: Tue Aug 17, 2004 12:11 am
Location: ont. Canada
Contact:

Re: PC utility to manipulate ROM images

Post by charles »

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: 1464
Joined: Sat Apr 24, 2004 5:39 pm
Location: Sweden

Re: PC utility to manipulate ROM images

Post by Greenious »

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!
http://www.atari-forum.com/viewtopic.php?t=5040
tzok
Captain Atari
Captain Atari
Posts: 268
Joined: Fri Jun 30, 2017 7:22 pm
Location: Bielsko-Biala, PL
Contact:

Re: PC utility to manipulate ROM images

Post by tzok »

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.
Post Reply

Return to “Applications”