home *** CD-ROM | disk | FTP | other *** search
- The programs on this diskette illustrate how a Turbo Pascal program
- may be made memory resident and then activated using the DOS
- interrupt mechanism. The source code for the memory resident
- program is located in INTR.PAS. The source for the program that
- activates it is in MAIN.PAS.
-
- Before MAIN can activate INTR, INTR must be installed. This is done
- by running INTR.COM from the DOS command line. This only needs to
- be done once each time the system is booted. Running INTR.COM will
- produce no visible results. To see that something has indeed
- happened, run the DOS utility CHKDSK both before and after you
- run INTR.COM. You will see that the available memory is reduced
- by the amount of memory reserved by INTR.COM. You can also use
- DEBUG to look at interrupt vector $80 (four bytes at $0000:$00200)
- to see that an interrupt handler has been installed.
-
- Once INTR is installed you may access it by running MAIN.COM. This
- is a modified version of the first program in my book Using Turbo
- Pascal. It has been modified to look for the key combination <ALT><1>.
- When you press <Alt><1> an interrupt $80 is generated which
- activates the demo menu program. This is the routine that is
- called from the Interrupt procedure in the INTR.PAS code.
-
- When you exit the demo menu program the screen is restored and
- MAIN.COM continues as if nothing had happened. In this case it
- indicates that the ALT-1 combination was pressed returning its
- its scan code of 120.
-
- For more information see the comments in the INTR.PAS and
- MAIN.PAS files.
-
- ***** COLOR SYSTEMS *****
-
- If you are using a color video adapter you will have to recompile
- INTR.PAS and MAIN.PAS. Before recompiling copy CLR-ATTR to STD-ATTR.
- Be sure to do this on a backup. Be sure to set the code, data and
- stack sizes when compiling INTR.PAS. The required values are noted
- in the comments at the beginning of the source code. Note that the
- files with an extension of .TSM are the screen image/control files
- for monochrome systems and the .TSC files are the same for color
- systems. If you are using a composite video monitor driven by a
- color video adapter you may have to copy the .TSM files over the
- .TSC files to be able to read the screens. Wouldn't programming be
- easy if things were standardized!!!? Also, if you have a dual mode
- video card and you are using two monitors, the system must be in the
- mode (color or mono) for which INTR.COM was compiled at the time
- it is installed. i.e. If you are in the mono mode and install
- INTR.COM and then switch to the color mode and run MAIN.COM the
- system will crash upon return from the interrupt.
-
- The screen image files were created with a utility I wrote in Turbo
- which I call T-SCREEN. T-SCREEN is available on diskette from
-
- precision logic systems
- 2012 Lake Air Drive
- Waco, TX 76710
-
- See the TSCREEN.DOC file for more details.