Lunduke
News • Science & Tech
MS-DOS 4.0 Source Code Fails to Compile
Plus: Source comments, by Microsoft, calling the creator of DOS "brain-damaged" get censored.
April 27, 2024
post photo preview

Yesterday, Microsoft released the source code for MS-DOS 4.0... an action which I have encouraged Microsoft to take for many years (including when I worked at Microsoft).

And, while this source code release is most definitely a win for the preservation of computer history, there are some rather ridiculous issues with it.

Most notably:

  • The source doesn't actually fully compile.  It is not usable in its current state.
  • The source code has been modified by Microsoft -- even after the publication this week -- reducing the historical value of the code.
  • Also Microsoft claims to have lost some source code.

Yeah.  You read that first bullet point right.  It does not compile.  I'll walk you through the details (including a step-by-step guide for how you can fail to compile MS-DOS 4.0 yourself).

But, first, a little backstory.

The MS-DOS 4.0 Story (The Short, Short Version)

MS-DOS 4.0, released back in 1986, was a bit of an oddity.  It was a multitasking version of DOS (similar in that way to Wendin-DOS).  And, importantly, it was not a direct continuation of the existing MS-DOS line -- in fact "MS-DOS 4.0" was released between versions "3.1" and "3.3" (almost exactly coinciding with the "3.2" release).

Fun Side Note: There are multiple multitasking variants of DOS (or ways to multitask in DOS).  Most of which were not built or supplied by Microsoft.  In case you didn't know that... now you do.

This Multitasking MS-DOS 4.0 was not commercially successful -- to put it mildly -- and that line of "Multitasking MS-DOS" was quickly abandoned.

Luckily -- or not luckily, depending on how you look at it -- IBM co-developed a completely different version of "MS-DOS 4.0" that had almost nothing to do with the multitasking version Microsoft created.  This IBM-made version, a continuation of MS-DOS 3.x, continued to be single-tasking.  But, oh-boy, was it buggy.  Legendarily buggy.

Ultimately, when it was obvious that the Multitasking "MS-DOS 4.0" was a dead-end, Microsoft took IBM's totally unrelated "MS-DOS 4.0" and released it also as "MS-DOS 4.0".  (Two different Operating Systems, same name and same version number.  Because that's not at all confusing.)  Then -- quickly -- re-worked a bunch of it -- releasing that as "MS-DOS 4.01".

That single-tasking version ("4.01") went on to have some success -- though it is widely regarded as one of the buggier releases of MS-DOS.

The MS-DOS 4.0 Source Release

Two totally different things named "MS-DOS 4.0".  So what, exactly, is Microsoft releasing the source code for?

Well.  There are two parts.

Floppies of an early Beta of Multitasking MS-DOS 4.0

Both are available via GitHub.  And everything is released under the MIT license.

