CPCWiki forum

General Category => Applications => Topic started by: Audronic on 13:07, 02 June 21

Title: Disk file header remover (Wanted)
Post by: Audronic on 13:07, 02 June 21
Hi all

Disk file header remover (Wanted)

I have tried to find it in Future OS but gave up

Thanks
Keep Safe
Ray
Title: Re: Disk file header remover (Wanted)
Post by: m_dr_m on 14:05, 02 June 21
Haha I used to do that with hackit! (Load + Save ASCII).


I'm curious what the end-goal is, though.
Title: Re: Disk file header remover (Wanted)
Post by: Audronic on 15:00, 02 June 21
@m_dr_m (https://www.cpcwiki.eu/forum/index.php?action=profile;u=3015)


To remove some headers from some files used to Flash roms.
Keep Safe
Ray
Title: Re: Disk file header remover (Wanted)
Post by: m_dr_m on 15:49, 02 June 21
In my book, the ROM flasher tool should handle both "amsdos binaries" and headerless files.
Most do, by the way.
File manipulation is a smell!


For emergencies, http://www.symbos.de/appinfo.htm?00041 seems very nice (wildcards, neat log...).
Title: Re: Disk file header remover (Wanted)
Post by: GUNHED on 17:05, 02 June 21
Disk file header remover (Wanted)

I have tried to find it in FutureOS but gave up

You already got it started with the right OS ;) :) :)
Now how to do it?

Let's assume you got a 17 KB file on your disc, and it's called "IMPDOS.ROM". This file has an header.
Now we remove the header the following way...

1. Put the disc in, tag the drive icon, click at the DIR icon (if DIR doesn't show up anyway).

2. Mark / tag the file you want to free from the header

3. Press "L" for LOAD or click at the LOAD icon
4. Press option "1" to load the file at address &0000

5. Now click at the SAVE icon or press "S"
6. Press option "3" to save from first 64 KB

7. Enter the name of your new 16 KB ROM (use capital letters)
8. As source address enter &0000
9. As source RAM enter &C0 (or you can enter &00 too)
10. Finally enter &0010 as file-length in KB (hexadezimal &0010 ist 16 KB in dezimal). Hit Return

Now, your new 16 KB ROM (headerless) is saved on disc.


If you don't like HEX numbers you can of course change them to dezimal in the configuration.
Title: Re: Disk file header remover (Wanted)
Post by: GUNHED on 17:12, 02 June 21
In my book, the ROM flasher tool should handle both "amsdos binaries" and headerless files.
Most do, by the way.
File manipulation is a smell!
The most easy way is to use ROManager 2.37 for FutureOS. It works with and without headers and can handle any kind of ROM expansion.  :) :) :)


Of course it's even by far more easy if you have already something up and working.  :) :) :)
Title: Re: Disk file header remover (Wanted)
Post by: Ast on 17:28, 02 June 21
Winape or ManageDsk can do that.
Title: Re: Disk file header remover (Wanted)
Post by: Ast on 19:42, 02 June 21
Hi all

Disk file header remover (Wanted)

I have tried to find it in Future OS but gave up

Thanks
Keep Safe
Ray


It is not necessary to remove the header to install properly a file rom on your x-mem. (Only on winape!)
All your rom files must have a header, that’s important.
Title: Re: Disk file header remover (Wanted)
Post by: GUNHED on 23:03, 02 June 21
Having a header on a ROM is a waste of space. Not that much on 3", but on 3,5" big hormats, it's a waste of 1/4 space (16 KB become 20 KB due to 4 KB block size).
Title: Re: Disk file header remover (Wanted)
Post by: Richard_Lloyd on 23:07, 02 June 21
Hi all

Disk file header remover (Wanted)

I have tried to find it in Future OS but gave up

Thanks
Keep Safe
Ray


