393 points · by jstanley · 4y ago · 208 comments
https://www.pdp8online.com/os/os8/index.shtml
PDP-8 memory is heavily paged. There are 128 word pages- direct addresses can only reach within the current page, and literals (immediate data including addresses to other pages) have to be allocated out of this current page along with the instructions. Second, there are 4K-word fields. So you need to use far jumps and returns to access outside the current field. This is just like PIC microcontroller pages.
OS/8 reserved only two pages for itself. Things like the command interpreter were swapped out to disk or DECTape.
https://en.wikipedia.org/wiki/DECtape
If the application needed device drivers, it got to choose which pages the drivers would occupy- meaning the device drivers had to be written as position independent code. Also I think each driver was limited to two pages..
CP/M had the aura of being something for real pros. Read some journal articles and it looked really complicated. But without suitable hardware I had never any chance to touch it.
In 1983 I went to university where beginner courses happened on VAX/VMS and my definition of "pro" got shifted.
Five years later the Commodore 128 appeared. It had the best of both worlds: could run all C64 games and CP/M. These were magic times.
I passed it on, but wish I didn’t. At this point, I probably could have replaced the switch.
Years later I learned, reading about it, that it was some sort of "professional" OS on which productivity software would be used.
Does anyone actually used that OS on CPC or any other 8bits machine of the 80s to do anything remotely useful? Genuinely interested.
There was huge amounts of CP/M software, much of it distributed for the CPC by "public domain libraries", who'd send you a disk of stuff by post for a small fee. (I ran one such!) But, to be frank, it was a minority taste because there were often faster, more graphical native programs available - i.e. running under the CPC's ROM-based firmware. For example, why would you use a CP/M wordprocessor when you could use Protext? Why would you use a CP/M assembler when you could use Maxam? And so on.
So CP/M programs on the CPC tended to flourish in areas where there wasn't much decent native software. Comms programs, for example - dialling up to a BBS, or even running one. (There were a couple of BBSs run on CPCs using the ROS software under CP/M.) Languages other than BASIC or assembler. Compression/archiving.
CP/M was a bigger thing on the Amstrad PCW because it didn't really have native firmware, and because the hardware was closer to a decent CP/M machine.
In my retro collection I currently have a CPC6128 that boots CP/M and for which I have Turbo C and Turbo Pascal installed.
I prefer to run SymbianOS on it though - it has multitasking, a network stack and a working GUI. ;)
You're probably thinking of SymbOS:
See also: ContikiOS (for 8-bit machines) .. pretty amazing!
I worked my way through the various infocom adventures, and even wrote my own trivial text-based adventure game in Z80 assembly language - later porting it to the ZX Spectrum (which was the actual computer of my youth).
It's fun to play with these systems, and I've rebuilt the CP/M from sources a few times to add simple changes and new built-in commands.
I had a go at Zork too but found it far too complicated to be playable. I might have persevered if the directions were consistent, but it's just too hard to map everything out when you leave a room by going east but then to go back to where you came you need to go south.
I feel like the code was available before and I read parts of it but I may remember it wrong.
Edit: Yes it was indeed "just" a license clarification. Link to the source: http://www.cpm.z80.de/source.html
* 64kb memory (yes that's kilobytes)
* 2 5 1/4 floppy disks
* No hard disk
* 5" monochrome green screen monitor
* 4 MHz CPU
* 37 watt power supply
* weighed ~25 pounds
That CPU lacked a multiply instruction, so you had to implement that yourself.
Some CP/M software (I'm thinking of WordStar specifically here, but no doubt others) almost required you to write a keyboard and display handler in Z80/8080 machine code to get decent performance over the generic CP/M code - been there on Research Machines 380Zs.
What the Wikipedia says, if you piece it together is that Bryan Sparks founded Caldera in the mid 1990's, which bought Digital Research. Around the time Caldera went defunct in 2002, Sparks started DeviceLogics which got renamed to DRDOS Inc. So that must have inherited the Caldera assets, including the Digital Research stuff.
http://www.cpm.z80.de/source.html
http://www.cpm.z80.de/binary.html#operating
Search for MP
Has anyone ever trans-compiled Z80 assembly to a microcontroller? Is that even a thing?
I recall as a youngin watching Gary Kildall on the Computer Chronicles. I was always fascinated by what people were doing with computers. I know it is nostalgia and there's infinitely more to learn about today than there was then, but I do miss that era of computing.
CP/M was not actually needed for this implementation, it could boot on its own: http://timonoko.github.io/Nokolisp.htm
They sold their "first .com domain" to some guy who… seems to be a domain squatter (although he writes a lot about not being one).
Companies that eager to make a quick buck are usually not the ones open-sourcing their stuff.
Let's go a bit further then.
Next, open source SCOPE, NOS/VE and PLATO!
CP/M is a powerful example of what you can do without multitasking. The code is also a time capsule of development techniques and styles of the time.
Can someone point me to a repo to look at it? I can't find a link and it doesn't show up on Google.
Also, MSDOS is opensource now.
https://computerhistory.org/blog/microsoft-ms-dos-early-sour...
IBM turned instead to their second choice, a small company that was supplying BASIC interpreters to many 8-bit micros. The company didn’t actually have a suitable disk operating system product, but the founder knew someone who did. He made a deal to license the source code for a fixed fee and no limitations on redistribution. And that’s how Bill Gates acquired MS-DOS for $50k.
From memory and without consulting much in the way of references:
* Dr Kildall's personal and business partner Dorothy was the company's cofounder and dealt with contracts etc. https://en.wikipedia.org/wiki/Dorothy_McEwen_Kildall
* Dr Kildall, as the CEO of the most significant microcomputer OS vendor in the world at that time, had his own plane, yes, and he piloted it himself. He was going on a site visit to a major customer. It wasn't for fun; it was a business trip, and it wasn't his job to deal with IBM.
* DR had good reasons to refuse the deal.
1. IBM wanted DR to sign a very restrictive NDA; DR had a policy against that. Ms Kidlall refused. MS, as a small company with nothing much to lose, happily signed.
2. IBM offered $250K for an unlimited license. DR quite rightly refused and so did MS. MS retained the rights to licence DOS to other vendors, and it did, a lot, and made a lot of money thereby. The deal IBM offered DR precluded that.
* AIUI, MS licensed SCP QDOS for $50K. It only bought it in later on, for a lot more money. It ended up paying $1M for it, and that was still a bargain.
This is not ancient history. It was only about 40 years ago. Many of the protagonists are still alive and active, notably Tim Paterson and a certain William H Gates the 3rd.
People's memories of what happened vary. One of the IBM guys claimed no meeting happened and they went back to Seattle even more upset (which is the most popular version). Gary claims that after some back and forth between Dorothy and her lawyer she did sign the NDA and that he arrived towards the end of the meeting and had a nice chat about the technical side with the IBM people.
The PC was launched with a choice of three operating systems: PC-DOS (the licensed MS-DOS), CP/M86 and UCSD Pascal. But the first cost less than a third of the other two.
The company I worked for bought both, and I tried CP/M86. There was no reason to prefer it over PC-DOS, and that was that.
CP/M prints a Digital Research copyright when you boot it up; this seems hard to believe. Is there corroboration?
My manager talked with Gary about the CP/M incident at one point. Apparently some "guys in suits" showed up without an appointment one day, wouldn't say who they were, wouldn't sign an NDA, and were demanding to see Gary. They were sent away without talking to anyone. Gary was in his office the whole time, and definitely not flying.
Take it as you like. My Kildall Number is 2.
That said, I do agree the common account is both disrespectful and inaccurate. I never understood why people would believe that Gary Kildall or Dorthy McEwen would brush off a business meeting. They may not have been an empire builders, but they were successful business people who built a successful business.
I find this to be a curious statement, as in not reliable in what way?
Gordon Eubanks company was acquired by Kildall and worked for them at the time. I found this interview to very interesting, he touches on those events and gives his perspective.
https://www.computerhistory.org/collections/catalog/10271736...
Microsoft wasn't necessarily a "small company with nothing to lose", either. They had the best BASIC interpreter in the business[0] and everyone licensed from them already.
[0] This also allowed them to strong-arm Apple into making a few licensing deals that would kill all the "look and feel" shenanigans later into that decade.
Nope and nope.
The “best” is subjective but BBC Basic (as seen on Acorn BBC Micros) was fscking awesome. Far better than Microsoft BASIC in my opinion. Locomotive BASIC then took the BBC BASIC dialect and improved upon it. Amstrad shipped that on their CPC 464 models.
There was a BASIC for the Atari ST I’ve used too which was pretty awesome.
Microsoft BASIC might have been widely used but it was neither universal nor the “best”.
Given the whole thread that spawned from this, I have to say that I think this was poorly-worded.
MS did not have the "best" BASIC by any measure except by one: it had the smallest BASIC in the business.
The early MS BASIC releases ran in 4 kB or so, and even later on after it expanded, it still ran in 8kB.
Bill Gates, Paul Allen and Monty Davidoff were famous for fitting a lot of code into a very small amount of space. That was the basis of the former two's extraordinarily successful careers.
But "best"? No.
By 1981, Acorn offered BBC BASIC, a drastically better language by any measure: structured programming, local variables inside named procedures, inline assembler and more. But it needed 16kB of ROM: a quarter of the memory map of an 8-bit CPU.
> and everyone licensed from them already.
"Everybody" did not license it. AFAICR Atari and Apple didn't; across the ocean, Sinclair and Acorn and Tangerine didn't.
But yes, MS BASIC was dominant on the early American 8-bit machines: it was on Commodore, and I think on Tandy, and of course on the IBM PC right in the ROM if you didn't have disk drives.
Commodore 64 owners may have a different opinion.... :P
At the time, IBM made very expensive mainframes and minicomputers, plus all the associated paraphernalia: terminals, printers, storage.
It didn't make microcomputers. It didn't really sell to the general public. It sold smaller kit to big businesses, and the bigger kit even they couldn't buy: you could only lease it.
Microcomputers were only just beginning to be a product sold to the public for home use. Up until the first few complete, integrated systems in around 1976-1977 (in the USA, the Apple ][, Commodore PET, and original TRS-80), microcomputers had been expensive modular devices, used in business.
That's the market DR sold to, and utterly dominated: relatively price S100-bus small business micros.
DR was not _a_ big player in microcomputer OSes, it was _the_ big player. Almost the only player: I can't think of any other cross-platform microcomputer OS available in the 1970s.
The PC was a highly atypical product for IBM, made from COTS parts, intended to be sold to the public, direct to end-users. It's not really something anyone expected IBM to do, and in this position, it was a company nervously trying to get into a totally new market for them, approaching the industry giant with caps in hands.
IBM offered to buy DOS first, but Gates & Allen rejected it. Gates, being an acquaintance of Gary Kildall, told them to give Digital Research a try. He phoned Gary and said, playfully "They're coming for you next". Gary took this to mean someone was coming for him, and jumped in his plane and left. When IBM showed up, he was mysteriously missing, and everyone involved was confused.
Usually truth is stranger than fiction, but in this case I think the fiction above is hilarious and top-notch alternate history.
https://en.wikipedia.org/wiki/Seattle_Computer_Products
https://www.theregister.com/2007/07/30/msdos_paternity_suit_...
Tim Paterson has stated that API and structure compatibility were explicit goals. That can be achieved w/o copying any code.
re: "5" as the system call interrupt - I've never seen an SCP machine or QDOS, but on an IBM PC interrupt 5 handled print screen (and on the 80186 and up it was a CPU-generated interrupt for BOUND exceptions).
Also, CP/M bore a remarkable resemblance to DEC operating systems, like RT-11.
a small company founded by a kid, Bill Gates, whose parents happened to be IBM's lawyers.
https://www.nytimes.com/1994/06/11/obituaries/mary-gates-64-...
That day was his wife’s birthday and he had already promised her to go flying.
Here it is reported by Stewart Cheifet, his long term co-host of the Computer Chronicles (which is a treasure and freely available in the Internet Archive https://archive.org/details/computerchronicles):
> “... but it’s just as good. It’s just that that day they came was his wife’s birthday, and he said «Sorry, I’m committed to my wife, we’re gonna go flying» [...] He didn’t have to worry about money, but what killed Gary was just the... he was annoyed at what happened. [...] [Cheifet in an excerpt from Computer Chronicles in 1983:] Gary, are we at the end of the line in the evolution of computer hardware?” https://www.youtube.com/watch?v=WdtHS_X1ibg&t=430s
Edit to add: the first video in the Computer Chronicles Archive collection is the “Gary Kildall Special” from 1995, and I quote here a couple of paragraphs:
> “In 1976, Gary and his wife Dorothy founded a company called «Intergalactic Digital Research», later shortened to «Digital Research».”
> “The main thing that CP/M brought that was different from how anybody else was approaching micro-computers, was that Gary made a logical separation of the physical I/O system from what was called the BDOS. The physical layer system was called the BIOS, the Basic I/O System, and that was the term that Gary used in early CP/M. The BDOS was the Basic Disk Operating System. The BDOS was independent of the specific hardware that you had in your micro-computer. By comparison, we are looking at the time of UNIX being out as a major mini-computer operating system, and you could not move executables of any application program from one UNIX machine, unless it was an identical machine, to another system. So that was really a remarkable innovation.”
> “CP/M sold extremely well, and DRI flourished. The company expanded to larger quarters across the street, the number of employees grew from 9 to 24. When the new VAX mini-computer arrived, it was too large to fit inside the building, so the entire structure was lifted off its foundation to accommodate the machine. A beaming Gary told the staff that they would all be getting a «raise» that week.”
A sibling comment (https://news.ycombinator.com/item?id=32082362) tells a story consistent with this one.
The first video from which I quoted Cheifet is from 2013, while this last one is from 1995. I have no way of verifying which one is right.
Here is Tom Rolander again, in 2017, in an interview with the Computer History Museum, describing the background between Gary Kildall, Bill Gates, and IBM, and then a very detailed report of the incident, again consistent with his 1995 report: “Oral History of Tom Rolander” https://www.youtube.com/watch?v=VREZ6Zx_usc&t=5040s
The YouTube algorithm suggested it to me a few months back and I've been watching episodes whenever I get a little downtime. Watching John Dvorak teardown a brand new IBM PS/2 literally and figuratively was pretty fun.
[0]https://adventofcomputing.libsyn.com/episode-36-the-rise-of-...
One of the most impressive things about this is that Bill Gates and MSFT actually had a deal with IBM and came out ahead. Very few companies did this.
https://en.wikipedia.org/wiki/UCSD_Pascal#UCSD_Pascal_and_th...
TP was a Borland app which ran on CP/M and later DOS; it would be no use on its own. It was not an OS.
The 3 OS choices for the IBM PC were:
[1] The UCSD p-System, a Pascal environment with a VM for portable code.
[2] PC DOS, IBM's version of MS-DOS.
[3] DR CP/M-86, at about 3× the price.
I actually used Turbo Pascal for a project, and found it quite good.
Yes, you story is not true at all. Bill's mom was higher-up executive in IBM and persuaded company to do business with her son's company, not DR. That gave rise to Microsoft.
BTW: for a long time many people were using DR DOS as a much better replacement for MS DOS, which was broken in many places (I did that too). Bill was not very much worried about shipping broken stuff, that's why we have seen "great" stuff like Windows ME or Windows Vista. Sadly, at that point Microsoft was practically a monopoly on the operating system market (Unix/Linux were not a thing, Apple was fighting with its own problems).
The good thing that happen to Microsoft and to its users was Windows NT kernel, that was a sort of a rip-off of rather sane VMS kernel, so Windows NT, Windows 2000 and their successors were more or less acceptable operating systems.
This goes against claims like[1] where Bill Gates got the spec for Excel Basic (to become Visual Basic for Applications) and read it and annotated it overnight, to grill the the author on the details, and says "Bill Gates was amazingly technical. He understood Variants, and COM objects, and IDispatch and why Automation is different than vtables and why this might lead to dual interfaces. He worried about date functions. He didn’t meddle in software if he trusted the people who were working on it, but you couldn’t bullshit him for a minute because he was a programmer." and
"Over the years, Microsoft got big, Bill got overextended, and some shady ethical decisions made it necessary to devote way too much management attention to fighting the US government. Steve took over the CEO role on the theory that this would allow Bill to spend more time doing what he does best, running the software development organization, but that didn’t seem to fix endemic problems caused by those 11 layers of management, a culture of perpetual, permanent meetings, a stubborn insistance on creating every possible product no matter what, [...] and a couple of decades of sloppy, rapid hiring"
[1] https://www.joelonsoftware.com/2006/06/16/my-first-billg-rev...
This is also not true at all! Mary Gates never worked for IBM. However, she knew IBM's chairman John Opel.
Microsoft was already one of the biggest most significant microcomputer software companies.
CP/M seemed much nicer.
In 1980 CP/M would have been the obvious choice though for a micro computer, due to market dominance (there were penty of commercial software application available for CP/M, including, later, WordPerfect and Multiplan) and limitation of the hardware at that time. Glad that we moved on.
I still have one: they ran CP/M 3.0, AKA CP/M Plus, the final and richest version.
I don't think it was nicer or better. It was simpler, and so arguably cleaner. A CP/M machine generally had at most 64kB of RAM and floppy drives: machines with a hard disk, or with more RAM, were rare.
So that meant CP/M could be a lot more minimal than MS-DOS.
CP/M grew up into CP/M-86, which turned into Concurrent CP/M, a full multitasking OS. That grew into Concurrent DOS, a full multitasking MS-DOS compatible multiuser OS.
And CDOS developed into two things:
* DR FlexOS, a real-time multiutasking multiuser OS with a GUI, which is still around today in the form of IBM 4680 and 4690 OS.
https://en.wikipedia.org/wiki/4690_Operating_System
Latest update: December 2020.
* DR DOS, the original better DOS than DOS.
Probably the best-selling and most widely-used member of the family.
Still around today as DR OpenDOS. I've been working on it myself.
https://liam-on-linux.livejournal.com/58013.html ← info & downloads
https://liam-on-linux.livejournal.com/79015.html ← VirtualBox VM images
That's not now I'd interpret it. "Open Source" in my mind means that the software uses one of the OSI approved licenses. The quoted paragraph:
> Let this paragraph represent a right to use, distribute, modify, enhance, and otherwise make available in a nonexclusive manner CP/M and its derivatives. This right comes from the company, DRDOS, Inc.'s purchase of Digital Research, the company and all assets, dating back to the mid-1990’s. DRDOS, Inc. and I, Bryan Sparks, President of DRDOS, Inc. as its representative, is the owner of CP/M and the successor in interest of Digital Research assets.
is not even a license in the traditional sense. It defines nothing. Whatever rights it grants do not appear to be transferrable. Worst of all, it does not even mention source code.
If the owners of the CP/M source code want to make it open source, what's so hard about attaching the actual MIT or BSD licenses to a source distribution and publishing it?
No need to get cutesy with something as important as your license terms, people.
From experience in related things: lawyers.