Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!eecae!netnews.upenn.edu!rutgers!bellcore!faline!thumper!ulysses!att!alberta!myrias!cg From: cg@myrias.UUCP (Chris Gray) Newsgroups: comp.sys.amiga Subject: Re: AmigaDOS Hunks (was Re: Lattice C V5.0 #include bug) Keywords: Hunks, loading Message-ID: <927@myrias.UUCP> Date: 6 Mar 89 21:33:58 GMT References: <92203@sun.uucp> <10895@well.UUCP> Distribution: na Organization: Myrias Research Corporation Lines: 21 In article <10895@well.UUCP> ewhac@well.UUCP (Leo 'Bols Ewhac' Schwab) writes: > I've been wondering about this recently. From some experiments I've >been running lately, it seems as though LoadSeg() will only load files that >start with HUNK_HEADER (0x3F3). Is this true? If not, what will LoadSeg() >accept? Are LoadSeg() and the program loader synonymous i.e. will LoadSeg() >properly load and relocate a file that the CLI would otherwise report as not >an object file? I think it may be even more obscure than that. I've been working, off and on over the last few years, on a game system which starts out by using LoadSeg to load some scenario-specific code (written in Draco of course!). Because of the special situation, that code doesn't need to be linked with any normal startup code. LoadSeg kept refusing to load it. I ended up having to have a dummy startup which did a JMP to the actual entry point. The funny thing is that the hack wasn't needed when the scenario code was compiled with my old Draco compiler. If you ever find out the real rules for makeing LoadSeg accept a file, please let me know. -- Chris Gray Myrias Research, Edmonton +1 403 428 1616 {uunet!mnetor,ubc-vision,watmath,vax135}!alberta!myrias!cg