/* History:59,1 */ This is file libpc.doc Contents: * modules present in libpc.a Features: All libpc.a features are prototyped in the include file . I/O instructions: libpc.a includes the full range of PC I/O instructions: inportb - byte inportw - word inportl - long inportsb - string versions (rep insb) inportsw inportsl outportb outportw outportl outportsb outportsw outportsl kbhit() returns 1 if a key has been hit. (except CTRL-C, which go32 traps) getkey() gets one key from BIOS int 16h function 0. sound(f) sets the internal sound generator to frequency f (in Hz). Setting the sound to zero shuts it off. Screen module: ScreenPrimary[] is an array corresponding to the primary display. Thus, "ScreenPrimary[0] = 'X' | 0x0600;" puts a brown 'X' at the upper left corner of the current screen. ScreenSecondary[] is the other screen (mono if the current is color, or visa versa). If only one screen is available, they both map to the same screen. Note that go32 remaps the screen memory so that the "primary" screen always looks like a color screen, and the secondary screen looks like mono. ScreenRows() returns the number of rows on the screen. ScreenCols() returns the number of columns. ScreenPutChar() puts a character/attribute pair at the specified location on the screen. ScreenSetCursor() moves the cursor. ScreenClear() quickly clears the screen, without moving the cursor.