VOGONS


First post, by enaiel

User metadata
Rank Member
Rank
Member

I am looking for patches for Turbo C 2.01 that will:

  1. Enable the Turbo C editor, compiler, linker and all other included tools run without issues, freezes or crashes on a fast DOS PC.
  2. Enable any binary built with Turbo C to run without issues, freezes, or crashes on a fast DOS PC.

I am not looking for patches to patch binaries that were built with Turbo C unless that is the only alternative.

Thanks in advance!

VIA C3 Ezra-T 1.0GHz / MSI MS-6368 / Voodoo2+ViRGE GX / SBPro2+YMF744+AWE64 / MT-32+SC-50
Pentium III-S Tualatin 1.40GHz / QDI A10T / Voodoo3 3000+GF4 Ti4200 / Audigy+AU8830

Reply 1 of 6, by EZ

User metadata
Rank Newbie
Rank
Newbie

Might this be the same issue as the Turbo Pascal 7 issue? For that a simple hexedit replace was sufficient

Reply 2 of 6, by enaiel

User metadata
Rank Member
Rank
Member
EZ wrote on 2026-09-14, 20:12:

Might this be the same issue as the Turbo Pascal 7 issue? For that a simple hexedit replace was sufficient

Not exactly, but related. The patches you are talking about are to fix the binary output from Turbo Pascal (or Turbo C ), and can be found here: Fix "Error 200" (Divide by zero) - by Snover and Stiletto (updated!).
What I am looking for, are patches to fix Turbo C itself.

VIA C3 Ezra-T 1.0GHz / MSI MS-6368 / Voodoo2+ViRGE GX / SBPro2+YMF744+AWE64 / MT-32+SC-50
Pentium III-S Tualatin 1.40GHz / QDI A10T / Voodoo3 3000+GF4 Ti4200 / Audigy+AU8830

Reply 3 of 6, by Ringding

User metadata
Rank Member
Rank
Member

Does it not work as it is? I’ve never noticed any issue.

Reply 4 of 6, by enaiel

User metadata
Rank Member
Rank
Member
Ringding wrote on Yesterday, 19:36:

Does it not work as it is? I’ve never noticed any issue.

The editor seems fine, but I'm having issues with code built with it. I wanted to learn how to write DOS TSRs. Code written for Watcom and DJGPP, my usual compilers, work fine. The examples I found for Turbo C seem to affect my IO controller - my hard disk gets unmounted when I run them, requiring a PC reset.

VIA C3 Ezra-T 1.0GHz / MSI MS-6368 / Voodoo2+ViRGE GX / SBPro2+YMF744+AWE64 / MT-32+SC-50
Pentium III-S Tualatin 1.40GHz / QDI A10T / Voodoo3 3000+GF4 Ti4200 / Audigy+AU8830

Reply 5 of 6, by enaiel

User metadata
Rank Member
Rank
Member

For example, PCPilot is often mentioned as an example of how to write a TSR using Turbo C. It causes my disk to unmount. Pretty much all the example TSR programs on Simtel's Turbo C section do the same.

* PCPilot: http://cd.textfiles.com/sourcecode/msdos/c/pcpilot.zip
* Simtel Turbo C: https://ftp.sunet.se/mirror/archive/ftp.sunet … /msdos/turbo_c/

I was hoping there was some patch to fix Turbo C 2.01, but if there isn't, I will give up on it and stick to Watcom and DJGPP.

VIA C3 Ezra-T 1.0GHz / MSI MS-6368 / Voodoo2+ViRGE GX / SBPro2+YMF744+AWE64 / MT-32+SC-50
Pentium III-S Tualatin 1.40GHz / QDI A10T / Voodoo3 3000+GF4 Ti4200 / Audigy+AU8830

Reply 6 of 6, by Zup

User metadata
Rank Oldbie
Rank
Oldbie

AFAIR, on Turbo Pascal the offending bit (error 200) was the crt unit and I remember finding a source-patched crt unit.

Maybe on Turbo C the same delay loop that throws error 200 is in the same library (crt), so you can find a patched library.

Turbo C was succeded by Turbo C++, and you can compile C code using Turbo C++. So you can try compiling your code using a later version (Turbo C++ was released as freeware, so it can't be too hard to find).

I have traveled across the universe and through the years to find Her.
Sometimes going all the way is just a start...

I'm selling some stuff!