CPCWiki forum

General Category => Technical Support - Software related => Topic started by: Audronic on 04:40, 07 January 16

Title: How do I remove the AmsDOS file Header from a ROM File
Post by: Audronic on 04:40, 07 January 16
How do I remove the AmsDOS file Header from a ROM File
Is there a utility to do this Please..
I want to get the Checksum from a range of files.
Thanks    Ray
Title: Re: How do I remove the AmsDOS file Header from a ROM File
Post by: arnoldemu on 07:35, 07 January 16
Quote from: Audronic on 04:40, 07 January 16
How do I remove the AmsDOS file Header from a ROM File
Is there a utility to do this Please..
I want to get the Checksum from a range of files.
Thanks    Ray
addhead -r filename

Unofficial Amstrad WWW Resource (http://www.cpctech.org.uk/download/addhead.zip)

If you need a windows version build it with visual studio community edition :)
Title: Re: How do I remove the AmsDOS file Header from a ROM File
Post by: Audronic on 08:15, 07 January 16
Thanks for the Link.


I don't know how to create the file, Is it for the Amstrad or ????


Thanks     Ray
Title: Re: How do I remove the AmsDOS file Header from a ROM File
Post by: Bryce on 09:41, 07 January 16
If you have a Hex editor, just remove the rows of bytes before the line that starts with &80 and re-save the file.

Bryce.
Title: Re: How do I remove the AmsDOS file Header from a ROM File
Post by: CraigsBar on 15:21, 07 January 16
Or there is a tool that will do it in symbos too.
Title: Re: How do I remove the AmsDOS file Header from a ROM File
Post by: Bryce on 16:36, 07 January 16
Here's a picture to explain it a bit better:
The highlighted bytes need to be removed. In almost all cases, the raw ROM image should start with a &01 at the first address, which as you can see, will be found at address &80 if the file has an AMSDOS header.

Bryce.




Title: Re: How do I remove the AmsDOS file Header from a ROM File
Post by: TFM on 16:59, 07 January 16
Quote from: Audronic on 04:40, 07 January 16
How do I remove the AmsDOS file Header from a ROM File
Is there a utility to do this Please..
I want to get the Checksum from a range of files.
Thanks    Ray

On CPC side I would load it with FutureOS to address &0000 (Load to main memory). Then save it from address &0000 with file size &0010 (this is 16 KB, or file size 00016 when using decimal numbers).

Just load and save quick and easy.  :)


EDIT: You also can save a ROM directly using ROManager 2.14, it will be 16 KB header-less.
Title: Re: How do I remove the AmsDOS file Header from a ROM File
Post by: Audronic on 23:02, 07 January 16
@TFM (http://www.cpcwiki.eu/forum/index.php?action=profile;u=179)


Thanks I ended up using ROMAN Version 1 as this does a dump without header


Thanks to all who contributed


Ray
Title: Re: How do I remove the AmsDOS file Header from a ROM File
Post by: Audronic on 23:05, 07 January 16
@Bryce (http://www.cpcwiki.eu/forum/index.php?action=profile;u=225)


Thanks i tried a few using that method, which worked.
I then used ROMAN Version 1 that will read the Roms installed and dump them to a 16K File


Thanks     Ray
Title: Re: How do I remove the AmsDOS file Header from a ROM File
Post by: TFM on 18:40, 08 January 16
Quote from: Audronic on 23:02, 07 January 16
@TFM (http://www.cpcwiki.eu/forum/index.php?action=profile;u=179)
Thanks I ended up using ROMAN Version 1 as this does a dump without header


Uuutsch! That just kicked my balls!  :laugh: :picard:
Title: Re: How do I remove the AmsDOS file Header from a ROM File
Post by: Munchausen on 20:09, 08 January 16
Or in linux just do

dd if=original_file of=file_without_header skip=128
Title: Re: How do I remove the AmsDOS file Header from a ROM File
Post by: Audronic on 23:53, 08 January 16
@TFM (http://www.cpcwiki.eu/forum/index.php?action=profile;u=179)


Oooopps,,, Nothing personal.

Roman Version 1 was already installed in the MegaFlash Plus SX.


Ray
Title: Re: How do I remove the AmsDOS file Header from a ROM File
Post by: TFM on 23:53, 08 January 16
Haha, just kidding! Glad you found a quick way!  :)
Title: Re: How do I remove the AmsDOS file Header from a ROM File
Post by: AMSDOS on 09:03, 30 January 16
Suspect this has long been sorted and I haven't had the need to create a ROM file, but a program like Lara can handle Loading Binary Files & Saving COM Files, which would remove the Headers & I think Lara can Save COM files anywhere in Memory & not just from 100h.


With Lara though, it was good to End Program just clear the BASIC from Memory and then go back into it & the program runs in the extra 64k when 128Kb is detected.
Powered by SMFPacks Menu Editor Mod