Category : C Source Code
Archive   : MNDL.ZIP
Filename : MNDLDEFN.H

 
Output of file : MNDLDEFN.H contained in archive : MNDL.ZIP
#define TRUE 0xff
#define FALSE 0

#define ENABLE 0x0F
#define INDEXREG 0X3CE
#define VALREG 0X3CF
#define EGABASE 0XA0000000L
#define WIDTH 80L
#define XORIT 0x80
#define ORIT 0x00
#define SXMIN 0
#define SYMIN 0

#define SROW 19
#define TATT 0
#define GRFPG 0
#define TXTPG 1

#define ESC 0x1b
#define HOME 71
#define CUP 72
#define PGUP 73
#define CLEFT 75
#define CRIGHT 77
#define END 79
#define CDOWN 80
#define PGDN 81

#define MREAD TRUE
#define MWRITE FALSE

#define sign(x) ((x) > 0 ? 1 : ((x) == 0 ? 0 : (-1)))
#define MAX(a,b) (((a) > (b)) ? (a) : (b))
#define MIN(a,b) (((a) < (b)) ? (a) : (b))

#ifdef __TURBOC__
#define inp(portid) inportb(portid)
#define outp(portid,v) outportb(portid,v)
#else
#define M_PI 3.14159265358979224
#endif

#define OUTINDEX(index, val) {outp(INDEXREG, index); outp(VALREG, val);}
#define TOG(x) ((x) = ((x) ? FALSE : TRUE ));
#define RND() ((float)rand())/0x7fff
#define SETTXT OUTINDEX(1, 0); OUTINDEX(8, TRUE);
#define SETGRF OUTINDEX(1, ENABLE); OUTINDEX(0, color);

#ifdef __TURBOC__
typedef char huge * PHFDAT;
#else
typedef char far * PHFDAT;
#endif

typedef struct {
int mode, xmax, ymax, color;
} SCRNDAT;

typedef struct {
int sx, sy;
PHFDAT t, p;
double xscl, yscl, clrfac, xtest, ytest;
double x0, y0, x1, y1;
} CLCSV;



  3 Responses to “Category : C Source Code
Archive   : MNDL.ZIP
Filename : MNDLDEFN.H

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/