home *** CD-ROM | disk | FTP | other *** search
/ Zodiac Super OZ / MEDIADEPOT.ISO / FILES / 16 / FREEDOS.ZIP / FD_A4PRE.ZIP / SOURCE / MICROC.ZIP / PG.H < prev    next >
Text File  |  1995-04-05  |  2KB  |  71 lines

  1. /*
  2.   pg.h
  3.   
  4.   Header file for pg program
  5.   
  6.   (c) BearHeart
  7.   
  8.   This program is free software; you can redistribute it and/or modify
  9.   it under the terms of the GNU General Public License as published by
  10.   the Free Software Foundation; either version 2 of the License, or
  11.   (at your option) any later version.
  12.  
  13.   This program is distributed in the hope that it will be useful,
  14.   but WITHOUT ANY WARRANTY; without even the implied warranty of
  15.   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  16.   GNU General Public License for more details.
  17.  
  18.   You should have received a copy of the GNU General Public License
  19.   along with this program; if not, write to the Free Software
  20.   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  21.  
  22.   Revision Notes
  23.                   bh 95.02.27  Initial Coding
  24. */
  25.  
  26. #define true (1)
  27. #define false (0)
  28.  
  29. #define byte unsigned char
  30. #define word unsigned int
  31.  
  32. /* video attributes */
  33. #define BLACK   (0x00)
  34. #define BLUE    (0x01)
  35. #define GREEN   (0x02)
  36. #define CYAN    (0x03)
  37. #define RED     (0x04)
  38. #define MAGENTA (0x05)
  39. #define BROWN   (0x06)
  40. #define WHITE   (0x07)
  41. #define BRIGHT  (0x08)
  42. #define BLINK   (0x80)
  43. #define YELLOW  (BROWN | BRIGHT)
  44. #define UNDERLINE (0x01)  /* for MONO only */
  45.  
  46. #define ATTR(fg,bg)  (((bg) << 4) | (fg))
  47.  
  48. /* for use with asm */
  49. #define BIOS_DATA_SEG 40h
  50. #define DISP_MODE     49h      
  51. #define DISP_COLS     4ah
  52. #define DISP_ROWS     84h
  53. #define CURSOR        50h
  54.  
  55. /* for use with c */
  56. #define MONO          (7)
  57.  
  58. #define PG_UP      (0x4900)
  59. #define PG_DN      (0x5100)
  60. #define KEY_HOME   (0x4700)
  61. #define KEY_END    (0x4F00)
  62. #define KEY_UP     (0x4800)
  63. #define KEY_DN     (0x5000)
  64. #define KEY_LT     (0x4B00)
  65. #define KEY_RT     (0x4D00)
  66. #define RETURN     (0x0D)
  67. #define ESC        (0x1B)
  68. #define SPACE      (0x20)
  69. #define BK_SPACE   (0x08)
  70.  
  71.