The story I've read on the net is, (mostly from
https://www.pcmag.com/news/the-rise-of-dos-how-microsoft-got... and
https://arstechnica.com/gadgets/2017/06/ibm-pc-history-part-... and following parts and
https://en.wikipedia.org/wiki/Timeline_of_DOS_operating_syst...) :
IBM visited Microsoft about the computer languages and apps for their new PC. When IBM asked about an OS as well, Bill Gates, following the gentlemen's agreement that MS had with Digital Research, deferred to Digital Research, telling IBM that they should go to Gary Kildall at Digital Research for an OS. Bill Gates gives a vague heads-up to Gary Kildall about a meeting with some important people soon.
There's a lot of she-said-he-said about the initial IBM-Digital Research meeting. Gary wasn't there at the start, his wife handled the meeting. In the end, Digital Research treated IBM as just another OEM - if IBM wanted CP/M, they'd pay the same royalty rate as any other OEM. The IBM folks weren't keen on paying a royalty per OS license installed. Plus, their Project Chess PC didn't use an 8-bit CPU. They'd need an OS that could run on a more recent CPU (16-bit or more), And they needed it fast - Project Chess was going to ship in one year, so Digital Research had less than one year to get a 16-bit OS shipping. Gary Kildall wouldn't commit, so IBM walked away empty-handed.
IBM met with Microsoft again and mentioned that IBM hadn't signed a deal with Digital Research. If there was no OS, there would no IBM PC and no revenue from licensing MS-BASIC et al. One of the Microsofties mentioned that they knew of an OS for the Project Chess PC, Intel's 8088. Did IBM want it? IBM said yes. Microsoft offered to act as a go-between or IBM could deal directly with the new OS company. IBM told Microsoft to handle everything.
When it came down to paying for the OS, PC-DOS, Microsoft offered several options:
- per PC license royalty
- flat fee for a non-exclusive license with unlimited installs
IBM chose the flat fee, which meant less accounting work over time, but we all know what that "non-exclusive" would enable - PC clones.
IBM would charge a relative pittance for their PC-DOS, $40. Digital Research came through with CP/M-86 for the IBM PC, but they were charging much more, almost $200 more, and shipped six months after the IBM PC launched. IBM paid $45K to Microsoft for PC-DOS, so after the first 1,125 PCs, PC-DOS revenue was pure profit for IBM.
Digital Research finally relented and lowered the price of CP/M-86 after one year, but IBM released the IBM XT and PC-DOS 2.0 with support for hard disks, subdirectories, etc.
But a couple of months before either of those events, an app written in assembly language was released for PC-DOS - Lotus 1-2-3.