BK_DELAY.OBJ bk_delay Delay with optional key_press break --------------------------------------------------- void bk_delay(unsigned int msec); CHK_EXT.OBJ chk_ext Checks filename for extension, and adds it if not present ------------------------------------------------------------------------- void chk_ext(char *filename, char *ext); CTRLC.OBJ Ctrl-C disabling routines -------------------------- void ctrlc_dis(void); void ctrlc_ena(void); int ctrlc, ctrls, ctrlq Flags set if Ctrl-C, Ctrl-S or Ctrl-Q pressed Useful for terminal programs CURSOR.OBJ Text cursor hide/show routines ------------------------------ void hidecur(void); void showcur(void); DIRWR.OBJ Writes a character or string directly to video memory ----------------------------------------------------- void dirwr(int char, int col, int row, int attr); void dirstr(int col, int row, char *string); EDGETS.OBJ Improved gets()-routine with editing ------------------------------------ int edgets(char *s, int maxlen, int mk_upper); ENDIAN.OBJ Writes/Reads 16/32 bit values using little endian ordering ---------------------------------------------------------- int read16bit(FILE *f); long read32bit(FILE *f); void write16bit(FILE *f, int data); void write32bit(FILE *f, unsigned long data); GETOPT.OBJ UNIX-style command line option parser ------------------------------------- int getopt(int argc, char **argv, char *optionS); extern char *optarg; extern int opterr; extern int optind; GET_PAR.OBJ get_par Generic routine for input of a parameter value with limit/error checking. Doesn't return until value is valid, or an empty string is entered. int get_par(int x, int y, char *prompt, char *errtxt, int *val, int low_limit, int high_limit, int nr_digits, int show_curr_val, int disp_add); HEXORINT.OBJ hexorint Detects if a string denotes a hex or decimal number by detecting a leading "0X" or trailing "H". ----------------------------------------------------------------------- long hexorint(char *s); MKBRK.OBJ Make/Break routines, installs in INT09 -------------------------------------- void init_mkbrk(void); void exit_mkbrk(void); unsigned char get_mkbrk_code(void); MYMEM.OBJ Dos_Malloc Standard DOS memory allocate routine returns a far pointer on success, or NULL on error -------------------------------------------------- void far *dos_malloc(unsigned long len); Custom/optimized memory routines -------------------------------- align_mem Aligns data on given boundary for speed ------------------------------------------------------- void far *align_mem(void far *p, unsigned aval); _fmemcpy386 386/486/Pentium optimized fmemcpy routine --------------------------------------------------------- void _fmemcpy386(char far *dest, char far *src, unsigned len); VSYNC.OBJ vsync Waits for vertical blank ---------------------------------------- void vsync(void); YESNO.OBJ yesno Returns 1 if "Y" key pressed, 0 if "N" ------------------------------------------------------- int yesno(void); .