home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / INFO / TURBOPAS / INTR_DMO.ZIP / READ-ME < prev    next >
Encoding:
Text File  |  1985-11-20  |  2.8 KB  |  59 lines

  1. The programs on this diskette illustrate how a Turbo Pascal program
  2. may be made memory resident and then activated using the DOS
  3. interrupt mechanism. The source code for the memory resident
  4. program is located in INTR.PAS. The source for the program that
  5. activates it is in MAIN.PAS.
  6.  
  7. Before MAIN can activate INTR, INTR must be installed. This is done
  8. by running INTR.COM from the DOS command line. This only needs to
  9. be done once each time the system is booted. Running INTR.COM will
  10. produce no visible results. To see that something has indeed
  11. happened, run the DOS utility CHKDSK both before and after you
  12. run INTR.COM. You will see that the available memory is reduced
  13. by the amount of memory reserved by INTR.COM. You can also use
  14. DEBUG to look at interrupt vector $80 (four bytes at $0000:$00200)
  15. to see that an interrupt handler has been installed.
  16.  
  17. Once INTR is installed you may access it by running MAIN.COM. This
  18. is a modified version of the first program in my book Using Turbo
  19. Pascal. It has been modified to look for the key combination <ALT><1>.
  20. When you press <Alt><1> an interrupt $80 is generated which
  21. activates the demo menu program. This is the routine that is
  22. called from the Interrupt procedure in the INTR.PAS code.
  23.  
  24. When you exit the demo menu program the screen is restored and
  25. MAIN.COM continues as if nothing had happened. In this case it
  26. indicates that the ALT-1 combination was pressed returning its
  27. its scan code of 120.
  28.  
  29. For more information see the comments in the INTR.PAS and
  30. MAIN.PAS files.
  31.  
  32.                       ***** COLOR SYSTEMS *****
  33.  
  34. If you are using a color video adapter you will have to recompile
  35. INTR.PAS and MAIN.PAS. Before recompiling copy CLR-ATTR to STD-ATTR.
  36. Be sure to do this on a backup. Be sure to set the code, data and
  37. stack sizes when compiling INTR.PAS. The required values are noted
  38. in the comments at the beginning of the source code. Note that the
  39. files with an extension of .TSM are the screen image/control files
  40. for monochrome systems and the .TSC files are the same for color
  41. systems. If you are using a composite video monitor driven by a
  42. color video adapter you may have to copy the .TSM files over the
  43. .TSC files to be able to read the screens. Wouldn't programming be
  44. easy if things were standardized!!!?  Also, if you have a dual mode
  45. video card and you are using two monitors, the system must be in the
  46. mode (color or mono) for which INTR.COM was compiled at the time
  47. it is installed. i.e. If you are in the mono mode and install
  48. INTR.COM and then switch to the color mode and run MAIN.COM the
  49. system will crash upon return from the interrupt.
  50.  
  51. The screen image files were created with a utility I wrote in Turbo
  52. which I call T-SCREEN. T-SCREEN is available on diskette from
  53.  
  54. precision logic systems
  55. 2012 Lake Air Drive
  56. Waco, TX 76710
  57.  
  58. See the TSCREEN.DOC file for more details.
  59.