home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / fortran / mslang / getkey / readme.1st < prev   
Text File  |  1993-08-23  |  1KB  |  30 lines

  1. This little package demonstrates how to use BIOS interrupts
  2. through a MASM routine to enhance Fortran input.  The two routines
  3. CHKKEY and GETKEY ask if there is any input waiting from the keyboard.
  4. GETKEY waits for a keypress, while CHKKEY returns with or without
  5. receiving and input.
  6.  
  7. Both of these routines return the ASCII value of the pressed key,
  8. along with its scan code.  Certain useful keys, such as the ones with
  9. arrows on them, have no ASCII value, but they do have scan codes.
  10. With these two little routines, you can make your program respond
  11. to a wider range of keyboard input than the average Fortran program
  12. does.
  13.  
  14. These routines can be used in a long calculation, to check for a
  15. user-requested exit.  This application is demonstrated in the
  16. main program LOOPY.FOR that is included.
  17.  
  18. GETKEY.ASM can be used with 16-bit compilers by Microsoft, Lahey,
  19. and Watcom:  the calling interface can be selected by defining
  20. a conditional-assembly variable.  If you do not make a selection,
  21. Microsoft is the default.  The enclosed GETKEY.OBJ was assembled
  22. for use with Microsoft Fortran.
  23.  
  24. Enjoy.
  25.  
  26. Kenneth G. Hamilton, PhD
  27. P. O. Box 9388
  28. San Diego CA 92117
  29. Compuserve [72727,177]
  30.