Author Topic: Disk file header remover (Wanted)  (Read 741 times)

0 Members and 1 Guest are viewing this topic.

Offline Audronic

  • 6128 Plus
  • ******
  • Posts: 1.458
  • Country: au
  • I know RST3 . I now know a little More.
  • Liked: 322
  • Likes Given: 747
Disk file header remover (Wanted)
« 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
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 m_dr_m

  • CPC6128
  • ****
  • Posts: 272
  • Country: se
  • http://orgams.wikidot.com/
    • OrgaMS!
  • Liked: 180
  • Likes Given: 193
Re: Disk file header remover (Wanted)
« Reply #1 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.

Offline Audronic

  • 6128 Plus
  • ******
  • Posts: 1.458
  • Country: au
  • I know RST3 . I now know a little More.
  • Liked: 322
  • Likes Given: 747
Re: Disk file header remover (Wanted)
« Reply #2 on: 15:00, 02 June 21 »
@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.

Offline m_dr_m

  • CPC6128
  • ****
  • Posts: 272
  • Country: se
  • http://orgams.wikidot.com/
    • OrgaMS!
  • Liked: 180
  • Likes Given: 193
Re: Disk file header remover (Wanted)
« Reply #3 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...).

Offline GUNHED

  • 6128 Plus
  • ******
  • Posts: 2.793
  • Country: de
  • Reincarnation of TFM
    • FutureOS - The quickest OS for the CPC and Plus
  • Liked: 1299
  • Likes Given: 3028
Re: Disk file header remover (Wanted)
« Reply #4 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.
« Last Edit: 17:10, 02 June 21 by GUNHED »
http://futureos.de --> Get the revolutionary FutureOS (Update: 2021.01.24)
http://futureos.cpc-live.com/files/LambdaSpeak_RSX_by_TFM.zip --> Get the RSX-ROM for LambdaSpeak :-) (Updated: 2021.07.15)

Offline GUNHED

  • 6128 Plus
  • ******
  • Posts: 2.793
  • Country: de
  • Reincarnation of TFM
    • FutureOS - The quickest OS for the CPC and Plus
  • Liked: 1299
  • Likes Given: 3028
Re: Disk file header remover (Wanted)
« Reply #5 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.  :) :) :)
http://futureos.de --> Get the revolutionary FutureOS (Update: 2021.01.24)
http://futureos.cpc-live.com/files/LambdaSpeak_RSX_by_TFM.zip --> Get the RSX-ROM for LambdaSpeak :-) (Updated: 2021.07.15)

Offline Ast

  • 6128 Plus
  • ******
  • Posts: 1.234
  • Country: fr
    • Amstrad cpc Website of Ast/iMPACT
  • Liked: 1138
  • Likes Given: 802
Re: Disk file header remover (Wanted)
« Reply #6 on: 17:28, 02 June 21 »
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 welcomed !

Offline Ast

  • 6128 Plus
  • ******
  • Posts: 1.234
  • Country: fr
    • Amstrad cpc Website of Ast/iMPACT
  • Liked: 1138
  • Likes Given: 802
Re: Disk file header remover (Wanted)
« Reply #7 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.
_____________________

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

Offline GUNHED

  • 6128 Plus
  • ******
  • Posts: 2.793
  • Country: de
  • Reincarnation of TFM
    • FutureOS - The quickest OS for the CPC and Plus
  • Liked: 1299
  • Likes Given: 3028
Re: Disk file header remover (Wanted)
« Reply #8 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).
http://futureos.de --> Get the revolutionary FutureOS (Update: 2021.01.24)
http://futureos.cpc-live.com/files/LambdaSpeak_RSX_by_TFM.zip --> Get the RSX-ROM for LambdaSpeak :-) (Updated: 2021.07.15)

Offline Richard_Lloyd

  • CPC464
  • **
  • Posts: 25
  • Country: gb
  • CPC464, CPC6128, PCW8512 & PCW10
  • Liked: 7
  • Likes Given: 18
Re: Disk file header remover (Wanted)
« Reply #9 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/
Copy to PC, open file, delete first 128 bytes, save, copy back to CPC.
Richard
CPC464, CPC6128, PCW8512, PCW10, BSA & NSP

