home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Interactive Guide
/
c-cplusplus-interactive-guide.iso
/
c_ref
/
csource4
/
210_01
/
xb.h
< prev
Wrap
Text File
|
1979-12-31
|
1KB
|
37 lines
/* xb.h--header file for cxb.c and rxb.c
Copyright 7/85 N.T.Carnevale.
Permission granted for nonprofit use only.
See my article in the July/August 1986 issue of
Micro/Systems Journal pp.72-85.
*/
#define TRUE 1
#define FALSE 0
#define boolean int
/* handy constants */
#define SIG "xbios installed$"
#define SIGLNTH 16 /* how many characters in the signature string */
/* useful structures */
struct xbhdr { /* replica of xbios module header */
char jump, /* 0xc3 */
*oldbdos, /* entry to bdos */
otbloffset, /* how far from vstart to the
start of the local copy of the
old jump table */
jmpnum, /* how many jumps in the table */
reserved[11], /* unused at present */
signature[SIGLNTH], /* the signature string */
vstart; /* 1st char of version string */
};
struct cpmhdr { /* replica of the first few bytes in cpm */
char jump1, /* 0xc3 */
*wboot, /* address of the jmp wboot in bios table */
whatnot, /* user etc */
drive, /* logged drive */
jump2, /* another 0xc3 */
*bdosloc; /* entry to bdos */
};