home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / INFO / TURBOPAS / COMMAND.ZIP / COMMAND.PAT
Encoding:
Text File  |  1987-02-14  |  1.5 KB  |  39 lines

  1.   TITLE:  Command.com overwrite patch
  2. PRODUCT:  Turbo Pascal
  3. VERSION:  2.00B non 8087
  4.      OS:  MS-DOS, PC-DOS
  5.    DATE:  1/14/85
  6.  
  7.   Turbo  as  delivered  by  Borland always destroys the transient
  8. portion of command.com; this occurs in  the Turbo package  itself
  9. as well as programs created by the  compiler.  By making a simple
  10. patch to Turbo,   you can create programs that will not overwrite
  11. the  command  proccessor.   By  making the identical  patch  at a
  12. different location,  you can cause  Turbo itself to not overwrite
  13. the transient portion of COMMAND.COM.
  14.  
  15.  
  16. NOTE: Always make a backup copy of any program before applying any
  17.       patch.  Keep track of disks which contain patched versions of
  18.       software as this may have a bearing on future trouble-shooting.
  19.  
  20. For programs created by Turbo patch :
  21.  
  22.      Before     CS:0B85 2D 00 10   SUB  AX,1000
  23.      After      CS:0B85 2D 60 10   SUB  AX,1060
  24.  
  25. For the Turbo compiler :
  26.  
  27.      Before     CS:2843 2D 00 10   SUB  AX,1000
  28.      After      CS:2843 2D 60 10   SUB  AX,1060
  29.  
  30. This patch changes the calculation made to determine the location
  31. of the stack segment.   The stack segment is placed at the top of
  32. memory,  but with this patch the location of the stack segment is
  33. moved  down  60  hex paragraphs to keep  command.com  from  being
  34. overwritten.  The  only requirement is that the transient portion
  35. of command.com be less than 1536 bytes in size.
  36.  
  37.  
  38. For some introductory help with DEBUG, see DEBUG.LTR in DL0.