Which means that, yes, if you can get that single-tasking 4.0 code to build... you can, in theory, fork these releases and continue developing them.  (Though you'll need to change the name, as Microsoft still holds the trademarks.)

This work was announced in a joint blog post by Jeff Wilcox (Head of Open Source Programs Office) and Scott Hanselman (Vice President of Developer Community) at Microsoft.

Fun Side Note #2: That Vice President, Scott Hanselman, is the same Microsoft executive who has previously encouraged people to commit crimes against people based on their skin color and gender.  Telling people to be ready to "go to jail" for those crimes.  While that bit of information has absolutely nothing to do with the MS-DOS 4.0 source code release... it's nice to have background on the people in the story.

What code, exactly, did we get?

This release, from Microsoft, is a valuable and interesting one.  It contains a great deal of historically significant information -- and I am absolutely filled to the brim with nerdy joy as I go through it.

Unfortunately... it does not include code for the multitasking version of "4.0".

From the announcement:

"Jeff Wilcox and OSPO went to the Microsoft Archives, and while they were unable to find the full source code for MT-DOS, they did find MS DOS 4.00, which we’re releasing today, alongside these additional beta binaries, PDFs of the documentation, and disk images. We will continue to explore the archives and may update this release if more is discovered."

As a former Microsoft employee... this is... strange.  And, quite honestly, not at all believable.

During my time working at Microsoft, I knew of backed up copies of source code for darned near everything -- including almost every version of MS-DOS from 3.3 onward (that I, personally, saw).

Yet they were unable to find code for the Multitasking MS-DOS 4.0?  Knowing, intimately, how the various groups within Microsoft handled backing up source code and binaries for releases... this statement from Microsoft makes me highly skeptical.

Unless Microsoft completely forgot how to backup source code in the last few years, I'm going to call this claim utterly bogus.

Is it Actually MS-DOS 4.0?

Just to make everything far more confusing than it already is... this may not actually be MS-DOS 4.0.  It might be MS-DOS 4.01... or PC-DOS 4.01... or some strange combination.

Take a look at SETENV.BAT in the source code release and you will find the following line:

echo setting up system to build the MS-DOS 4.01 SOURCE BAK...

What files I have been able to build appear to exactly match the MS-DOS 4.0 (not 4.01) release images.  But, being as some of this source code release is mangled beyond use, unfortunately we can't really be sure that everything matches the actual 4.0 release.  It might be an interim build between 4.0 and 4.01.

Oh!  That's right.

Did I mention that this source code release of MS-DOS 4.0 doesn't successfully build?

The Code Does Not Compile

Allow me to repeat myself:

The code that has been supplied contains significant problems which will prohibit it from compiling a complete, working version of MS-DOS 4.0.

I attempted build under multiple environments (including on a released version of MS-DOS 4.01, MS-DOS 5, PC-DOS, and under DOSBox) -- and dug through the errors until I was confident of the issues (and, importantly, was confident that we weren't simply looking at an obvious case of user error).

ERROR!  ERROR!

Note: If you want to skip the "How To Build It" portion, simply scroll down to the "BOOM!  ERROR!" section below.

Want to unsuccessfully build MS-DOS 4.0 yourself?  Here are some super easy to follow steps.

  1. Download the contents of the MS-DOS 4.0 GitHub repository.
  2. Install DOSBox.  (Seriously, this works just as well in DOSBox as it does anywhere else.)
  3. Within DOSBox run the following command: "MOUNT D PATH" (replace "PATH" with the path to that folder you downloaded in step 1).

If you did everything correctly, you will now -- within DOSBox -- have a D:\ drive with a directory named "SRC" in it.

Note the D:\SRC directory.  That's important.

The BAT and make files which build MS-DOS 4.0 expect all of the files to be in D:\SRC.  So replicating that environment will make it so you don't need to tweak any files at all.

Now we actually do the build.

  1. Change to the D:\SRC directory.  "D:" then "CD SRC".
  2. Now run "SETENV.BAT".  This will setup the paths and whatnot for the build environment.
  3. Then simply run "NMAKE".  That will kick off the build for everything.

Easy, right?

BOOM!  ERROR!

At this point you will quickly see that several files compile cleanly.  Until you get to GETMSG.ASM and, later, USA.INF.  Both of these files are mangled.  I was able to force GETMSG.ASM to compile by commenting out some lines... but USA.INF is completely hosed.

I don't see how whoever uploaded this source could have possibly done a successful compile prior to releasing it.

Seriously.  Hosed, I say!  Hosed!

It's not all bad news, luckily.  The majority of the code does appear to be here -- and most of it builds without any catastrophic errors.  With some work (a replaced file here, some re-written code there) I am confident a variant on this MS-DOS 4.0 release will be able to be built... unfortunately, because of changes needed to make it compile, it won't be a historically perfect replica of the system.

Not without Microsoft figuring out what they did wrong and re-releasing the source code.  Which, considering how rarely Microsoft releases source code for these historical pieces of software... I won't be holding my breath.

Fun Side Note #3: After Microsoft announced the source code release of MS-DOS 4.0, a huge number of articles have popped up on a number of Tech News sites.  Tech Journalist after Tech Journalist praising the release.  Yet not one of them has reported that the code does not actually compile.  Which means that none of them even tried to verify the claims from Microsoft.  Not.  One.  Except for The Lunduke Journal, of course.  I'll let you draw your own conclusion about what that means.

The historical record has been compromised... a little.

It doesn't build.  That's a problem.

Also, it's kind of hard to be 100% sure what this specific release even is (is it 4.0... is it 4.01... is it from IBM or MS?  An interim build?  It looks mostly like 4.0... but there's some weird bits that could use clarification.).

But what makes this even worse... is that not only has some of the code been mangled and corrupted... but some of the code comments were actively modified in the few hours after the source code was publicly posted!

Thus further destroying the historical value of this source code.  Which, to put it mildly, kinda sucks.

Brain-damaged Tim Patterson

But, as luck would have it, that source code change... is really, really amusing.  And pretty minor.

"Brain-damaged Tim Patterson"

A modified comment.  "Brain-damaged Tim Patterson" becomes "Brain-damaged TP".

It's a simple change -- obscuring an insult of Tim Patterson (the original creator of Quick & Dirty DOS)... replacing his full name with his initials.  But, if this is a historical record, this change should not occur.

Here's a fun question: Who, exactly, made this change?  Microsoft is not accepting any changes to this source code repository from the outside world.  So, whoever made the change has the blessing of Microsoft.

Well, hold on to your butts!

This change was made by GitHub user "mzbik", with the simple comment "MZ is back!".

Ok.  Great.  But who the heck is "MZ"?

None other than the legendary Mark Zbikowski.  One of the early Microsoft employees (joining in 1981) -- and the programmer who took over the MS-DOS project (from Tim Patterson) starting with version 2.0... and leading DOS through version 4.0.

Mark Zbikowski and his epic moustache.

Clearly Mark -- who usurped Tim as the Dev Lead / Manager of MS-DOS -- did not want that little "Brain-damaged" insult of Tim to be part of the historical record.

Or, perhaps, he really wanted to call attention to it by making the change.

Either way, we now can be somewhat sure that Mark Zbikowski, himself, wrote that comment way back in the 1980s.  And, even more fascinating, Mark remembered that comment -- from the '80s -- so clearly that he knew to quickly go and change it -- almost immediately -- once the source was made public.  (I barely remember source code comments I made last week, let alone almost 40 years ago... this really stuck with him!)

And that level of irreverent whimsy -- one historically significant programmer insulting another historically significant programmer... in source code comments -- makes me smile.

Ok, sure.  That change isn't a huge deal.  In fact, I'm now glad it happened as it drew my attention to it.

But what else has been changed?  What else will be changed?  It's worth asking.  This is for the preservation of history, after all.

Lots and Lots of Questions

In fact, this release raises a lot of questions.

  • Why was building of this source code not tested prior to release?
  • What process caused these source code files to be mangled?
  • What all was changed from the original source archive?
  • Why has Microsoft only released source code for the 3 least popular versions of MS-DOS (1.25, 2.0, & 4.0)?  Microsoft does not profit from versions 3.3, 5.0, or 6.x (far more popular and/or useful releases).  Why are those being held back?
  • Microsoft loves to tell people how much they love Open Source... yet they have released source code for only a very small number of products (far less than 1% of their total software releases).  Even ancient software, unsuported for decades, remains closed source.  Why?
  • The last release of MS-DOS source code (versions 1.25 and 2.0) occurred 10 years ago (2014).  Why has it taken 10 years to release source code that Microsoft hasn't used since the 1980s?  Will the next release of source code be 10 years from now... in 2034?
  • And, shoot, why has not one other Tech News publication actually tried to compile this code... or notice the changes being made... or look into the details at all?

I don't mean to sound like a Negative Nancy, here.  This release is, without a doubt, incredibly interesting and important.

And Microsoft is under no obligation to release the source code for these pieces of software.  No obligation whatsoever.  If they wanted to keep it all locked away in their vault, that's entirely their call.

That said, Microsoft's near constant declarations of their "love for Open Source" -- including their ownership of GitHub -- would suggest to me that they would be eager to release the source for 30 and 40 year old software that they haven't earned a penny on in decades.

If they truly loved the idea of "Open Source"... they would do it.  In a heartbeat.  But they don't.  Which tells me a lot about their actual views on "Open Source".

Some things never change...

When I worked at Microsoft -- in the late 1990s and early 2000s -- I pushed, regularly, to release code, binaries, and documentation of historicaly significant Microsoft software.  The old stuff that nobody used anymore, but which should be preserved and studied for posterity.

Back in those days, I got a lot of push-back.  To put it mildly.

Microsoft management was extremely hesitant to release code -- and even free binaries -- of these historic products.  And, honestly, it looks like that situation has barely improved since then.  Shoot.  What they do release doesn't even compile.

Just the same: I applaud Microsoft for releasing this MS-DOS 4.0 code!  Truly, I do!

Now... release some more!  Preferably without mangling the code this time.

And don't give me any of that "we can't find the code for our most famous products" malarkey.  The Lunduke Journal knows better.

community logo
Join the Lunduke Community
To read more articles like this, sign up and join my community today
14
What else you may like…
Videos
Podcasts
Posts
Articles
Linus Tech Tips Bans User For Saying "All Racism is Bad"

This is simply the latest example of normal people being silenced and censored, throughout the Tech industry, by Extreme Leftists promoting bigotry.

00:25:29
Time For Ubuntu to Drop Firefox?

With changes to Firefox's Terms of Use, many Linux Distros (Fedora, Mint, & others) are now shipping Spyware. Plus: Tech News media rushes to defend Mozilla.

00:24:44
Yes, Mozilla Receives USAID Money.

The Firefox maker spends millions from tax payers on "social and political" training, "centering marginalized groups", and "engaging race, gender, sexuality perspectives".

00:18:30
November 22, 2023
The futility of Ad-Blockers

Ads are filling the entirety of the Web -- websites, podcasts, YouTube videos, etc. -- at an increasing rate. Prices for those ad placements are plummeting. Consumers are desperate to use ad-blockers to make the web palatable. Google (and others) are desperate to break and block ad-blockers. All of which results in... more ads and lower pay for creators.

It's a fascinatingly annoying cycle. And there's only one viable way out of it.

Looking for the Podcast RSS feed or other links? Check here:
https://lunduke.locals.com/post/4619051/lunduke-journal-link-central-tm

Give the gift of The Lunduke Journal:
https://lunduke.locals.com/post/4898317/give-the-gift-of-the-lunduke-journal

The futility of Ad-Blockers
November 21, 2023
openSUSE says "No Lunduke allowed!"

Those in power with openSUSE make it clear they will not allow me anywhere near anything related to the openSUSE project. Ever. For any reason.

Well, that settles that, then! Guess I won't be contributing to openSUSE! 🤣

Looking for the Podcast RSS feed or other links?
https://lunduke.locals.com/post/4619051/lunduke-journal-link-central-tm

Give the gift of The Lunduke Journal:
https://lunduke.locals.com/post/4898317/give-the-gift-of-the-lunduke-journal

openSUSE says "No Lunduke allowed!"
September 13, 2023
"Andreas Kling creator of Serenity OS & Ladybird Web Browser" - Lunduke’s Big Tech Show - September 13th, 2023 - Ep 044

This episode is free for all to enjoy and share.

Be sure to subscribe here at Lunduke.Locals.com to get all shows & articles (including interviews with other amazing nerds).

"Andreas Kling creator of Serenity OS & Ladybird Web Browser" - Lunduke’s Big Tech Show - September 13th, 2023 - Ep 044
8 hours ago

#SundaySounds

One of the bands I discovered on Youtube is Descartes A Kant. They recently appeared and performed live for KEXP in Mexico CIty what is essentially their entire new album "After Destruction" including the title track (which is my favorite of this band, a video for which I've posted as a #SundaySounds before).

You can probably find something to like here, from the retro-futuristic late 70s / early 80s aesthetic, pleasant pre-programmed computer personality DAK with old-style graphics and electronica elements (maybe with some BBC TV version of Hitchhiker's Guide to the Galaxy thrown in), the band's dramatic stage personality and performance, mix of sweet melodies and gritty punk jams, to the overall avant-garde composition, especially if you've enjoyed any combination of The Breeders, La Femme, Primus, Buckethead, or even Frank Zappa before.

Minor content warning: around 12:00 some adult matters are mentioned in a scientific/therapy kind of way.

...

These guys are pretty funny. Here they are ragging on Andy Tanenbaum's OS predictions from 1992.

They are quite intense so I have a hard time listening to more than 10-20 minutes at a time...

A 10+ hour documentary featuring the history of video arcade gaming from 1970-1999.

February 24, 2025
post photo preview
12% of Tech Workers Believe macOS is Based on Linux
Over 70% believe in at least one common Myth of Computer History.

The following data was derived from the 2025 Tech Industry Demographic Survey, which included over 12,000 respondents -- from across companies and organizations throughout the Tech Industry -- surveyed during February of 2025.

 

Ready to have your mind blown?

According to those surveyed:

  • Nearly 12% believe that macOS is based on Linux.
  • Over 70% believe in at least one common Myth of Computer History.
  • The most commonly believed myth (at 52%) is the myth that "the first computer bug was a real bug (a moth)".

 

Those who took the survey were presented with 6 common (but debunked) computer history myths... and were asked to select the myths which they believed to be true and factual historical statements.

Here is the breakdown of how many believed in each myth.

 

 

One rather fascinating piece of data: Those percentages held steady for nearly every demographic group within the survey.

For example:

Roughly 12% of respondents who prefer Linux, believe macOS is based on Linux.  The same was true of Windows users, C / C++ programmers, and those who perfer the Firefox Web Browser... no matter what sub-group was looked at... that number stayed roughly steady (around 12%).

The one outlier appeared when I looked at how many myths a person says they believe in... grouped by generic political leanings (Left, Centrist, or Right Leaning).

 

Notice that the percentage of respondents who "Believe at least one myth" or "Believes 4+ myths" stays roughly consistent (with only mild variances) across all three political groupings.

But, if you look at the "Believes 3+ myths" data, there is an 8% spike among those who identify as "Left Leaning".

While all surveyed were likely to believe at least one myth, "Left Leaning" respondents were slightly more likely to believe up to 3 myths (of the 6 presented).

 

The Myths of Computer History

 

For those curious, here are the 6 myths included in the survey (with links to debunk each of them).  

 

Read full Article
February 18, 2025
Lunduke's Birthday! Woo!

Wooo! Today is Lunduke’s birthday! Want to help celebrate this most excellent of holidays? Here’s some totally radical ideas!

1) Share some links to Lunduke Journal shows.

Bonus points if you share those shows to the type of places where people would get mad about it. 🤣

The “Open Source is Anti-Free Speech” video is a great choice. Just remember to take screenshots… because some sites will censor those links faster than you can blink (be sure to let me know if they do censor).

2) Grab a Subscription

Gotta keep the lights on here at The Lunduke Journal! And, shoot, there’s no better gift than the gift of Big-Tech-Free Journalism. 😎

Plus… for the rest of February there’s some massive discounts (like 50% off).

https://lunduke.locals.com/post/6661699/for-february-50-off-subscriptions-50-off-drm-free-downloads-lifetime-subscriptions-available

So, you know, win-win!

Now, if you’ll excuse me, I’m going to go eat some BBQ. Because… birthday.

-Lunduke

 
Read full Article
February 13, 2025
For February: 50% off Subscriptions, 50% off DRM-Free Downloads, Lifetime Subscriptions available

2025 is off to an amazing start for The Lunduke Journal.

The number of people getting their Big-Tech-Free Tech News from The Lunduke Journal is shooting through the roof. Subscriptions (of every kind) are soaring.

And The Lunduke Journal is now available on a wide variety of platforms — with our core community area now consolidating on our own, self-hosted forum (which is exclusively available to subscribers).

With the tidal wave of new people — many of you wanting access to the new, exclusive Forum — I want to make it as easy as possible for everyone to become a part of what we are doing. Time to do something a bit crazy. Massive discounts on subscriptions (I mean… huge). For the entire month of February.

Yup. The whole gosh darned month.

If it’s February, the discounts below are all available. Choose whatever works best for you. Then feel awesome about supporting truly independent Tech Journalism.

50% Off Yearly Subscription:

50% off a Yearly subscription to The Lunduke Journal via both Locals and Substack. (This includes full access to the community Forum.)

That’s $2.25 per month. Pocket change.

50% Off DRM-Free, MP4 Downloads:

Want to be able to download every show The Lunduke Journal releases (and watch them on whatever device you like)? Yeah. You can do that. For 50% off.

Note: This DRM-Free download option does not include access to the Forum. This option is strictly for downloading the episodes.

The Famous Lifetime Subscription:

The "World Famous Lunduke Journal Lifetime Subscription" is exactly what it sounds like. Pay once and get full access to The Lunduke Journal. For life. A great way to support Big-Tech-Free Journalism.

(This includes full access to the community Forum.)

New Lifetime Subscriptions are available, for $200, from now through February 28th.

The Lifetime Subscription can be obtain via Locals, Substack, or using Bitcoin. All three options work great and are super easy.

How to get a Lifetime Subscription via Locals:

  1. Go to Lunduke.Locals.com/support.

  2. Select "Give Once".

  3. Enter "200" into the amount field.

  4. After checking out, Lunduke will toss you an email once your account is set to full lifetime status. (This usually happens within a few hours.)

How to get a Lifetime Subscription via Substack:

  1. Go to Lunduke.Substack.com/subscribe.

  2. Select the “Lifetime Subscription” option.

  3. After checking out, Lunduke will toss you an email once your account is set to full lifetime status. (This usually happens within a few hours.)

If you would also like full, Lifetime access to Lunduke.Locals.com (which is included):

  1. Make a free account on Lunduke.Locals.com.

  2. Email “bryan at lunduke.com” with the email address you use on both Substack and Locals (can be different email addresses).

  3. Lunduke will toss you an email once your account is set to full lifetime status on Locals.

How to get a Lifetime Subscription with Bitcoin:

And, finally, you can obtain a Lifetime Subscription via Bitcoin. Save a few bucks with this option, as Bitcoin processing has fewer fees associated with it.

bc1qyjakve8fywm8pz2v99v57yhjj0vzr2vjze6fcq

  • Email "bryan at lunduke.com" with the following information: What time you made the transaction, how much was sent (in Bitcoin), and the email address you use (or plan to use) on Locals.com.

The Lunduke Journal would not be possible without your support. Every subscriber, of every type, makes a massive difference in bringing Big-Tech-Free Tech Journalism to the world.

Thank you.

-Lunduke

Read full Article
See More
Available on mobile and TV devices
google store google store app store app store
google store google store app tv store app tv store amazon store amazon store roku store roku store
Powered by Locals