home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Game Programming Gurus / Tricks_of_the_Game_Programming_Gurus_SAMS_Publishing_1994.iso / digipak / theaudio / flat / doscalls.h < prev    next >
C/C++ Source or Header  |  1993-12-31  |  2KB  |  42 lines

  1. //* This is the C prototype header file for DOSCALLS.  This provides
  2. //* the minimal DOS dependent interface for flatmodel programs into
  3. //* DOS.    The primary support needed is the ability to allocate and
  4. //* de-allocate memory in the low 1mb of address space.
  5. /*                                                                                                                                                     */
  6. /*        Written by John W. Ratcliff (c) 1994                                                                     */
  7. /*             Compuserve: 70253,3237                                                                                          */
  8. /*             Genie: J.RATCLIFF3                                                                                                  */
  9. /*             BBS: 1-314-939-0200                                                                                                 */
  10. /*             Addresss:                                                                                                                     */
  11. /*                     747 Napa Lane                                                                                                     */
  12. /*                     St. Charles, MO 63304                                                                                     */
  13. /*                                                                                                                                                     */
  14. extern char * cdecl AllocLowMem(long int size,short *selector); // Allocate low memory.
  15. extern void cdecl FreeLowMem(short selector); // Free allocated memory.
  16. extern char * cdecl RealPtr(char *real); // Convert flat model address to segment:offset
  17. extern void cdecl memorymove(char *dest,char *source,long int length);
  18.  
  19. #define BLACK 0
  20. #define BLUE 1
  21. #define GREEN 2
  22. #define CYAN 3
  23. #define RED 4
  24. #define MAGENTA 5
  25. #define BROWN 6
  26. #define GRAY 7
  27. #define GREY 7
  28. #define DARK_GREY 8
  29. #define DARK_GRAY 8
  30. #define LIGHT_BLUE 9
  31. #define LIGHT_GREEN 10
  32. #define LIGHT_CYAN 11
  33. #define LIGHT_RED 12
  34. #define LIGHT_MAGENTA 13
  35. #define YELLOW 14
  36. #define WHITE 15
  37.  
  38. #define BEHIND << 4 |
  39.  
  40. extern void cdecl tprint(int x,int y,int len,char *string,int color);
  41. extern void cdecl TextCursor(int xloc,int yloc);
  42.