Microsoft Posts Source Code For MS-DOS and Word For Windows
An anonymous reader writes "Microsoft, along with the Computer History Museum, has posted the source code for MS-DOS 1.1 and 2.0, and Word for Windows 1.1a. It's been a long time coming — DOS 2.0 was released for IBM PCs in 1983, and Word for Windows 1.1a came out in 1990. The museum, with Microsoft's consent, has made the code available for non-commercial use. They've also explained some of the history of this software's development: '[In August, 1980], IBM had already contracted with Microsoft to provide a BASIC interpreter for the PC, so they asked them to investigate also providing the operating system. Microsoft proposed licensing "86-DOS", which had been written by Tim Paterson at Seattle Computer Products (SCP) for their 8086-based computer kit because the 16-bit version of CP/M was late. When SCP signed the licensing deal [7] with Microsoft, they didn't know for sure who the computer manufacturer was. Paterson said "We all had our suspicions that it was IBM that Microsoft was dealing with, but we didn't know for sure." [1] He left SCP to work for Microsoft in 1981. "The first day on the job I walk through the door and 'Hey! It's IBM.'" Microsoft originally licensed 86-DOS in December 1980 for a flat fee of $25,000. By the next summer they recognized the importance of owning it and being able to license it to other companies making IBM-PC clones, so they purchased all rights for an additional $50,000.'"
I'm not sure that's needed really. Projects like FreeDOS and the like seem to be fine on their own. The DOS 2.0 source code is more of a curiosity, nothing more.
$x = ($x * 10) % 10 >= 5 ? 1 + int $x : int $x
I guess DOS 6.22 is still somewhere part of their Windows 8.1 64 bits system. Releasing that code might give vulns. to current systems. :)
the Computer History Museum
Because there is historic value in early versions. There is also value in seeing how the apparent problems changed, but where things began is pretty significant.
Oh, sorry, mod this down, I accidentally thought you might even take the half-second to read the first sentence of the summary before commenting. I forgot where I was for a moment there.
To the best of my knowledge, the last version of Windows to actually be based on DOS was Windows ME. 2000, XP and later followed the NT base.
Someone posted a mirror to GitHub: https://github.com/Incognito/msdos
No, their roots were in programming. This was their foray into marketing. Anybody who used a Radio Shack Model 100 (or its brethren) knows that Microsoft was capable of developing an excellent product at one point.
/Oblg. M$ joke
Windows 95: 32 bit extensions and a graphical shell for a 16 bit patch to an 8 bit operating system originally coded for a 4 bit microprocessor, written by a 2 bit company, that can't stand 1 bit of competition.
Their roots are in brokering deals. They bought some rights from Patterson and got them cheap by concealing their end customer (IBM). They then hired Patterson and tossed him another $50K for the remaining rights to distribute. $75K altogether. If Patterson had said "No thanks" to the employment offer and hung onto distribution rights, SCP might have done a better job building upon DOS and they'd be the rich people. Microsoft would have gone on to be one of many apps developers in a diverse DOS-based ecosystem.
Microsoft has always feared the independent developer. They have become adept in killing off potential competition or buying up expertise and burying it somewhere in the Redmond campus.
Have gnu, will travel.
Are you intending to write an antique DOS system in assembler that uses some really, really primitive version of FAT - by the looks of it? Then probably best not to look.
The other 99.99999% of the planet, however, might find it interesting.
Personally, I find anything still written in assembler to be totally worthless. If you wanted that, you could have run it through a disassembler at the time of it's release and it's not-much-more work to get to something just as readable.
Like the original Prince of Persia code dump - only useful for historical reference and to find out how data and data structures were processed in terms of file compatibility etc. (so, long-dead OS and filesystems are pretty worthless, especially when we know almost everything about them already).
And honestly, from a first glance, it's SUCH basic code that if you were to program any kind of DOS, and needed to be MS-compatible, the only obvious way to do so would be a basically word-for-word re-writing of what they have. There's almost zero room for "invention" or "interpretation" here, so it's mostly uncopyrightable except as a collection of code. Most functions are literally a handful of lines of assembler on well-known data structures that do one quite obvious thing and the necessary - and prescribed by the way the OS works - register / stack shuffling to make it happen.
If I were on the FreeDOS team, yeah, I wouldn't want to read it. But honestly, the chances are I wouldn't bother - I'd have a much nicer, more modern, easier-to-read, collaboratively-written project that does an awful lot more than these antique DOS's could ever do sitting right in front of me, already written. There's nothing "useful" here, but it buys MS some "open-source" lip-service.
That doesn't mean that Windows 8 is 'based on Dos' anymore than a Linux box with the Dosbox emulator running Dos apps in a windows is.
Incidentally in 64 bit Windows there is no NTVDM or support for 16 bit Windows - you can have 16 bit apps running on a 32 bit kernel via a thunking layer (Windows On Windows), or 32 bit apps running on a 64 bit kernel via a thunking layer (WOW64) but you can't have 16 bit apps running on two thunking layers on a 64 bit kernel. Since Microsoft won't support memory above 4GB using PAE on 32 bit Windows you pretty much have to use 64 bit Windows on a machine with more than 4GB. In fact even on a 4GB machine you'll have more usable memory with a 64 bit OS than a 32 bit one - there's a hole under 4GB for PCI memory mapped space. The only way to get access to the memory the hole covers up is to see it about 4GB. With current Microsoft OSs that is only supported on 64 bit OSs. So in the long run most machines are going to come with a 64 bit OS and that means no NTVDM.
Of course part of it is probably that 16 bit Windows and Dos apps have pretty much ceased to be commercially important. And if you want retro games you've been better off with something like Doxbox than NTVDM for some time.
echo -e 'global _start\n _start:\n mov eax, 2\n int 80h\n jmp _start' > a.asm; nasm a.asm -f elf; ld a.o -o a;
Jugalator's statement: There's got to be some DOS 6.22 code in there.
Your response: Windows doesn't actually run on top of DOS anymore.
My conclusion: You can't read.
Table-ized A.I.
Maybe that's it, maybe Gates was a great coder, ...
Andy Hertzfeld, over at folklore.org, has made some comments regarding how poor Gates' coding skills appeared to be.
#DeleteChrome
This short history summary shows that Microsoft's roots are in marketing, not programming.
In 1975 there is BASIC for the Altair. In 1976 Microsoft was selling BASIC to Fortune 500 clients. In 1977 it is branching out into FORTRAN, COBOL. and Assembler. In 1978, Microsoft releases Applesoft BASIC.
[In 1979] Microsoft 8080 BASIC is the first microprocessor product to win the ICP Million Dollar Award. Traditionally dominated by software for mainframe computers, this recognition is indicative of the growth and acceptance of the PC industry.
June 18, Microsoft announces Microsoft BASIC for the 8086 16-bit microprocessor. This first release of a resident high-level language for use on 16-bit machines marks the beginning of widespread use of these processors.
[in 1980] Microsoft introduces the Pascal language, develops XENIX (enhanced version of the UNIX operating system), and begins to explore spreadsheet applications. It also releases its first hardware product, the Microsoft SoftCard, which allows Apple II users to run CP/M-80. Microsoft will provide BASIC, FORTRAN, and COBOL languages for the Z-80 SoftCard.
Microsoft Time Line
In 1980 Microsoft had a solid track record in development tools for the microcomputer and was well positioned to become a major player in operating systems and applications software in both the business and consumer markets.