Author Topic: How do I remove the AmsDOS file Header from a ROM File  (Read 1266 times)

0 Members and 1 Guest are viewing this topic.

Offline Audronic

  • 6128 Plus
  • ******
  • Posts: 1.066
  • Country: au
  • I know RST3 . I now know a little More.
  • Liked: 228
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.

Offline arnoldemu

  • Supporter
  • 6128 Plus
  • *
  • Posts: 5.331
  • Country: gb
    • Unofficial Amstrad WWW Resource
  • Liked: 2236
Re: How do I remove the AmsDOS file Header from a ROM File
« Reply #1 on: 08:35, 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

Offline Audronic

  • 6128 Plus
  • ******
  • Posts: 1.066
  • Country: au
  • I know RST3 . I now know a little More.
  • Liked: 228
Re: How do I remove the AmsDOS file Header from a ROM File
« Reply #2 on: 09: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
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.

Offline Bryce

  • The Hardware Guy.
  • Supporter
  • 6128 Plus
  • *
  • Posts: 10.439
  • Country: wf
  • It's not broken, it just hasn't been fixed yet.
    • index.php?action=treasury
  • Liked: 3611
Re: How do I remove the AmsDOS file Header from a ROM File
« Reply #3 on: 10: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.

Offline CraigsBar

  • Supporter
  • 6128 Plus
  • *
  • Posts: 3.184
  • Country: ie
  • The party ain't over yet
    • index.php?action=treasury
  • Liked: 1117
Re: How do I remove the AmsDOS file Header from a ROM File
« Reply #4 on: 16:21, 07 January 16 »
Or there is a tool that will do it in symbos too.

Offline Bryce

  • The Hardware Guy.
  • Supporter
  • 6128 Plus
  • *
  • Posts: 10.439
  • Country: wf
  • It's not broken, it just hasn't been fixed yet.
    • index.php?action=treasury
  • Liked: 3611
Re: How do I remove the AmsDOS file Header from a ROM File
« Reply #5 on: 17: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.





Offline TFM

  • Visit the mysteries of the CPC at www.futureos.de
  • Supporter
  • 6128 Plus
  • *
  • Posts: 9.899
  • Country: aq
  • Space Chicken for FutureOS is free!
    • index.php?action=treasury
    • FutureOS - The revolution on CPC!
  • Liked: 1975
Re: How do I remove the AmsDOS file Header from a ROM File
« Reply #6 on: 17:59, 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.
« Last Edit: 18:02, 07 January 16 by TFM »
TFM of FutureSoft
Also visit the CPC and Plus users favorite OS: FutureOS - The Revolution on CPC6128 and 6128Plus

Offline Audronic

  • 6128 Plus
  • ******
  • Posts: 1.066
  • Country: au
  • I know RST3 . I now know a little More.
  • Liked: 228
Re: How do I remove the AmsDOS file Header from a ROM File
« Reply #7 on: 00:02, 08 January 16 »
@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.

Offline Audronic

  • 6128 Plus
  • ******
  • Posts: 1.066
  • Country: au
  • I know RST3 . I now know a little More.
  • Liked: 228
Re: How do I remove the AmsDOS file Header from a ROM File
« Reply #8 on: 00:05, 08 January 16 »
@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.

Offline TFM

  • Visit the mysteries of the CPC at www.futureos.de
  • Supporter
  • 6128 Plus
  • *
  • Posts: 9.899
  • Country: aq
  • Space Chicken for FutureOS is free!
    • index.php?action=treasury
    • FutureOS - The revolution on CPC!
  • Liked: 1975
Re: How do I remove the AmsDOS file Header from a ROM File
« Reply #9 on: 19:40, 08 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

Offline Munchausen

  • 6128 Plus
  • ******
  • Posts: 770
  • Country: gb
  • Liked: 208
Re: How do I remove the AmsDOS file Header from a ROM File
« Reply #10 on: 21:09, 08 January 16 »
Or in linux just do

dd if=original_file of=file_without_header skip=128

Offline Audronic

  • 6128 Plus
  • ******
  • Posts: 1.066
  • Country: au
  • I know RST3 . I now know a little More.
  • Liked: 228
Re: How do I remove the AmsDOS file Header from a ROM File
« Reply #11 on: 00:53, 09 January 16 »
@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.

Offline TFM

  • Visit the mysteries of the CPC at www.futureos.de
  • Supporter
  • 6128 Plus
  • *
  • Posts: 9.899
  • Country: aq
  • Space Chicken for FutureOS is free!
    • index.php?action=treasury
    • FutureOS - The revolution on CPC!
  • Liked: 1975
Re: How do I remove the AmsDOS file Header from a ROM File
« Reply #12 on: 00:53, 09 January 16 »
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

Offline AMSDOS

  • Supporter
  • 6128 Plus
  • *
  • Posts: 3.506
  • Country: au
    • index.php?action=treasury
    • Programs for Turbo Pascal 3
  • Liked: 759
Re: How do I remove the AmsDOS file Header from a ROM File
« Reply #13 on: 10: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.
* Using some of the hardly used Amstrad compilers :D
* I use Firmware in my Assembly code :P
* Have interpreted some BASIC 1.1 programs for BASIC 1.0. :)