home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / os / msdos / programm / 8085 < prev    next >
Encoding:
Internet Message Format  |  1992-07-25  |  1.8 KB

  1. Path: sparky!uunet!gatech!gatech!wa4mei!nanovx!mycro!scott
  2. From: scott@mycro.UUCP (Scott C. Sadow)
  3. Newsgroups: comp.os.msdos.programmer
  4. Subject: Re: screen saver routines
  5. Message-ID: <1992Jul25.152706@mycro.UUCP>
  6. Date: 25 Jul 92 19:27:06 GMT
  7. References: <1992Jul22.161607.3668@magnus.acs.ohio-state.edu>
  8. Lines: 36
  9.  
  10. In article <1992Jul22.161607.3668@magnus.acs.ohio-state.edu>, news@magnus.acs.ohio-state.edu writes:
  11. >
  12. >   I'm planning on incorporating a screen saver into my program.
  13. >From what I gather, I'll need to hook onto 2 interrupts, 0x1C and
  14. >0x09.  My hook to interrupt 0x1C will increment a counter every
  15. >time it is called and if the counter is greater than a certain
  16. >amount of time, blank the screen.  My hook to interrupt 0x09 will
  17. >unblank the screen and clear the counter if the screen is already
  18. >blanked, otherwise it will just clear the counter.  Can someone
  19. >tell me if this will work or have any suggestions/improvements?
  20. >Thanks!
  21. >
  22. >-Sam-
  23.  
  24.  
  25. Sounds good - I have written a TSR that uses that method (It is a very
  26. common method)  Some comments though:
  27.  
  28.    1) You should use a flag to indicated that the screen is blanked. Then
  29. check this flag in the 0x1C handler to see if there is anything to do. (If
  30. blanked, just return...)
  31.  
  32.    2) Be aware that some nasty, unfriendly programs (like windoze) take
  33. over the 0x09 interrupt so your program will not see any keystrokes. I
  34. know this because I wrote a screen saver TSR that caused problems because
  35. it didn't see any keyboard activity.
  36.  
  37.    3) If you are not writing the interrupt handlers in assembly, make sure
  38. you do as little as possible. (Actually, even if you are writing them in
  39. assembly) The timer tick and keyboard interrupt handlers can adversly
  40. affect system response/performance.
  41.  
  42.  
  43.    Scott C. Sadow
  44.    scott@mycro.UUCP
  45.    ...gatech!nanovx!mycro!scott
  46.