Microsoft has released the source code for MS-DOS 4.0 and it's giving me all the nostalgia feels

Retro 1990s style beige desktop PC computer and monitor screen and keyboard. 3D illustration.
(Image credit: solar seven via Getty Images)

Ah, the PC in the spare room. Back when "going on the computer" was an event, not a daily necessity, I cut my teeth on MS-DOS games. I didn't really know how they worked, and I wasn't very good, but there a hardware and gaming enthusiast was born. Now Microsoft has released the source code for MS-DOS 4.0 in partnership with IBM, and apparently, all it takes is the logo to make me go all mushy.

This isn't the first time Microsoft has open-sourced MS-DOS, as its GitHub repository already has versions 1.25 and 2.0, which were originally shared at the Computer History Museum back in 2014. Now a decade later it's MS-DOS 4.0's turn to get the source code release treatment.

Microsoft's version of MS-DOS 4.0 was originally released back in 1986 after a joint development with IBM for portions of the code, and a somewhat difficult relationship between the two at the time led to two branches eventually being released, MS-DOS 4.0 and what is now referred to as IBM DOS 4.0.

The Microsoft version, sometimes referred to as European MS-DOS 4.0, featured support for the New Executable file format, and pre-emptive multitasking. However, it retained many of the limitations of MS-DOS 3.0, including the inability to use memory above 640 KB.

While neither version set the world on fire—and perhaps overall both releases should be viewed more as Vista than Windows 7—I'm pretty sure it was one of these versions I used on our rubbish spare room machine, and that it allowed me to play Doom and F-15 Strike Eagle II

That was good enough for little ol' me. Simpler times, ey?

Your next upgrade

Nvidia RTX 4070 and RTX 3080 Founders Edition graphics cards

(Image credit: Future)

Best CPU for gaming: The top chips from Intel and AMD.
Best gaming motherboard: The right boards.
Best graphics card: Your perfect pixel-pusher awaits.
Best SSD for gaming: Get into the game ahead of the rest.

The open-sourcing of this version of MS-DOS was made possibly by a researcher, who got in touch with Microsoft regarding some unreleased beta binaries of DOS 4.0 they'd found on a stack of old floppies from their time working at Lotus. These disks were imaged and scanned to reveal that they were earlier, unreleased versions of the OS.

This discovery, along with some included printed documents, kicked off a hunt through the Microsoft Archives where the original full source code of MS-DOS 4.0 was found.

Microsoft says that they've successfully run it on an original IBM PC XT, a "newer" Pentium, and within open source PCem and 86box emulators, so if you're the sort of person that likes messing around with a bit of PC archaeology, here's another old-school curiosity to enjoy.

Andy Edser
Hardware Writer

Andy built his first gaming PC at the tender age of 12, when IDE cables were a thing and high resolution wasn't—and he hasn't stopped since. Now working as a hardware writer for PC Gamer, Andy's been jumping around the world attending product launches and trade shows, all the while reviewing every bit of PC hardware he can get his hands on. You name it, if it's interesting hardware he'll write words about it, with opinions and everything.

Read more
EA just released source code for a bunch of old Command and Conquer games, and added Steam Workshop support to bangers like C&C 3: Tiberium Wars
gotg llama
Blasting AI into the past: Modders get Llama AI working on an old Windows 98 PC
Commodore 64 keyboard and tape player
A small doughnut shop in Indiana is still using Commodore 64s as register systems, 42 years after their initial release
A photo of two Intel 8080 processors, side-by-side, resting on a clear box
All of today's mighty CPUs owe a debt of gratitude to the Intel 8080, which just turned 50
Windows 98 - A customer looks at a box in Japan
This third-party retro UI for Discord looks like—and even runs on—Windows 98
Clock Tower cover art
Horror classic Clock Tower's Windows 95 port jabbed a giant pair of scissors through my rose-tinted glasses
Latest in Hardware
Nvidia RTX 5080 Founders Edition graphics card from different angles
Nvidia says it really has sorted RTX 50-series black screen issues this time around as yet another driver fix finds its way to release
A collection of upturned CDs, DVDs and Blu-Rays on a carpeted floor
Warner Bros says it will replace certain DVDs damaged by 'disc rot', but you might not get the same movie you sent in for replacement
Skytech Shadow gaming PC on a blue background
Screw waiting for GPU restocks, with an AMD RX 9070 gaming PC going for as cheap as this I'd hop on the pre-built bandwagon
A screenshot from a YouTube video showing a sticker being pulled from the front of a fake 9800X3D CPU
This Amazon-bought fake AMD Ryzen 7 9800X3D is actually a 14-year-old Bulldozer chip with a cheap sticker on it
OneXPlayer 2 pro on a table
I never thought a handheld PC bloated with Windows could replace my Steam Deck, but after gaming on an old OneXPlayer 2 Pro I can see now I judged it too harshly
Asus ROG Swift PG27UCDM gaming monitor
Asus ROG Swift PG27UCDM review
Latest in News
Pedro Pascal as Joel in a coat in winter looking unhappy
'Don't you know what he did?': The truth comes out in The Last of Us Season 2 trailer
Aloy
'Creepy,' 'ghastly,' 'rancid': Viewers react to leaked video of Sony's AI-powered Aloy
Split Fiction trailer still - Zoe and Mio standing side by side, wearing glowing neon sci-fi jammies
Split Fiction sells 1 million copies over 2 days
A soldier looks out over the Verdansk map, as a single tear rolls down his cheek.
The original Verdansk map is returning to Call of Duty: Warzone, to celebrate which we get a soldier crying to Nat King Cole
More than 5 years after launch, Control gets a surprise patch that lets everyone play the Hideo Kojima mission
Swen Vincke
Swen Vincke stamps seal of approval on Stardew Valley mod that yoinks the Baldur's Gate 3 cast out of D&D and into a cosy pastoral life