home *** CD-ROM | disk | FTP | other *** search
- /*-----------------------------------------------------------------------------
- * FILE IDENTIFICATION
- *
- * Name: crt_disk.h
- * Use: Special header file for Public Domain crt_disk routines
- * Programmer: Kevin Rosenberg
- * Address: 2515 E. 16th St
- * Newport Beach, CA 92663
- *
- *---------------------------------------------------------------------------*/
-
- #undef LATTICE
- #define LATTICE
-
- #define TRUE 1
- #define FALSE 0
-
- #define INTERNAL_FUNC static
-
- #define ERR_WARNING 0
- #define ERR_SEVERE 1
- #define ERR_FATAL 2
-
- #define CFLAG_8086 0x0001 /* 8086 carry flag position */
-
- /*----------------------------------------------------------------------*/
-
- /* codes for open command */
-
- #ifdef LATTICE
- #define OPEN_RDONLY 0x8000 /* Lattice codes for binary i/o */
- #define OPEN_WRONLY 0x8001
- #define OPEN_RDWR 0x8002
- #else
- #define OPEN_RDONLY 0 /* other system use standard codes */
- #define OPEN_WRONLY 1 /* for binary */
- #define OPEN_RDWR 2
- #endif
-
- /*----------------------------------------------------------------------*/
-
- /* crt modes */
-
- #define GM_TEXT40 0
- #define GM_TEXT80 2
- #define GM_320x200 4
- #define GM_640x200 6
- #define GM_MONOTEXT 7
- #define GM_E320x200 13
- #define GM_E640x200 14
- #define GM_MONOGRF 15
- #define GM_ENHANCED 16
-
- #define GM_TEXT -1
- #define GM_HIGHRES -2
- #define GM_MEDRES -3
-
- #define CRT_MONO 0
- #define CRT_COLOR 1
- #define CRT_ENHANCED 2