home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CP/M
/
CPM_CDROM.iso
/
mbug
/
mbug103.arc
/
REL.H
< prev
next >
Wrap
Text File
|
1979-12-31
|
2KB
|
47 lines
/*
** rel.h -- header for REL file processing
*/
/* item-type codes */
#define ABS 0 /* absolute item */
#define PREL 1 /* program (code) relative item */
#define DREL 2 /* data relative item */
#define CREL 3 /* common relative item */
#define ENAME 4 /* entry name */
#define CNAME 5 /* common block name */
#define PNAME 6 /* program name */
#define LNAME 7 /* library name */
#define EXT 8 /* extension link-item */
#define CSIZE 9 /* common size & name */
#define XCHAIN 10 /* external-reference-chain head & name */
#define EPOINT 11 /* entry point location & name */
#define XMOFF 12 /* external - offset */
#define XPOFF 13 /* external + offset */
#define DSIZE 14 /* data area size */
#define SETLC 15 /* set location counter for loading */
#define CHAIN 16 /* chain address (fill chain with loc ctr) */
#define PSIZE 17 /* program (code) size */
#define EPROG 18 /* end of program */
#define EFILE 19 /* end of file */
#define MAXSYM 6 /* maximum symbol length allowed in REL file */
#define ONES -1 /* all one bits */
/* common variables */
extern int
inrel, /* file descriptor for input REL file */
inrem, /* remaining bits in inchunk */
inchunk, /* current chunk from REL file */
outrel, /* file descriptor for output REL file */
outrem, /* remaining bits in outchunk */
outchunk, /* current chunk for REL file */
item, /* current item code */
type, /* type field */
field; /* current bit field */
extern char
symbol[9]; /* current string */