English Amiga Board

English Amiga Board (https://eab.abime.net/index.php)
-   Coders. General (https://eab.abime.net/forumdisplay.php?f=37)
-   -   xfd... (https://eab.abime.net/showthread.php?t=28333)

Muerto 03 March 2007 20:15

xfd...
 
Hello all..
Im trying to help a friend...

Quote:

Originally Posted by asle
Hi all,

I need help once and for all. I'm fed-up of not understanding the doc files of the tools on Amiga. That's been going for a _very_ long time :nuts
Here's today's tool : xfddecrunchaddr
Code:

        xfdDecrunchAddr SOURCE/A,DEST=TO,HEADER/N,ADDHEAD/S,DECRADDR,
JMPADDR,STCO=STORECOMMENT/S

I'm trying to add a header to a file which I know _must_ have three chunks. Anyway, the "explanation" goes like this :
Code:

ADDHEAD forces xfdDecrunchAddr to do nothing except adding one
of above headers. For headers 3 and 4 you need to specify DECRADDR
and JMPADDR. If no JMPADDR is given, xfdDecrunchAddr uses the
DECRADDR instead for JumpIn as well.

and the "above" header are those :
Code:

0 - No header is linked.
1 - Only the executable hunk information is linked. This is useful
    when the executable program is completely relocatable and thus
    needs not to be forced to a certain memory region.
2 - Only the executable hunk information is linked, but this
    contains one additional BSS hunk.
3 - The xfdDecrunch 1.08 simple header is linked.
4 - The xfdDecrunch 1.08 professional header is linked.
11- This is like 1, but the header overwrites file start and end.
12- This is like 2, but the header overwrites file start and end.
13- This is like 12, but has an additional empty RELOC hunk.

the file being called 'test', I tried these :
xfddecrunchaddr test ADDHEAD/4 DECRADDR=bc4 JMPADDR=92d2
xfddecrunchaddr test ADDHEAD/4,bc4,92d2
and variants. nothing worked and produced no error message.

Any help/advice, here, would be more than welcome !.
Thanks
Sylvain


Frog 04 March 2007 01:27

well i do a quick try, the following command works :
CLI>xfddecrunchaddr demo.exe newdemo.exe addhead=4 decraddr=3b000 jmpaddr=3B000
As mention, it simply add an header to the file demo.exe but didn't decrunch it.

i suggest to try xfddecrunch and use :
CLI>xfddecrunch demo.exe newdemo.exe LP
this time demo is decrunch and an header is add to the data file making it executable, xfddecrunch automatically add correct adress.
I guess it's what Sylvain want ?

Asle 04 March 2007 03:34

ahah .. will try that. Thanks, Muerto, for asking here :).

Sylvain


All times are GMT +2. The time now is 21:03.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.

Page generated in 0.04467 seconds with 11 queries