TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Microsoft makes source code for MS-DOS and Word for Windows available to public

756 点作者 hornokplease大约 11 年前

39 条评论

mato大约 11 年前
This tidbit from the DOS 2.0 README.txt (section 5) is fascinating:<p><pre><code> 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&#x27;s implementation of MS-DOS (PC DOS). This includes the use of &quot;\&quot; instead of &quot;&#x2F;&quot; as the path separator, and &quot;&#x2F;&quot; instead of &quot;-&quot; as the switch character. For transporting of batch files across machines, Microsoft encourages the use of &quot;\&quot; and &quot;&#x2F;&quot; 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). </code></pre> Also this, from the documentation for the CharOper system call (that never made it outside of MSFT?) in SYSCALL.txt:<p><pre><code> AL Function -- -------- 0 DL, on return, will contain the DOS switch character. On most systems this will default to &#x27;-&#x27;. 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&#x2F;O calls by &#x2F;dev&#x2F;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. </code></pre> It looks like we have IBM to blame for &#x27;\&#x27; and &#x27;&#x2F;&#x27; as a path separator&#x2F;switch character in DOS&#x2F;Windows, Microsoft originally was using the Xenix &#x27;&#x2F;&#x27; and &#x27;-&#x27; respectively. I knew that Microsoft used Xenix fairly heavily internally but never thought that DOS was quite so influenced by it.
评论 #7471094 未加载
评论 #7468769 未加载
评论 #7469147 未加载
spodek大约 11 年前
Under what license?<p>Can we view, modify, redistribute?<p>No one wants to get sued for these things, or being found to violate some end user license agreement with some other Microsoft software.<p>On the other hand, I&#x27;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.<p>We can dream.
评论 #7467662 未加载
评论 #7467227 未加载
评论 #7467133 未加载
评论 #7467274 未加载
评论 #7468649 未加载
评论 #7468494 未加载
评论 #7467214 未加载
bovermyer大约 11 年前
I think a lot of people here are missing the point of this.<p>Microsoft didn&#x27;t release the source code for these old versions of their software so people could use it, hack on it, and make new versions.<p>They released it because it&#x27;s historically interesting.<p>As someone who is both a developer and a history graduate, I think it&#x27;s fascinating.
评论 #7469653 未加载
ehPReth大约 11 年前
Direct(er) links:<p>* MS-DOS v1.1 and v2.0: <a href="http://www.computerhistory.org/atchm/microsoft-research-license-agreement-msdos-v1-1-v2-0/" rel="nofollow">http:&#x2F;&#x2F;www.computerhistory.org&#x2F;atchm&#x2F;microsoft-research-lice...</a><p>* Word v1.1a: <a href="http://www.computerhistory.org/atchm/microsoft-research-license-agreement-msword-v-1-1a/" rel="nofollow">http:&#x2F;&#x2F;www.computerhistory.org&#x2F;atchm&#x2F;microsoft-research-lice...</a>
评论 #7467107 未加载
ehPReth大约 11 年前
From .&#x2F;Opus&#x2F;asm&#x2F;formatn.asm in Word v1.1a:<p><pre><code> ; &#x2F;* Following comment is preserved verbatim for eternity *&#x2F; ; &#x2F;* Rounding becomes a non-existant issue due to brilliant re-thinking *&#x2F; ; &#x2F;* &quot;What a piece of work is man ; How noble in reason ; In form and movement, ; how abject and admirable...&quot; ; Bill &quot;Shake&quot; Spear [describing Sand Word] *&#x2F;</code></pre>
ChuckMcM大约 11 年前
Most if not all of what MS-DOS did has been re-created under FreeDOS. [1] Writing an equivalent to Word 1.1 is also pretty straight forward. So I&#x27;m not sure what the fuss is about with regards to licenses, it is a historical artifact, and fun to look at, but kind of useless as a code base to start from.<p>[1] <a href="http://www.freedos.org/" rel="nofollow">http:&#x2F;&#x2F;www.freedos.org&#x2F;</a>
selectodude大约 11 年前
I wonder if they deleted all the &quot;fucks&quot; out of it. The Win2K source code was good for a laugh.
评论 #7467123 未加载
评论 #7467236 未加载
评论 #7467816 未加载
评论 #7467741 未加载
dalek2point3大约 11 年前
just in case someone from MS is reading -- is it also possible to put this code under the public domain or at least under a free license? I&#x27;m very worried about the fact that some of this old code, though useless to MS at this moment, will be lost for follow-on use by folks today.
评论 #7467109 未加载
评论 #7467101 未加载
评论 #7467125 未加载
lunchbox大约 11 年前
Clarification: this is about MS Word 1.1a, which was released in 1990.
评论 #7468484 未加载
steven_pack大约 11 年前
Fascinating. Now THIS is a museum.<p>There was obviously scope for personality in the commenting...<p><pre><code> 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&#x2F;AX carry set if tras </code></pre> And a nice reminder of the other big players of the day:<p><pre><code> IF WANG ;Are we assembling for WANG?</code></pre>
herokusaki大约 11 年前
Pretty cool. One question comes to mind, though: if I ever want to contribute to FreeDOS or LibreOffice should I refrain from reading this code?
评论 #7467272 未加载
SixSigma大约 11 年前
From Word<p><pre><code> If dos_ver == &quot;dr dos&quot; then Print(&quot;error&quot;) Abort() End if</code></pre>
bdg大约 11 年前
Not having an ability to view the source online was driving me insane. Hopefully I scratched your itch too.<p><a href="https://github.com/Incognito/msdos" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;Incognito&#x2F;msdos</a>
评论 #7468699 未加载
评论 #7468774 未加载
评论 #7469675 未加载
DanBC大约 11 年前
My &quot;Future Computers MSDOS 2&quot; manual finally has a use!<p><a href="http://imgur.com/ejnlHY1" rel="nofollow">http:&#x2F;&#x2F;imgur.com&#x2F;ejnlHY1</a><p><a href="http://imgur.com/7NzGGWO" rel="nofollow">http:&#x2F;&#x2F;imgur.com&#x2F;7NzGGWO</a><p><a href="http://imgur.com/ljOV7XJ" rel="nofollow">http:&#x2F;&#x2F;imgur.com&#x2F;ljOV7XJ</a>
评论 #7469255 未加载
pera大约 11 年前
Download link: <a href="http://www.computerhistory.org/atchm/microsoft-research-license-agreement-msdos-v1-1-v2-0/" rel="nofollow">http:&#x2F;&#x2F;www.computerhistory.org&#x2F;atchm&#x2F;microsoft-research-lice...</a>
评论 #7467114 未加载
yuhong大约 11 年前
What is funny is that MS-DOS 6.0 source code had already been leaked. Granting permission to IBM to make OS&#x2F;2 source code available would be nice too BTW.
评论 #7467680 未加载
评论 #7468879 未加载
Tloewald大约 11 年前
Maybe someone will produce a version of Word for Windows 1.1a that runs on a modern OS, and I&#x27;ll be able to open and edit documents that have been impossible to open in later versions of Word (of course Word for Windows 2.0 would open the document, convert it to its new format in place, and then crash, so I&#x27;d need to find un-borked versions of the documents first).
评论 #7468869 未加载
yiedyie大约 11 年前
Microsoft is against the current, the other story that run here at HN is: <a href="https://news.ycombinator.com/item?id=7467165" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=7467165</a><p>And that&#x27;s why Microsoft is at a turning point in 2014.
bite大约 11 年前
Regardless of the license, I definitely like the direction Microsoft seems to be going in. First they make Microsoft office online free to the public, there&#x27;s talk about windows mobile one day being free, and now this. All within a rather short amount of time. I don&#x27;t see myself switching from GNU&#x2F;Linux any time soon however, but I hope Microsoft will soon realize the potential of Open Source. One company I really appreciate is Adobe, they put a surprising amount of effort into Open Source, and also released Photoshop v1.0.1 source. On a side note; I wonder when Windows&#x27; will post their first project on Github.
ciderpunx大约 11 年前
In the syscall docs under &quot;C A V E A T P R O G R A M M E R&quot;<p><pre><code> &gt; Certain structures, constants and system calls below &gt; are private to the DOS and are extremely &gt; version-dependent. They may change at any time at the &gt; implementors&#x27; whim. </code></pre> That pretty much summarises my experience of trying to work with Microsoft products. Arbitrary, undocumented API changes every time the version number changes &quot;at the implementors&#x27; whim&quot;.
qwerta大约 11 年前
Windows source code was available for a long time. My university had access to Win 2000 and some latter versions. Nobody was interested since most kernel hackers used BSD and later Linux.
评论 #7468383 未加载
评论 #7467302 未加载
评论 #7471744 未加载
评论 #7468322 未加载
malbs大约 11 年前
Damn. If only they released Word 2.0. Then I could hack it to work on newer versions of Windows. It&#x27;s still the single best word processing package in the history of this universe.
al2o3cr大约 11 年前
Meh, I&#x27;ll be interested when they release the source from the &quot;fuck over DR-DOS&quot; era. Maybe when the statute of limitations for antitrust expires...
WalterBright大约 11 年前
I think this is great, and long overdue.<p>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.<p>I sure wish Turtlebeach would open source the software on their Audiotron. They abandoned it maybe 10 years ago, but it&#x27;s still far and away the best standalone media player, but it could seriously use a software update.
ilovecookies大约 11 年前
Finally the word soure code has been released! I have been waiting so long for this blessed moment!<p>Why the ---- does this have 656 upvotes? Microsoft PR campaign anyone?<p>&quot;Microsoft had under 100 employees and a Microsoft product (MS-DOS) had less than 300KB&quot;. 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.
yuhong大约 11 年前
Note on the .doc included in Word for Windows 1.1a source code package: You will probably have to unblock the old Word file formats before you can open them in current versions of Word. In Word 2003 SP3 and Word 2007 you have to manually edit the registry, later versions provide UI for doing it. This won&#x27;t work for the Word for MS-DOS files which requires a separate converter.
happycube大约 11 年前
To split hairs, it&#x27;s actually DOS 2.11. MSHEAD.ASM has a version history.
评论 #7468701 未加载
AndreyKarpov大约 11 年前
Checking Microsoft Word 1.1a with PVS-Studio. Just for fun. <a href="http://www.viva64.com/en/b/0245/" rel="nofollow">http:&#x2F;&#x2F;www.viva64.com&#x2F;en&#x2F;b&#x2F;0245&#x2F;</a>
shmerl大约 11 年前
is it useful for DOSbox?
评论 #7467527 未加载
sai1511大约 11 年前
I think making IE open source will be very interesting....!
评论 #7467250 未加载
评论 #7467292 未加载
评论 #7467268 未加载
yiedyie大约 11 年前
I like some of the Microsoft products, but at least if they had been releasing MS-DOS 6 or 7 and Word 5 that would mean at least a bit of something, but this ...<p>And all released in the &quot;look but don&#x27;t touch&quot; 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&#x27;t been for the lucky Win 7, Microsoft would have gone the way of Nokia.
0xdeadbeefbabe大约 11 年前
Those MS-DOS 5.0 manuals were sure good.
sgt大约 11 年前
Well, I had this already - but wouldn&#x27;t mind a legal copy of the source code after all these years.
rkda大约 11 年前
Title&#x27;s misleading. Should have specified the version of Word they&#x27;re open sourcing.
ytjohn大约 11 年前
This will probably lead to a new RTF exploit...
rootuid大约 11 年前
lame. License states that one can&#x27;t host it anywhere. No point to the release. Too little , too late from the dinosaur.
thiagoc大约 11 年前
Error 503 Service Unavailable
gren大约 11 年前
very useful nowaday!
zenciadam大约 11 年前
Source for MS-DOS has been floating around the internet for about 15 years now.<p>I guess they got around to removing all the curse words and comments where the programmers bash each other.