View Full Version : EXE headers
Does anyone know how to recreate an EXE out of a decrunched one. I mean the ones that were crunched with addresses remap, like Bytekiller 1.3 or Tetrapack 2.2.
Take any BK13, xfddecrunch it and that's where I'd like to know how to make an launchable EXE out of it.
section fast, code_c
movem.l d0-a6, -(a7)
lea data, a0
lea dataEnd, a1
lea $40000, a2
move.b (a0)+, (a2)+
movem.l (a7)+, d0-a6
however.. it'll only work if the object you compile it to is loaded into fastmem.. if it's loaded into chipmem (or whichever region of memory you want to block-transfer the data to..) it'll end up overwriting itself.
amiga's o/s won't load an .exe object into an absolute address as far as i know?
basically xfddecrunch can try to recreate an executable file out of an absolute decrunch file.
extract from xfddecrunch doc :
With files that are crunched with an absolute address
cruncher, you have two additional options: LINKSIMPLE
and LINKPRO. The first one links a quite simple header
to the decrunched data that simply copies the file to
the required location and executes it. The second
header is more complex. It tries to allocate the wanted
memory area and works with overlays thus not needing
any memory at all before allocating the desired area.
This is absolutely system-friendly and should work
thanks to the both of you :). I'll try to use this !.
vBulletin® v3.7.0, Copyright ©2000-2013, Jelsoft Enterprises Ltd.