756 points · by hornokplease · 12y ago · 204 comments
The user manual contains some significant errors. Most of these are
due to last minute changes to achieve a greater degree of compatibility
with IBM's implementation of MS-DOS (PC DOS). This includes the use
of "\" instead of "/" as the path separator, and "/" instead of "-"
as the switch character. For transporting of batch files across
machines, Microsoft encourages the use of "\" and "/" respectively
in the U.S. market. (See DOSPATCH.TXT for how you can overide this.
The user guide explains how the end-user can override this in CONFIG.SYS).
Also this, from the documentation for the CharOper system call (that never made it outside of MSFT?) in SYSCALL.txt: AL Function
-- --------
0 DL, on return, will contain the DOS switch
character. On most systems this will default to
'-'.
1 Set the switch character to the character in DL.
2 Read the device availability byte into DL. If
this byte is 0, then devices must be accessed in
file I/O calls by /dev/device. If this byte is
non-zero, then the devices are available at every
node of the directory tree (i.e. CON is the
console device not the file CON). This byte is
generally 0.
3 Set the device availability byte to the value in
DL.
It looks like we have IBM to blame for '\' and '/' as a path separator/switch character in DOS/Windows, Microsoft originally was using the Xenix '/' and '-' respectively. I knew that Microsoft used Xenix fairly heavily internally but never thought that DOS was quite so influenced by it.I wonder if many other hidden or deprecated functions are present in these releases.
Can we view, modify, redistribute?
No one wants to get sued for these things, or being found to violate some end user license agreement with some other Microsoft software.
On the other hand, I'd love to find out that people viewing this code contribute an improvement that no one in Microsoft saw in decades that helps them improve something today, leading them to soften their stance on Free Software and copyright.
We can dream.
Just speaking for myself, I come down pretty firmly in the "Don't know, don't care" camp for both questions.
In a world where FreeDOS exists, there just isn't any practical value to having the source code to MS-DOS 2.0 available under a truly open license. That code's only interesting as a historical exhibit. If all we can do is look at it and go, "Huh, so that's how that worked", that's fine with me.
Unless Microsoft licenses it under a license with the most explicit and extensive protections against patent lawsuits.
Yes, Yes, No.
But can you publish a diff, which someone could use to recreate your modified version?
In reality, if redistribution of source is forbidden, restricting unreleased modifications of source is hard to enforce.
No redistribution and the license can be revoked.
(also: must be research or education, mustn't be commercial, and you are licensing derivative works to Microsoft somehow)
If you create Derivative Works, you grant to Microsoft a non-exclusive, perpetual, irrevocable, royalty-free, assignable, sublicenseable license to reproduce, distribute, publicly display, modify, use, make, have made, import, and sell such Derivative Works.
EDIT: I can just imagine a future lawsuit:
A: Did you read the MS-DOS source code released by Microsoft on XX? We have logs to show you downloaded it.
B: Yes, but that has nothing to do with this lawsuit!
A: Incorrect. The MS-DOS source code you viewed is under Patent ZZ. We believe you used the IP found in the MS-DOS source code to build your flying car.
Judge: Guilty!
Yes. Design patents last 14 years. Utility patents last 20 years.
The person you are responding to, like most people, likely uses the words copyright, trademark and patent interchangeably as if they are synonyms.
P.S. Google Patents is useless for answering this question. "Referenced by" is included in the search, so any patent from 1983 that is ever referenced by a Microsoft patent (from any year) shows up in the results.
I don't think reading some source code will put anyone at risk of frivolous lawsuits (unless they actually do infringe, in which case it would be a grain of supporting evidence).
Software patents are bad enough without gratuitous fear-inducing claims added.
There's very little to learn from operating system design point of view in there, and better sources are available under more permissive licenses -- ie open source licenses.
It looks like a PR stunt to me.
It's not a PR stunt, it's a part of computing history (whether you like it or not). I spent a lot of time hacking around the internals of DOS and I think this might be a fascinating read. I remember pouring over Ralf Brown's Interrupt List and stepping through various DOS memory structures trying to create some impossible app. Good times.
In reality, getting the Windows source released so that the Wine team can do this would be much more useful. From what I understand Windows has a lot more undocumented but widely used API's that Wine tries to emulate by trial and error. Instead of having a complete emulation they break it down by which programs it can and cannot run because of these hidden API's.
This is definitely a publicity stunt, no question about it. It still provides some very minimal value and perhaps this is MS dipping their toes into the OSS water when it comes to old commercial products.
What you are saying is like saying that putting Ford Model T blueprints to museum is useless because we have far better sources today to study car mechanics from.
Actually there is quite a bit already for a single person to digest, if you want to understand the real details of how everything works. I learned about the DOS family by reading this book:
http://www.amazon.com/Dissecting-DOS-Code-Level-Operating-Sy...
UnixV6 and the Lions' book come close, but Unix is still far more complex than DOS because of its multitasking, multiuser heritage. Early Unices may be within the realm of an average student to grasp, but things like the BSD and Linux kernels are orders of magnitude bigger and more complex, which means that it's nearly impossible to get down to the details when studying them and the best thing one can hope for is a high-level overview of the various subsystems and how they interact. DOS is simple enough that a single person can study the whole OS at the level of individual instructions (and write an OS similar to it).
I understand your point, but in one important sense, this release has value. Someday, a scholar is going to write the history of drive letters and their perverse effect on all of computing -- up to the present day, where they're buried under a thin patina of respectability in the newest versions of Windows.
Under Windows, including the most recent versions, you can get repeatable results for procedures that involve peripherals only if you disconnect them all, then reconnect them in the same order each and every time. Why? Drive letters.
This might be excusable on historical grounds, except that, when MS-DOS was first written, there was already an OS without drive letters -- Unix.
MS-DOS was a program that wrote stuff to disk for you, read the keyboard for you, listened to interrupts for things and showed useful error messages such as 'Retry, Fail or Abort?'.
There was no networking to speak of, certainly not TCP/IP as we know it, no user permission things, you couldn't run cron jobs and the list goes on. All of this normal stuff that an Operating System does was well established on UNIX boxes, VAXes and, to a certain extent, on the BBC Micro.
Microsoft didn't release the source code for these old versions of their software so people could use it, hack on it, and make new versions.
They released it because it's historically interesting.
As someone who is both a developer and a history graduate, I think it's fascinating.
* MS-DOS v1.1 and v2.0: http://www.computerhistory.org/atchm/microsoft-research-lice...
* Word v1.1a: http://www.computerhistory.org/atchm/microsoft-research-lice...
* https://mega.co.nz/#F!jAhUzLCC!2i187wbXL7WUF3587YaMfw
* http://www.sendspace.com/filegroup/61DF3FLY3Z3pnWTHQMzcRQ
SHA-256:
ed62a98801f15cf9b7f229e33c7413d1ff9d1e1e91e9aa2468742589b65e156d msdos.zip
b424c3c1c1d7083cc74c9b1b77823eb511739c4237cb7a2f1650b75391f43ff6 Word-1.1a-CHM-Distribution.zip ; /* Following comment is preserved verbatim for eternity */
; /* Rounding becomes a non-existant issue due to brilliant re-thinking */
; /* "What a piece of work is man
; How noble in reason
; In form and movement,
; how abject and admirable..."
; Bill "Shake" Spear [describing Sand Word] */ $ grep -ri fuck .
./Opus/asm/wordgrep.asm:; BP is used as always, the other registers are free to fuck with.
./Opus/asm/wordgrep.asm: je another_fucking_out_of_range_jump
./Opus/asm/wordgrep.asm:another_fucking_out_of_range_jump:
MS-DOS v1.1 & v2.0: $ grep -ri fuck . ;FIND.ASM
165 badfart proc far ;(what a hack!!)
166 ret
167 badfart endpI don't think there's much to gain in releasing it under a broader license - I would imagine that most programs that would need to expand or otherwise build upon this code would be better served by using one of the modern clones, such as http://en.wikipedia.org/wiki/FreeDOS
They have a modern toolchain, are actively in development, and seem like they would be much easier to add features to, if one found themselves with such a need.
I'm a proponent of OSS, and if MS wanted to release this under MIT that'd be great.. But I have a hard time thinking of projects that are stopped by the current license.
My guess is that creating a visualization would be a rather transformative use of the work - Redistributing your resulting visualization would likely be firmly in fair use territory.
Comparing the code for modularity is writing an essay. You don't need a redistribution license for the code to do that.
In any event, I hope they do eventually release using an open license. But as a fan of the history of our industry, I'm glad they released it at all.
You may not distribute or publish the software or Derivative Works.
You may not use or test the software to provide a commercial service unless Microsoft permits you to do so under another agreement.
You may publish and present papers or articles on the results of your research, and while distribution of all or substantial portions of the software is not permitted, you may include in any such publication or presentation an excerpt of up to fifty (50) lines of code for illustration purposes.
There was obviously scope for personality in the commenting...
arena_free_next:
CMP BYTE PTR DS:[DI],arena_signature_end
; end of road, Jack?
retz ; never come back no more
CALL arena_next ; next item in ES/AX carry set if tras
And a nice reminder of the other big players of the day: IF WANG ;Are we assembling for WANG?You'd have to actually, you know, infringe their copyrights.
It's hard to know if you're one of the many who are confused about copyright, patent, and trademark but just reading the code doesn't put you on the hook for anything.
If dos_ver == "dr dos" then
Print("error")
Abort()
End if- You may not distribute or publish the software or Derivative Works.
I'm not saying it's a good license, but if you do not agree with or at least intend to follow it then perhaps you should have not downloaded it to begin with.
Bang up job by MS legal on this one. I'm confident this will prevent other distributions of this software.
MS-DOS 2.x is not so interesting in comparison.
And that's why Microsoft is at a turning point in 2014.
> Certain structures, constants and system calls below
> are private to the DOS and are extremely
> version-dependent. They may change at any time at the
> implementors' whim.
That pretty much summarises my experience of trying to work with Microsoft products. Arbitrary, undocumented API changes every time the version number changes "at the implementors' whim".Not only from a historical perspective, but for future people who may need to run some ancient software in order to extract some ancient data from obsolete formats.
I sure wish Turtlebeach would open source the software on their Audiotron. They abandoned it maybe 10 years ago, but it's still far and away the best standalone media player, but it could seriously use a software update.
Why the ---- does this have 656 upvotes? Microsoft PR campaign anyone?
"Microsoft had under 100 employees and a Microsoft product (MS-DOS) had less than 300KB". Yeah, that is still alot of employees compared to new software companies today. And the sourcecode? Well resources for software development were much scarce back then, both computer and human wise.
MS-DOS cross-compiled to JAVASCRIPT.
MS-DOS running in pure CSS.
Word for Windows as pure HTML 5 (<brainfuck> element).
DOOM RUNNING NATIVELY on NATIVE MS-DOS on a PEBBLE.
Perhaps I've taken this meataphor too far?
And all released in the "look but don't touch" licence, I guess they need some waving cause of the Win 8 fiasco, the 8.1 fiasco and the retiring support for XP, if it hadn't been for the lucky Win 7, Microsoft would have gone the way of Nokia.
I guess they got around to removing all the curse words and comments where the programmers bash each other.