23 November 2008, 11:45 | #1 |
Registered User
Join Date: Oct 2008
Location: EU
Posts: 163
|
LoadSeg / Relocate to fixed address?
Hello there,
how could I get a ready amiga-exe with one code-hunk relocated to a certain fixed address which I specify, not to run it there right away (would use a cruncher for that) but to grab the data and incbin it in a new amiga-exe which then later will copy it to the fixed address (together with other blocks of memory to other addresses) and run it at a later time. Goal is to create onefile-versions (with no return to AmigaOS). Any suggestions? |
23 November 2008, 12:05 | #2 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,505
|
There is executable relocator written in assembly in winuae's filesystem loader (filesys.asm)
(I guess there are better solutions but at least this is better than nothing..) |
23 November 2008, 15:55 | #3 |
Registered User
Join Date: May 2004
Location: Somewhere secret
Age: 50
Posts: 364
|
You could also use some relocator tool, does hunkwiz do this? I know the RSI cruncher "Double Action" has this feature, I've used it before (you can relocate an exe without crunching, don't worry)...
|
23 November 2008, 17:35 | #4 |
Registered User
Join Date: Oct 2008
Location: EU
Posts: 163
|
Thanks a lot for quick help.
HunkWiz looks promising, DoubleAction as well, and filesys.asm will help me understanding what's going on. |
23 November 2008, 18:35 | #5 |
Registered User
Join Date: Mar 2008
Location: Poland
Posts: 159
|
Does "reloc" from the WHDLoad package do the job for you?
I use it to generate binary images of exe files to put at specified address in the Minimig bootloader rom. |
24 November 2008, 16:16 | #6 |
Registered User
Join Date: Jun 2008
Location: somewhere else
Posts: 511
|
There would also be an old tool used back in the days to one part games which was called "relokit".
|
24 November 2008, 16:39 | #7 |
Registered User
Join Date: Oct 2008
Location: EU
Posts: 163
|
Thanks for suggestions, turns out that HunkWiz is what I need, got it from a Beermon V0.46c distribution.
DoubleAction works but later crashes in my A4000/040 setup in WinUAE, relokit crashes as well, already during its own unpacking, did no further testing. reloc from WHDLoad works but as far as I saw expects addr in decimal format (or did I miss something?), need hex format. |
24 November 2008, 17:35 | #8 |
Registered User
Join Date: Mar 2008
Location: Poland
Posts: 159
|
Reloc accepts hex values. You must prefix them with $.
For more details see the docs: http://www.whdload.de/docs/en/reloc.html |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
DevPac and Absolute Address | h0ffman | Coders. General | 2 | 14 January 2011 15:32 |
Sensible Soccer Intl Ed - address error | gingerbeardman | project.WHDLoad | 8 | 31 May 2010 13:12 |
NAT address | -Rob- | support.Other | 7 | 07 April 2008 00:06 |
loadseg help | BippyM | Coders. General | 4 | 16 April 2007 13:35 |
|
|