avatar_Audronic

How do I remove the AmsDOS file Header from a ROM File

Started by Audronic, 04:40, 07 January 16

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Audronic

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
Procrastinators Unite,
If it Ain't Broke PLEASE Don't Fix it.
I keep telling you I am Not Pedantic.
As I Live " Down Under " I Take my Gravity Tablets and Wear my Magnetic Boots to Keep me from Falling off.

arnoldemu

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

If you need a windows version build it with visual studio community edition :)
My games. My Games
My website with coding examples: Unofficial Amstrad WWW Resource

Audronic

Thanks for the Link.


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


Thanks     Ray
Procrastinators Unite,
If it Ain't Broke PLEASE Don't Fix it.
I keep telling you I am Not Pedantic.
As I Live " Down Under " I Take my Gravity Tablets and Wear my Magnetic Boots to Keep me from Falling off.

Bryce

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.

CraigsBar

Or there is a tool that will do it in symbos too.
IRC:  #Retro4All on Freenode

Bryce

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.





TFM

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.
TFM of FutureSoft
Also visit the CPC and Plus users favorite OS: FutureOS - The Revolution on CPC6128 and 6128Plus

Audronic

@TFM


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


Thanks to all who contributed


Ray
Procrastinators Unite,
If it Ain't Broke PLEASE Don't Fix it.
I keep telling you I am Not Pedantic.
As I Live " Down Under " I Take my Gravity Tablets and Wear my Magnetic Boots to Keep me from Falling off.

Audronic

@Bryce


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
Procrastinators Unite,
If it Ain't Broke PLEASE Don't Fix it.
I keep telling you I am Not Pedantic.
As I Live " Down Under " I Take my Gravity Tablets and Wear my Magnetic Boots to Keep me from Falling off.

TFM

Quote from: Audronic on 23:02, 07 January 16
@TFM
Thanks I ended up using ROMAN Version 1 as this does a dump without header


Uuutsch! That just kicked my balls!  :laugh: :picard:
TFM of FutureSoft
Also visit the CPC and Plus users favorite OS: FutureOS - The Revolution on CPC6128 and 6128Plus

Munchausen

Or in linux just do

dd if=original_file of=file_without_header skip=128

Audronic

@TFM


Oooopps,,, Nothing personal.

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


Ray
Procrastinators Unite,
If it Ain't Broke PLEASE Don't Fix it.
I keep telling you I am Not Pedantic.
As I Live " Down Under " I Take my Gravity Tablets and Wear my Magnetic Boots to Keep me from Falling off.

TFM

Haha, just kidding! Glad you found a quick way!  :)
TFM of FutureSoft
Also visit the CPC and Plus users favorite OS: FutureOS - The Revolution on CPC6128 and 6128Plus

AMSDOS

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.
* Using the old Amstrad Languages :D   * with the Firmware :P
* I also like to problem solve code in BASIC :)   * And type-in Type-Ins! :D

Home Computing Weekly Programs
Popular Computing Weekly Programs
Your Computer Programs
Updated Other Program Links on Profile Page (Update April 16/15 phew!)
Programs for Turbo Pascal 3

Powered by SMFPacks Menu Editor Mod