home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS - Coast to Coast / simteldosarchivecoasttocoast.iso / pcmag / vol6n05.zip / THREECOM.ZIP / THREECOM.DOC < prev   
Text File  |  1987-02-22  |  3KB  |  51 lines

  1.                            Three COMs
  2.        (PC Magazine Vol 6 No 5 Mar 10, 1987 User-to-User)
  3.  
  4.      These three small assembly programs help to smooth out three
  5. separate DOS problems.
  6.  
  7.      (1) If you use your PC's floppy disk drives frequently, you
  8. probably spend a lot of time waiting for the disks to stop spinning
  9. so you can safely switch them.  The memory-resident FASTOFF.COM program
  10. turns off the drive motor much more quickly than the standard IBM PC
  11. does.  Normally the motors are turned off 37 ticks (about 2 seconds)
  12. after the last disk access.  FASTOFF reduces this time by decrementing
  13. the elapsed time counter twice as fast as normal.
  14.      A single byte located in the ROM data area is used to maintain
  15. the number of ticks remaining before the motor will be turned off.
  16. Part of the system timer's job is to decrement this byte and turn off
  17. the drive motor when the counter reaches zero.  FASTOFF uses the timer
  18. tick interrupt, which occurs 18.2 times each second, to decrement this
  19. same counter.  Since this program addresses the ROM-BIOS data area,
  20. it will work on an IBM or a very close compatible only.
  21.  
  22.      (2) It seems that after every print screen, the next step is
  23. always to take the printer off-line and press the form feed to eject
  24. the page.  The memory-resident FFEED.COM program will add a form feed
  25. character automatically after the print screen operation is complete.
  26. Since at times the form feed is undesirable, FFEED adds it only if the
  27. Right Shift key was used with PrtSc.
  28.      It works by intercepting interrupt 5, which occurs whenever the
  29. keyboard detects a Shift-PrtSc.  It then tests the keyboard status to
  30. see which shift key is being held down.  If it is the right one, the
  31. FF character is sent to the printer when the screen dump completes.
  32.      FFEED is also smart enough to check to see if the printer is
  33. on-line and ready before beginning the screen print.  If the printer
  34. is not ready, the screen dump is aborted to prevent the keyboard from
  35. locking up.  This is done by making a printer status call before giving
  36. control to the ROM routine.  It's odd that such a simple check was not
  37. included within the standard ROM routine.
  38.  
  39.      (3) For a young child or an inexperienced typist, the auto-repeat
  40. feature of most keyboards may cause lots of unwanted duplicate
  41. keystrokes.  The memory-resident NOREPEAT program eliminates the
  42. auto-repeat no matter how long a key is held down.
  43.      It works by using interrupt 9 to examine each keystroke.  Normally
  44. this detects when each key is depressed and when it's released.  When
  45. a key is held down long enough to repeat, the keyboard simulates the
  46. key's being depressed again and again without being released.  NOREPEAT
  47. senses these unwanted duplicate keystrokes and then prevents them from
  48. being inserted into the keyboard buffer.  When the key is finally
  49. released, new keystrokes are again allowed to occur normally.
  50.  
  51.