RU version is available. Content is displayed in original English for accuracy.
Advertisement
Advertisement
⚡ Community Insights
Discussion Sentiment
55% Positive
Analyzed from 1048 words in the discussion.
Trending Topics
#dos#kildall#api#code#paterson#qdos#ibm#https#software#assembly

Discussion (14 Comments)Read Original on HackerNews
https://opensource.microsoft.com/blog/2026/04/28/continuing-...
The STORE bug discovery is equally interesting from a software archaeology perspective. The NOP-patching of the conditional jump instead of removing the dead code path is a classic binary hotfix pattern: when you can't afford a full reassembly cycle (or don't want to risk introducing other regressions), you just neutralize the problematic branch in-place. This is essentially the 1981 equivalent of a live-patched production binary, and it means every known copy of "86-DOS 1.00" was actually running 1.01 logic for file sizes above 64K.
The ROL vs RCL assembler bug writeup is a beautiful bitwise brain-teaser. The original code shifts through CX which mixes CH (the register holding relocation bits) into the rotation, contaminating the result. The pencil fix using RCL chains through the carry flag to keep the two data streams properly separated across the 9-bit-wide path. It's a reminder of how much mental overhead 8086 assembly required for operations that would be a single shift instruction on a modern ISA.
(Maybe he meant the model, rather than the exact serial number? But he was in the PNW, and I understand had been very involved in the early microcomputer scene there, so I wouldn't be surprised.)
He was actively using it when he said this, so it still worked at the time.
If he still has it, some company that built an empire atop DOS should find some money in the sofa cushions, and make him an offer.
It's somewhat ironic that Kildall was angry about DOS copying the CP/M API because Digital Research went on to release DR-DOS, an 8086 operating system that was API compatible with MS-DOS.
More accurately, “the assembly language programmer Tim Paterson has always claimed that he did not look at the implementation”.
That Kildall later decided that turnabout is fair play, is not that surprising…
However my point is that now, everyone can assess the source code for themselves.
The best source I've seen for Kildall's viewpoint is his chapter in the book They Made America. It quotes sections on this dispute from his unpublished memoir (his children later allowed the Computer History Museum to publicly release a portion of the book, but not the part that They Made America quotes from). Kildall was angry that DOS was API compatible with CP/M, and seems to have believed that this constituted a copyright violation:
> “Paterson was not writing a computer application according to DRI specs, i.e., cooking from a recipe. He was creating a derived work based on the cookbook copyrighted by someone else. When Paterson wrote QDOS with Kildall’s manuals “at his side” (in the words of Gary Rivlin in The Plot to Get Bill Gates), he was using materials marked on every page: “All Information Contained Herein is Proprietary to Digital Research.”
> “So that software developers would know how to write programs for its still-secret project, IBM had to let selected programmers have a list of API function calls. Kildall was angry to find how much of CP/M’s proprietary list appeared there. He had no idea IBM had a deal with Gates. He was just upset that IBM itself seemed to have copied his interfaces. In his unpublished memoir he says he furiously got through to IBM. They immediately dispatched a manager and an attorney to Pacific Grove. “I showed the IBM attorney definitive evidence that PC-DOS was a clone of CP/M and immediately threatened a lawsuit for copyright infringement. The IBM attorney compared the API interface, and I can say clearly that he fairly blanched at the comparison and stated that he was not aware of the similarity. I told him that he should take note and become aware at the earliest opportunity, or else he should face a major lawsuit.”
> “By the time he wrote his memoir, Kildall saw the decision not to sue as a fateful error. He grew increasingly irate about the similarity of PC-DOS and CP/M. He writes: “The first twenty-six function calls of the API in Gates’s PC-DOS are identical to and taken directly from the CP/M proprietary documents [CP/M manuals].” Then he poses a challenge for his old friend. “If you think Bill Gates invented those function calls, ask him why print string (function 9) ends with a dollar sign. He will not know.”
> “What Paterson essentially did was rewrite the bottom part of the software—improving the way files were stored and adapting the program to a 16-bit machine—while copying most of the top part of Kildall’s operating system interfacing mechanisms. Even if QDOS and CP/M were 80 percent different, as Paterson has insisted, he took almost unaltered Kildall’s interrupt mechanism—the key innovation.”
> “To demonstrate how far Paterson mimicked CP/M’s interface, the first 36 Int-21 functions, Kildall’s memoir devotes an appendix to comparing the sequence and language of CP/M and those of QDOS and MS-DOS. A few words were changed. Kildall’s “Read Sequential” function became “Sequential Read”; “write sequential” became “sequential write”; “Read Random” was called “Random Read.” And so on.
At the time Kildall wrote his memoir, and when Harold Evans wrote They Made America, the question of whether APIs are copyrightable had not been answered. However, Google v. Oracle has settled that writing an implementation of someone else's API is fair use.