In Windows (please don't shout at me) I use HxD Hex Editor
https://mh-nexus.de/en/hxd/ (https://mh-nexus.de/en/hxd/)
Copy to PC, open file, delete first 128 bytes, save, copy back to CPC.
Title: Re: Disk file header remover (Wanted)
Post by: tronic on 23:50, 02 June 21

In Windows (please don't shout at me) I use HxD Hex Editor
https://mh-nexus.de/en/hxd/ (https://mh-nexus.de/en/hxd/)
Copy to PC, open file, delete first 128 bytes, save, copy back to CPC.

True and always have such hex-tool on hand.
You can even do it online there : https://hexed.it/
Drag'n'drop any file with amsdos header in the browser, select and delete the 128 / #80 first bytes, then export.
In less than few seconds.
Title: Re: Disk file header remover (Wanted)
Post by: Audronic on 02:11, 03 June 21
Winape or ManageDsk can do that.
Hi David
Is manageDSK a CPC Program ?
I would like to do it on a CPC
Thanks
Keep Safe
Ray
Title: Re: Disk file header remover (Wanted)
Post by: Audronic on 02:16, 03 June 21

In Windows (please don't shout at me) I use HxD Hex Editor
https://mh-nexus.de/en/hxd/ (https://mh-nexus.de/en/hxd/)
Copy to PC, open file, delete first 128 bytes, save, copy back to CPC.
Hi Richard
Thats what I use BUT it is clunky, do it on PC, Transfer to usb, use on a Pc CPCDiskXP etc etc
I wanted something to do it on a CPC.
Thanks for the thought
Keep Safe
Ray
Title: Re: Disk file header remover (Wanted)
Post by: Audronic on 02:18, 03 June 21

It is not necessary to remove the header to install properly a file rom on your x-mem. (Only on winape!)
All your rom files must have a header, that’s important.
Hi David
are you saying that the |Flash command in FW315/6 will install a Rom File with a Header ?
Thanks
Keep Safe
Ray
Title: Re: Disk file header remover (Wanted)
Post by: Audronic on 02:22, 03 June 21
Hi All


Is there a Stand alone Program that is like a hex editor for the CPC
That can be used to remove the first 128 Bytes and write the file to Disk. Please
Thanks
Keep Safe
Ray
Title: Re: Disk file header remover (Wanted)
Post by: Audronic on 02:26, 03 June 21
The most easy way is to use ROManager 2.37 for FutureOS. It works with and without headers and can handle any kind of ROM expansion.  :) :) :)
Of course it's even by far more easy if you have already something up and working.  :) :) :)
Thanks for the thought.
I have problems working with Future OS (My Problem Not yours)
would you ever have created a stand alone program to remove the header (NOT associated with Future OS) ?
Thanks
Keep Safe
Ray
Title: Re: Disk file header remover (Wanted)
Post by: Audronic on 04:30, 03 June 21
Haha I used to do that with hackit! (Load + Save ASCII).
Hi m_dr_m

I have the rom, what slot do I install it to ?
If its a Lower Rom I have a lowerRom board
Thanks
Keep Safe
Ray
Title: Re: Disk file header remover (Wanted)
Post by: m_dr_m on 04:54, 03 June 21
are you saying that the |Flash command in FW315/6 will install a Rom File with a Header ?
Yes.

I have the rom, what slot do I install it to ?
Anyone you like (1 to 15) then |Hackit. If you install it as ROM 0 it will take control at reset, which can be both convenient and inconvenient.
Title: Re: Disk file header remover (Wanted)
Post by: m_dr_m on 05:05, 03 June 21
By the way, is it an X-MEM that you have?
Does it happen to use a WinBond chip? (First chip top left).
Title: Re: Disk file header remover (Wanted)
Post by: Audronic on 06:09, 03 June 21
By the way, is it an X-MEM that you have?
Does it happen to use a WinBond chip? (First chip top left).
Hi m_dr_m
No they have SST chips ?
Is there a concern ?
Thanks
KeepSafe
Ray
Title: Re: Disk file header remover (Wanted)
Post by: m_dr_m on 07:03, 03 June 21
Is there a concern ?
Not a concern. Just use |flash not worrying about the header!
Title: Re: Disk file header remover (Wanted)
Post by: Audronic on 08:15, 03 June 21

@m_dr_m (https://www.cpcwiki.eu/forum/index.php?action=profile;u=3015)

Thanks I will make up a Lower rom board just for Hackit
Thanks again
KeepSafe
Ray
Title: Re: Disk file header remover (Wanted)
Post by: Ast on 08:50, 03 June 21
Hi David
are you saying that the |Flash command in FW315/6 will install a Rom File with a Header ?
Thanks
Keep Safe
Ray
Absolutely ! Same thing for Roman.
For those who think that the file is intalled on the rom board with the header, you are totally wrong!!!!
Title: Re: Disk file header remover (Wanted)
Post by: Audronic on 09:15, 03 June 21
Absolutely ! Same thing for Roman.
For those who think that the file is intalled on the rom board with the header, you are totally wrong!!!!
Hi David
Ok Thanks for the clarification
I have been misinformed (Elsewhere)


Thanks
Keep Safe
Ray
Title: Re: Disk file header remover (Wanted)
Post by: GUNHED on 18:54, 07 June 21
Thanks for the thought.
I have problems working with FutureOS (My Problem Not yours)
Your problems are mine regarding FutureOS.  :)  Any kind of critics or suggestions are welcome.  :)  Just let me know how I can make things better.  :)



Would you ever have created a stand alone program to remove the header (NOT associated with FutureOS) ?
Actually a good idea. Some tool to deal with headers of files. I will put this on my "To Do List".  :)  Thanks for the idea.  :) :)