Offline tronic

  • CPC464
  • **
  • Posts: 18
  • Liked: 30
  • Likes Given: 10
Re: Disk file header remover (Wanted)
« Reply #10 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/
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.

Offline Audronic

  • 6128 Plus
  • ******
  • Posts: 1.458
  • Country: au
  • I know RST3 . I now know a little More.
  • Liked: 322
  • Likes Given: 747
Re: Disk file header remover (Wanted)
« Reply #11 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
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.458
  • Country: au
  • I know RST3 . I now know a little More.
  • Liked: 322
  • Likes Given: 747
Re: Disk file header remover (Wanted)
« Reply #12 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/
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.

Offline Audronic

  • 6128 Plus
  • ******
  • Posts: 1.458
  • Country: au
  • I know RST3 . I now know a little More.
  • Liked: 322
  • Likes Given: 747
Re: Disk file header remover (Wanted)
« Reply #13 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
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.458
  • Country: au
  • I know RST3 . I now know a little More.
  • Liked: 322
  • Likes Given: 747
Re: Disk file header remover (Wanted)
« Reply #14 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
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.458
  • Country: au
  • I know RST3 . I now know a little More.
  • Liked: 322
  • Likes Given: 747
Re: Disk file header remover (Wanted)
« Reply #15 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
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.458
  • Country: au
  • I know RST3 . I now know a little More.
  • Liked: 322
  • Likes Given: 747
Re: Disk file header remover (Wanted)
« Reply #16 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
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 m_dr_m

  • CPC6128
  • ****
  • Posts: 272
  • Country: se
  • http://orgams.wikidot.com/
    • OrgaMS!
  • Liked: 180
  • Likes Given: 193
Re: Disk file header remover (Wanted)
« Reply #17 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.

Offline m_dr_m

  • CPC6128
  • ****
  • Posts: 272
  • Country: se
  • http://orgams.wikidot.com/
    • OrgaMS!
  • Liked: 180
  • Likes Given: 193
Re: Disk file header remover (Wanted)
« Reply #18 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).

Offline Audronic

  • 6128 Plus
  • ******
  • Posts: 1.458
  • Country: au
  • I know RST3 . I now know a little More.
  • Liked: 322
  • Likes Given: 747
Re: Disk file header remover (Wanted)
« Reply #19 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
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 m_dr_m

  • CPC6128
  • ****
  • Posts: 272
  • Country: se
  • http://orgams.wikidot.com/
    • OrgaMS!
  • Liked: 180
  • Likes Given: 193
Re: Disk file header remover (Wanted)
« Reply #20 on: 07:03, 03 June 21 »
Is there a concern ?
Not a concern. Just use |flash not worrying about the header!

Offline Audronic

  • 6128 Plus
  • ******
  • Posts: 1.458
  • Country: au
  • I know RST3 . I now know a little More.
  • Liked: 322
  • Likes Given: 747
Re: Disk file header remover (Wanted)
« Reply #21 on: 08:15, 03 June 21 »

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

Offline Ast

  • 6128 Plus
  • ******
  • Posts: 1.234
  • Country: fr
    • Amstrad cpc Website of Ast/iMPACT
  • Liked: 1138
  • Likes Given: 802
Re: Disk file header remover (Wanted)
« Reply #22 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!!!!
_____________________

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

Offline Audronic

  • 6128 Plus
  • ******
  • Posts: 1.458
  • Country: au
  • I know RST3 . I now know a little More.
  • Liked: 322
  • Likes Given: 747
Re: Disk file header remover (Wanted)
« Reply #23 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
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 GUNHED

  • 6128 Plus
  • ******
  • Posts: 2.793
  • Country: de
  • Reincarnation of TFM
    • FutureOS - The quickest OS for the CPC and Plus
  • Liked: 1299
  • Likes Given: 3028
Re: Disk file header remover (Wanted)
« Reply #24 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.  :) :)
http://futureos.de --> Get the revolutionary FutureOS (Update: 2021.01.24)
http://futureos.cpc-live.com/files/LambdaSpeak_RSX_by_TFM.zip --> Get the RSX-ROM for LambdaSpeak :-) (Updated: 2021.07.15)