English Amiga Board


Go Back   English Amiga Board > Coders > Coders. System

 
 
Thread Tools
Old 25 June 2015, 06:34   #1
kiasanth
 
Posts: n/a
Question Amiga Hunk Loadfile Format: HUNK_RELOC32

I've been writing a cross assembler to assemble amiga executables on other systems so I've been researching the HUNK format.

Everything is going perfectly except when I came to the HUNK_RELOC32 section, it seems to be generating data that none of my documentation mentions. From the best Docs I've found the Reloc32 hunk should be like this:

0000 03EC : HUNK_RELOC32
NNNN NNNN: Number of Offsets
TTTT TTTT: The target Hunk that the offsets will point to
XXXX XXXX: List of Offsets (one for each of NNNN NNNN)

And that's it, I've assembled a simple program in both Devpac 2.15 and AsmOne 1.20 (OS1.3 Version) and the RELOC32 Hunk is this in both:

0000 03EC : HUNK_RELOC32
0000 0001 : Only One Offset
0000 0000 : Target is Hunk 0 (The current Hunk)
0000 0008 : The One Offset to relocate
0000 0001 : ??? No Idea
0000 0001 : ???
0000 0032 : ???
0000 0000 : ???
0000 03F2 : HUNK_END

My question is: Am I interpreting something wrong? What are these extra 4 Long Words?

Any Help Would Be Greatly Appreciated.

Thanks
 
Old 25 June 2015, 07:00   #2
PeterK
Registered User
 
Join Date: Apr 2005
Location: digital hell, Germany, after 1984, but worse
Posts: 3,365
Try these tools:

http://aminet.net/package/dev/misc/Hunk
http://aminet.net/package/util/misc/ChunKit
http://aminet.net/package/dev/moni/HunkFunc
http://aminet.net/package/dev/misc/HunkGuide
http://aminet.net/package/dev/gg/dumphunks-bin
PeterK is offline  
Old 25 June 2015, 09:38   #3
Leffmann
 
Join Date: Jul 2008
Location: Sweden
Posts: 2,269
It's just another relocation entry for the associated hunk: 1 offset, hunk 1, at offset $32, and the zero at the end is how you terminate the list of relocations.
Leffmann is offline  
Old 25 June 2015, 11:58   #4
kiasanth
 
Posts: n/a
@PeterK: Thankyou SO MUCH, HunkGuide Solved the problem in less than a minute.

@Leffmann: Thanks, that's what the HunkGuide told me, the online documents never said there could be more than one offset table.
 
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Input: Bad loadfile hunk Turran project.ClassicWB 0 23 November 2013 11:33
A1200 theme park hd install bad loadfile hunk Cabbit support.Games 5 20 January 2012 14:48
Bad Loadfile Hunk - A1200 & 1mb SRAM fastmem BrooksterMax project.WHDLoad 2 09 October 2009 17:20
Bad LoadFile Hunk amiga support.Apps 4 26 June 2008 02:31
Bad Loadfile Hunk while starting a WHDLoad installed game dkovacs support.Apps 0 28 May 2005 00:13

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 18:36.

Top

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