home *** CD-ROM | disk | FTP | other *** search
- TITLE: Command.com overwrite patch
- PRODUCT: Turbo Pascal
- VERSION: 2.00B non 8087
- OS: MS-DOS, PC-DOS
- DATE: 1/14/85
-
- Turbo as delivered by Borland always destroys the transient
- portion of command.com; this occurs in the Turbo package itself
- as well as programs created by the compiler. By making a simple
- patch to Turbo, you can create programs that will not overwrite
- the command proccessor. By making the identical patch at a
- different location, you can cause Turbo itself to not overwrite
- the transient portion of COMMAND.COM.
-
-
- NOTE: Always make a backup copy of any program before applying any
- patch. Keep track of disks which contain patched versions of
- software as this may have a bearing on future trouble-shooting.
-
- For programs created by Turbo patch :
-
- Before CS:0B85 2D 00 10 SUB AX,1000
- After CS:0B85 2D 60 10 SUB AX,1060
-
- For the Turbo compiler :
-
- Before CS:2843 2D 00 10 SUB AX,1000
- After CS:2843 2D 60 10 SUB AX,1060
-
- This patch changes the calculation made to determine the location
- of the stack segment. The stack segment is placed at the top of
- memory, but with this patch the location of the stack segment is
- moved down 60 hex paragraphs to keep command.com from being
- overwritten. The only requirement is that the transient portion
- of command.com be less than 1536 bytes in size.
-
-
- For some introductory help with DEBUG, see DEBUG.LTR in DL0.