05 August 2007, 21:19 | #1 |
noodle
Join Date: Jun 2007
Location: europe
Posts: 247
|
Amiga Exe Hunks
hi
I'm searching the hunk for loading exe at an absolute address (with the directive ORG) I tried asmone, devpac, but the directive Org doesnt work. with a68k I get a compilation error thanks |
13 August 2007, 22:44 | #2 |
Moderator
Join Date: Nov 2001
Location: Germany
Posts: 879
|
there is no such hunk.
either an executable is in amigados hunk/object format, then its relocable. or its a binary file without structure, which maybe an exe relocated to any address. with ORG $01234 you can tell the assembler to assemble it for a specific address location. most assembler understand this. you may also some packer to relocate a exe to a fixed address, alternatively you can use tools like 'reloc' from the whdload dev package to do the same |
14 August 2007, 11:54 | #3 |
noodle
Join Date: Jun 2007
Location: europe
Posts: 247
|
ok
what org $xxxx add to the exe ? How the system know where to load at $xxxx without packer reloc ? thanks |
14 August 2007, 22:41 | #4 | |
Moderator
Join Date: Nov 2001
Location: Germany
Posts: 879
|
it adds nothing, instead you will get a completly different file.
without ORG you get a standard hunk format executable with ORG you get a binary image Quote:
|
|
16 August 2007, 00:20 | #5 |
Registered User
Join Date: Aug 2006
Location: Finland
Age: 52
Posts: 244
|
Easiest way is to crunch the saved binary (i.e. program assembled to an absolute address) to a wanted address. There are plenty of crunchers around that support absolute addresses.
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Hunks | BippyM | Coders. General | 42 | 27 May 2022 02:02 |
If WinUAE cannot detect your supposedly empty HDD, look for zap.exe or wipe.exe. | fmcpma | support.WinUAE | 5 | 08 August 2006 00:35 |
AmigaDOS hunks documentation & HUNK_OVERLAY | AmiGer | Coders. General | 2 | 06 February 2004 08:00 |
|
|