Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: Notesfiles $Revision: 1.6.2.17 $; site uok.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!ihnp4!inuxc!pur-ee!uiucdcs!uok!mpackard From: mpackard@uok.UUCP Newsgroups: net.micro.cpm Subject: Re: .REL Format Message-ID: <4800007@uok.UUCP> Date: Mon, 31-Dec-84 17:39:00 EST Article-I.D.: uok.4800007 Posted: Mon Dec 31 17:39:00 1984 Date-Received: Mon, 14-Jan-85 01:35:40 EST Lines: 55 Nf-ID: #N:uok:4800007:000:1841 Nf-From: uok!mpackard Dec 31 16:39:00 1984 [] This is the format for .REL files: These files are bit-streams rather than byte-streams. ---------------------------------------------------------------------- | 1 | XX | XXXX | XX XXXXXXXXXXXXXXXX | XXX+CHARACTERS OF SYMBOL NAME| ---------------------------------------------------------------------- ^ ^ ^ ^ ^ | | | | | Always 1 | | | | | A Field B Field | | Chars are 8 Bit ASCII 00 - special link (see below) 01 - program relative 10 - data relative 11 - common relative | | Control Field: The following special link items have a B field only 0 - Entry Symbol (name for search) 1 - Select COMMON block 2 - Program name 3 - Request library search 4 - Reserved The following special link items have both an A field and B field 5 - Define COMMON size 6 - Chain external (A is head of address chain, B is name of external 7 - Define entry point (A is address B is name) 8 - External offset. Used for JMP and CALL to externals The following special link items have an A field only 9 - External + offset. The A value will be added to the two bytes starting at the current location counter immediately before execution. 10 - Define the size of the Data area. (A is the size) 11 - Set the loading location counter to A 12 - Chain address. A is the head of chain, replace all entries in chain with current location counter. The last entry in the chain has an address field of absolute zero. 13 - Define program size 14 - End of program (forces to byte boundary) The following special link item has neither an A nor a B field 15 - End File