4 ms·
> 22 system calls ... that had the same function (and function number) as the CP/M code. That probably shows evidence of reverse engineering, not code copying,
by dspillett 10y ago
> 22 system calls ... that had the same function (and function number) as the CP/M code.
That probably shows evidence of reverse engineering, not code copying, similar to the clean-room reimplementation of IBM's BIOS chips by Compaq.
> the types of actions that send/receive text from a printer, phone, hard disk, etc.
I know they are giving examples for a modern audience, but I was amused by the inclusion of phones in that list. Heck, even hard drives would have been unsupported until version 2 IIRC.
- MichaelMoser123 10y agosystem calls in msdos were interrupts, so you would do the interrupt (int 21h for most parts) with different values of ah register to select the requested service (and remaining registers for arguments). My MS/DOS is a bit rusty - here is the norton guide - the MSDOS bible. http://www.ousob.com/ng/asm/index.php http://www.ousob.com/ng/asm/index.php
- pdkl95 10y ago> int 21h http://www.ctyme.com/intr/int-21.htm http://www.ctyme.com/intr/int-21.htm DOS kernel interrupts by name: http://www.ctyme.com/intr/cat-010.htm http://www.ctyme.com/intr/cat-010.htm # Ralf Brown's Interrupt List
- linker3000 10y ago> # Ralf Brown's Interrupt List Wow, that brings back memories of my ASM and Turbo Pascal programming days (inline ASM). I had a dot matrix printout of Ralf's list and it was invaluable. A couple of weeks back I found some old floppies in the attic and after I unpacked and refitted a 3.5" drive to my desktop machine, I rediscovered a lot of my old work from the late 1980s and early 1990s - for example (using kernel interrupts...) - here's the QT (Qute Time) program which was inspired by an idea from the late, great Jim Button: https://github.com/linker3000/Historic-code-PC-Pascal-and-ASM-/blob/master/QT2.A86 https://github.com/linker3000/Historic-code-PC-Pascal-and-AS... It outputs exciting things like "It's nearly half past three" etc.
- pjc50 10y agoI still have some of my code from that era, where with the interrupt list and the "PC Game Programmer's Encyclopedia" I wrote a few games. Space invaders clone (with soundblaster support!). Flat-shaded 3D engine capable of a few hundred polygons per frame. I've considered putting it on github, but I wouldn't want it to be seen as representative of my current work!
- _0ffh 10y agoNo reverse engineering necessary. Those CP/M system calls were all documented, and it never was a secret that QDOS was heavily modelled after CP/M.
- dspillett 10y agoTFA mentions the 22 calls as if the similarity is in some way potentially surprising though, which I took as meaning they weren't something in that documentation. Internal call points that were (at least at that time) intended to only be used by built-in tools and other internal routines, rather than being part of the published and supported API.
- groovy2shoes 10y ago> it never was a secret that QDOS was heavily modelled after CP/M. Indeed. In fact, when IBM first built the PC, they'd tried to reach a deal with Digital Research to get an official version of CP/M as the PC's flagship OS. The deal fell through for some reason I can't recall at the moment, so IBM went to MicroSoft and explicitly asked for a CP/M work-alike and a BASIC interpreter (which was considered MS's forte back then). This was really a no-brainer, given how supremely popular CP/M and BASIC were on microcomputers at the time. After Digital Research heard about the QDOS/PC-DOS deal, they threatened to sue IBM, alleging even then that it infringed their intellectual property. But they gave IBM an option: also sell CPM/86 alongside PC-DOS, and IBM gladly obliged. Problem was: PC-DOS cost something like $50 whereas CPM/86 cost something like $250, and consumers voted with their wallets. (I recently read somewhere that IBM didn't tell DRI about their planned price tag for PC-DOS, and Gary Kildall was right-miffed about the situation). Besides those two, UCSD Pascal was also available to run on the bare metal of PC, essentially as an OS. I've never used it myself, so I don't know what its OS-y features were like, or if it had any at all.
- deleted 10y ago[deleted]