Category : Pascal Source Code
Archive   : PASS_ALL.ZIP
Filename : TI423.ASC

 
Output of file : TI423.ASC contained in archive : PASS_ALL.ZIP






PRODUCT : TURBO PASCAL NUMBER : 423
VERSION : 4.0
OS : MS-DOS, PC-DOC
DATE : SEPTEMBER 20, 1988 PAGE : 1/1

TITLE : PATCH FOR ^KW BLOCK WRITE DISK FILE SIZE NOT
TRUNCATED BUG




This handout describes the patch needed in order for the Turbo
Pascal 4.0 editor to correctly block copy a portion of code out
of a source file and truncate the file's size on disk. The
following patch should be made to the TURBO.EXE file using the
DOS utility, DEBUG.

1. Copy TURBO.EXE to a file called TURBO.TXT. (DEBUG will
not allow modifications to be made to an .EXE file.)

2. Load TURBO.TXT into DEBUG with the command:

DEBUG TURBO.TXT

3. At DEBUG'S "-" prompt, enter the command E CS:3FCD. Press
. This allows you to edit the code at address
CS:3FCD. The number 01. will appear. Type 3 next to it
and press . Enter W to write the patched
program to disk and Q to quit. You have
successsfully patched Turbo Pascal. Your DEBUG session
should look something like this:

C:\TURBO>debug turbo.txt
-e CS:3FCD
29C9:3FCD 01.3
-w
Writing 1C248 bytes
-q

4. Rename TURBO.TXT to TU.EXE. (Use a name other than
TURBO.EXE so you can distinguish between the original and
corrected versions.)




















  3 Responses to “Category : Pascal Source Code
Archive   : PASS_ALL.ZIP
Filename : TI423.ASC

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/