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
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
Diablo leers from the cover of Diablo 1.
The best way to play Diablo 1 on pretty much anything just got an update for a 20-year-old Apple OS that runs on a dead chipset, one lunatic somewhere presumably rejoices
Various creations in Minecraft, including computers and calculators.
This Minecraft creation blots out the sun for the villagers below, they surely praise it as God, but we know it really to be a functioning 32-bit computer with 2 kB of RAM
LinuxPDF, linux running in a PDF document
Here's Linux running inside a PDF, running inside a browser, running on a Windows PC
Latest in Hardware
An astronaut with helmet doffed looks up at a giant Sugar 1 gaming handheld, floating in space. The rotatable controllers are extended upward, and look like arms.
Sugar 1 is a shape-shifting handheld with two screens and rotatable controllers that make it look like a legally distinct transformable robot
Half-Life 2 running on 8 MB VRAM on a tiny resolution in Windows XP with graphics settings disabled or lowered to ridiculously light levels
Getting Half-Life 2 to work on 8 MB of VRAM means turning it into an eerily befitting voidscape: 'there were absolutely no effects left'
Nvidia CEO Jensen Huang delivering pancakes and sausages to pre-GTC show hosts and guests, wearing an apron
'There might be a party. I wasn't invited,' says Jensen Huang of the rumoured TSMC proposal to join forces and run Intel's chip fabs
A Samsung 9100 Pro SSD in both 2 TB and 4 TB sizes.
Samsung 9100 Pro 2 TB SSD review
Varjo Aero
Nvidia confirms 'open issue' with Varjo Aero VR headsets and RTX 50-series graphics cards after affected users ask for help
Nvidia RTX 4090 Founders Edition graphics card
A single RTX 4090 managed to brute force crack an Akira ransomware attack in just 7 days
Latest in News
A blue dragon rises into storm clouds
Wizards of the Coast throws a bone to players who miss vanilla Magic: The Gathering with a dragon-themed set called Tarkir: Dragonstorm
Lonely Mountains: Snow Riders
Lonely Mountains: Snow Riders is getting a new mountain next month and a whole bunch more throughout the year, including a game editor
Lady smiling with the sun in her face
Clair Obscur: Expedition 33's director was 'starving for new turn-based RPGs,' and figured if he wanted them, there would be others out there who'd want to play his game
farcana
'The Middle East's answer to Marvel Rivals' is an 'AI-powered', crypto-infused hero shooter that looks like hot garbage
A monster made of glowing skulls has a brinrevolver aimed at it in Abyssus.
Wield a brinerevolver as a brinehunter in Abyssus, the briniest ‘brinepunk’ shooter this side of the Mariana Trench
Two airships fire broadsides into each other's hull in Echoes of Elysium.
In this airship-building survival game, I faced an enemy worth punching trees over: 'The hubris of man'