PRODUCT : Turbo C NUMBER : 356 VERSION : 1.0 OS : DOS DATE : October 22, 1993 PAGE : 1/4 TITLE : Structure push floating point patch The following patch solves a problem with pushing structures with floating point elements onto the stack in Turbo C. To apply this patch, you will need to use the DOS utility DEBUG.COM. You may obtain a copy of DEBUG.COM from one of your original PC-DOS or MS-DOS diskettes. NOTE: 1. Do not patch your original Turbo C disk, use a working or backup copy of TCC.EXE and TC.EXE for this patch. 2. DEBUG is not sensitive to upper and lower case. All addresses are listed in upper case for ease of readibility. 3. XXXX,YYYY,ZZZZ are hexidecimal digits returned by DEBUG. You must replace these digits accordingly when typing in your commands. 4. While in DEBUG, the prompt will appear as a dash (-). 5. If you do not receive the appropriate response, press "q" followed by , to exit from DEBUG. Check your version number and, if correct, try again. 6. TCC.EXE and TC.EXE will not fit together onto a 360K disk. To patch both programs on a floppy disk, you may need to copy TCC.EXE and DEBUG.COM onto one disk and perform the patch. Save the patched version of TCC.EXE to another disk. Repeat the same steps using TC.EXE. At the DOS prompt, type the following information exactly as it appears (Conclude each line by pressing ).} Patch for TCC.EXE Type the following: You will see: ren tcc.exe tcc.xex A> debug tcc.xex - r ... CS=XXXX ... - h XXXX 1C0C YYYY ZZZZ - e YYYY:2FAD YYYY:2FAD 25. A9 YYYY:2FAD 25.A9 01. YYYY:2FAD 25.A9 01. 00. YYYY:2FB0 81. 74 YYYY:2FB0 81.74 E2. 0B YYYY:2FB0 81.74 E2.0B 00. 40 YYYY:2FB0 81.74 E2.0B 00.40 00. 26 YYYY:2FB0 81.74 E2.0B 00.40 00.26 0B. 83 YYYY:2FB0 81.74 E2.0B 00.40 00.26 0B.83 D0. 47 YYYY:2FB0 81.74 E2.0B 00.40 00.26 0B.83 D0.47 74. 6 YYYY:2FB0 81.74 E2.0B 00.40 00.26 0B.83 D0.47 74.6 0A. 1 YYYY:2FB8 26. YYYY:2FB8 26. 83. YYYY:2FB8 26. 83. 47. 57 YYYY:2FB8 26. 83. 47.57 06. 8 YYYY:2FB8 26. 83. 47.57 06.8 01. 0 YYYY:2FB8 26. 83. 47.57 06.8 01.00 26. 29 YYYY:2FB8 26. 83. 47.57 06.8 01.00 26.29 83. 6 YYYY:2FB8 26. 83. 47.57 06.8 01.00 26.29 83.6 57. 54 YYYY:2FC0 08. 74 YYYY:2FC0 08.74 00. 90 YYYY:2FC0 08.74 00.90 -} w Writing 2948A bytes - q A> ren tcc.xex tcc.exe A> Patch for TC.EXE Type the following: You will see: ren tc.exe tc.xex A> debug tc.xex - r ... CS=XXXX ... - h XXXX 2557 YYYY ZZZZ - e YYYY:2FA4 YYYY:2FA4 25. A9 YYYY:2FA4 25.A9 01. YYYY:2FA4 25.A9 01. 00. YYYY:2FA4 25.A9 01. 00. 81. 74 YYYY:2FA8 E2. 0B YYYY:2FA8 E2.0B 00. 40 YYYY:2FA8 E2.0B 00.40 00. 26 YYYY:2FA8 E2.0B 00.40 00.26 0B. 83 YYYY:2FA8 E2.0B 00.40 00.26 0B.83 D0. 47 YYYY:2FA8 E2.0B 00.40 00.26 0B.83 D0.47 74. 6 YYYY:2FA8 E2.0B 00.40 00.26 0B.83 D0.47 74.6 0A. 1 YYYY:2FA8 E2.0B 00.40 00.26 0B.83 D0.47 74.6 0A.1 26. YYYY:2FB0 83. YYYY:2FB0 83. 47. 57 YYYY:2FB0 83. 47.57 06. 8 YYYY:2FB0 83. 47.57 06.8 01. 0 YYYY:2FB0 83. 47.57 06.8 01.0 26.} 29 YYYY:2FB0 83. 47.57 06.8 01.00 26.29 83. 6 YYYY:2FB0 83. 47.57 06.8 01.00 26.29 83.6 57. C YYYY:2FB0 83. 47.57 06.8 01.00 26.29 83.6 57.C 08. A3 YYYY:2FB8 00. 90 YYYY:2FB8 00.90 - w Writing 38759 bytes - q A> ren tc.xex tc.exe A> DISCLAIMER: You have the right to use this technical information subject to the terms of the No-Nonsense License Statement that you received with the Borland product to which this information pertains.