home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / PROG / DJGPP / DJDOC106.ZIP / DOCS / LIBPC.DOC < prev    next >
Encoding:
Text File  |  1991-03-06  |  1.5 KB  |  59 lines

  1. /* History:59,1 */
  2. This is file libpc.doc
  3.  
  4. Contents:
  5.  
  6. * modules present in libpc.a
  7.  
  8.  
  9.  
  10.  
  11. Features:
  12.  
  13. All libpc.a features are prototyped in the include file <pc.h>.
  14.  
  15. I/O instructions:
  16.  
  17. libpc.a includes the full range of PC I/O instructions:
  18.   inportb - byte
  19.   inportw - word
  20.   inportl - long
  21.   inportsb - string versions (rep insb)
  22.   inportsw
  23.   inportsl
  24.   outportb
  25.   outportw
  26.   outportl
  27.   outportsb
  28.   outportsw
  29.   outportsl
  30.  
  31. kbhit() returns 1 if a key has been hit. (except CTRL-C, which go32 traps)
  32.  
  33. getkey() gets one key from BIOS int 16h function 0.
  34.  
  35. sound(f) sets the internal sound generator to frequency f (in Hz).
  36.   Setting the sound to zero shuts it off.
  37.  
  38. Screen module:
  39.  
  40. ScreenPrimary[] is an array corresponding to the primary display.  Thus,
  41.   "ScreenPrimary[0] = 'X' | 0x0600;" puts a brown 'X' at the upper left
  42.   corner of the current screen.
  43. ScreenSecondary[] is the other screen (mono if the current is color, or
  44.   visa versa).  If only one screen is available, they both map to
  45.   the same screen.
  46.  
  47. Note that go32 remaps the screen memory so that the "primary" screen
  48. always looks like a color screen, and the secondary screen looks like mono.
  49.  
  50. ScreenRows() returns the number of rows on the screen.
  51. ScreenCols() returns the number of columns.
  52.  
  53. ScreenPutChar() puts a character/attribute pair at the specified location
  54. on the screen.
  55.  
  56. ScreenSetCursor() moves the cursor.
  57.  
  58. ScreenClear() quickly clears the screen, without moving the cursor.
  59.