home *** CD-ROM | disk | FTP | other *** search
- This little package demonstrates how to use BIOS interrupts
- through a MASM routine to enhance Fortran input. The two routines
- CHKKEY and GETKEY ask if there is any input waiting from the keyboard.
- GETKEY waits for a keypress, while CHKKEY returns with or without
- receiving and input.
-
- Both of these routines return the ASCII value of the pressed key,
- along with its scan code. Certain useful keys, such as the ones with
- arrows on them, have no ASCII value, but they do have scan codes.
- With these two little routines, you can make your program respond
- to a wider range of keyboard input than the average Fortran program
- does.
-
- These routines can be used in a long calculation, to check for a
- user-requested exit. This application is demonstrated in the
- main program LOOPY.FOR that is included.
-
- GETKEY.ASM can be used with 16-bit compilers by Microsoft, Lahey,
- and Watcom: the calling interface can be selected by defining
- a conditional-assembly variable. If you do not make a selection,
- Microsoft is the default. The enclosed GETKEY.OBJ was assembled
- for use with Microsoft Fortran.
-
- Enjoy.
-
- Kenneth G. Hamilton, PhD
- P. O. Box 9388
- San Diego CA 92117
- Compuserve [72727,177]
-