News:

Printed Amstrad Addict magazine announced, check it out here!

Main Menu
avatar_Audronic

Disk file header remover (Wanted)

Started by Audronic, 11:07, 02 June 21

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Audronic

Hi all

Disk file header remover (Wanted)

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

Thanks
Keep Safe
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.

m_dr_m

Haha I used to do that with hackit! (Load + Save ASCII).


I'm curious what the end-goal is, though.

Audronic

@m_dr_m


To remove some headers from some files used to Flash roms.
Keep Safe
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.

m_dr_m

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...).

GUNHED

#4
Quote from: Audronic on 11:07, 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.
http://futureos.de --> Get the revolutionary FutureOS (Update: 2023.11.30)
http://futureos.cpc-live.com/files/LambdaSpeak_RSX_by_TFM.zip --> Get the RSX-ROM for LambdaSpeak :-) (Updated: 2021.12.26)

GUNHED

Quote from: m_dr_m on 13: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!
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.  :) :) :)
http://futureos.de --> Get the revolutionary FutureOS (Update: 2023.11.30)
http://futureos.cpc-live.com/files/LambdaSpeak_RSX_by_TFM.zip --> Get the RSX-ROM for LambdaSpeak :-) (Updated: 2021.12.26)

Ast

Winape or ManageDsk can do that.
_____________________

Ast/iMP4CT. "By the power of Grayskull, i've the power"

http://amstradplus.forumforever.com/index.php
http://impdos.wikidot.com/
http://impdraw.wikidot.com/

All friends are welcome !

Ast

Quote from: Audronic on 11: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


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.
_____________________

Ast/iMP4CT. "By the power of Grayskull, i've the power"

http://amstradplus.forumforever.com/index.php
http://impdos.wikidot.com/
http://impdraw.wikidot.com/

All friends are welcome !

GUNHED

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).
http://futureos.de --> Get the revolutionary FutureOS (Update: 2023.11.30)
http://futureos.cpc-live.com/files/LambdaSpeak_RSX_by_TFM.zip --> Get the RSX-ROM for LambdaSpeak :-) (Updated: 2021.12.26)

Richard_Lloyd

Quote from: Audronic on 11: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/
Copy to PC, open file, delete first 128 bytes, save, copy back to CPC.
Richard
CPC464, CPC6128, PCW8512, PCW10, BSA & NSP

tronic

Quote from: Richard_Lloyd on 21:07, 02 June 21

In Windows (please don't shout at me) I use HxD Hex Editor
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.

Audronic

Quote from: Ast on 15:28, 02 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
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

Quote from: Richard_Lloyd on 21:07, 02 June 21

In Windows (please don't shout at me) I use HxD Hex Editor
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
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

Quote from: Ast on 17:42, 02 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
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

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
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

Quote from: GUNHED on 15:12, 02 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
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

Quote from: m_dr_m on 12:05, 02 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
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.

m_dr_m

Quote from: Audronic on 00:18, 03 June 21are you saying that the |Flash command in FW315/6 will install a Rom File with a Header ?
Yes.

Quote from: Audronic on 02:30, 03 June 21I 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.

m_dr_m

By the way, is it an X-MEM that you have?
Does it happen to use a WinBond chip? (First chip top left).

Audronic

Quote from: m_dr_m on 03: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).
Hi m_dr_m
No they have SST chips ?
Is there a concern ?
Thanks
KeepSafe
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.

m_dr_m

Quote from: Audronic on 04:09, 03 June 21Is there a concern ?
Not a concern. Just use |flash not worrying about the header!

Audronic


@m_dr_m

Thanks I will make up a Lower rom board just for Hackit
Thanks again
KeepSafe
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.

Ast

Quote from: Audronic on 00:18, 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!!!!
_____________________

Ast/iMP4CT. "By the power of Grayskull, i've the power"

http://amstradplus.forumforever.com/index.php
http://impdos.wikidot.com/
http://impdraw.wikidot.com/

All friends are welcome !

Audronic

Quote from: Ast on 06:50, 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
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.

GUNHED

Quote from: Audronic on 00:26, 03 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.  :)


Quote from: Audronic on 00:26, 03 June 21

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.  :) :)
http://futureos.de --> Get the revolutionary FutureOS (Update: 2023.11.30)
http://futureos.cpc-live.com/files/LambdaSpeak_RSX_by_TFM.zip --> Get the RSX-ROM for LambdaSpeak :-) (Updated: 2021.12.26)

Powered by SMFPacks Menu Editor Mod