English Amiga Board


Go Back   English Amiga Board > Coders > Coders. General

 
 
Thread Tools
Old 05 August 2007, 21:19   #1
heavy
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
heavy is offline  
Old 13 August 2007, 22:44   #2
Wepl
Moderator
 
Wepl's Avatar
 
Join Date: Nov 2001
Location: Germany
Posts: 873
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
Wepl is offline  
Old 14 August 2007, 11:54   #3
heavy
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
heavy is offline  
Old 14 August 2007, 22:41   #4
Wepl
Moderator
 
Wepl's Avatar
 
Join Date: Nov 2001
Location: Germany
Posts: 873
Quote:
Originally Posted by heavy View Post
what org $xxxx add to the exe ?
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:
How the system know where to load at $xxxx without packer reloc ?
amigados cannot run this binary image. you must load and run it yourself
Wepl is offline  
Old 16 August 2007, 00:20   #5
mr.spiv
Registered User
 
mr.spiv's Avatar
 
Join Date: Aug 2006
Location: Finland
Age: 52
Posts: 244
Quote:
Originally Posted by heavy View Post
ok

what org $xxxx add to the exe ? How the system know where to load at $xxxx without packer reloc ?

thanks
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.
mr.spiv is offline  
 


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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.08353 seconds with 13 queries