T
tycho1546
Years ago I wrote some programs in Borland's Turbo C 2.0 that use a
library routine called bioskey(), which tests whether a keystroke is
available to be read. The bioskey() routine returns the proper
indication and allows the program thread to continue. (Other
routines, such as getch(), stop and wait for the user to enter one
or more keystrokes before allowing the program thread to continue.)
I am now recompiling this software using Borland C/C++ 5.0, and it
has no bioskey() capability. Turbo C 2.0 compiles under Real Mode
(or Virtual Real Mode), and Borland C/C++ compiles under Protected
Mode.
Likewise, my Turbo C 2.0 program uses library routines called
outportb() and inportb(). These send and receive data to/from a
hardware port over the ISA data bus. As above, these functions run
in Real Mode, and so I cannot use them when compiling with Borland
C/C++ 5.0 in Protected Mode.
Does anyone know how I can emulate the bioskey() and outportb()
functions when compiling under Borland C/C++ 5.0 in Protected Mode?
library routine called bioskey(), which tests whether a keystroke is
available to be read. The bioskey() routine returns the proper
indication and allows the program thread to continue. (Other
routines, such as getch(), stop and wait for the user to enter one
or more keystrokes before allowing the program thread to continue.)
I am now recompiling this software using Borland C/C++ 5.0, and it
has no bioskey() capability. Turbo C 2.0 compiles under Real Mode
(or Virtual Real Mode), and Borland C/C++ compiles under Protected
Mode.
Likewise, my Turbo C 2.0 program uses library routines called
outportb() and inportb(). These send and receive data to/from a
hardware port over the ISA data bus. As above, these functions run
in Real Mode, and so I cannot use them when compiling with Borland
C/C++ 5.0 in Protected Mode.
Does anyone know how I can emulate the bioskey() and outportb()
functions when compiling under Borland C/C++ 5.0 in Protected Mode?