home *** CD-ROM | disk | FTP | other *** search
/ Commodore Free 30 / Commodore_Free_Issue_30_2009_Commodore_Computer_Club.d64 / general < prev    next >
Text File  |  2023-02-26  |  11KB  |  353 lines

  1. u
  2.  
  3.  
  4. CP/M the Operating System for
  5. microcomputers of the 1980s
  6. Mrs. Gaby Chaudry
  7. http://www.gaby.de
  8.  
  9. By the end of the 1970s & early
  10. 1980s CP/M was the standard operating
  11. system for microcomputers. On top of 
  12. that, it was the first DISK Operating
  13. System (DOS), & therefore the basis
  14. for today's DOS, & in first place
  15. Microsoft?s DOS. MS-DOS itself derived
  16. from nothing more than a CP/M clone
  17. called QDOS (Quick & dirty 
  18. operating system) written by Tim
  19. Patterson. Microsoft bought QDOS from
  20. him to use with the first IBM PC. Many
  21.  
  22. former CP/M programs have been ported
  23. to DOS, first of all DBase &
  24. WordStar.  CP/M itself on the other
  25. hand is based on the Operating System
  26. for the DEC PDP-10, called "TOPS-10",
  27. at least as far as naming conventions
  28. for files & devices & some commands
  29. are concerned. Surely, there are other
  30. influences, but they remain untold. 
  31. Many of the computing things that we
  32. take for granted today, have there
  33. roots back to the work of a single
  34. man, that man was Gary Kildall, the
  35. developer of CP/M. Who has ever
  36. thought, why his "my hard disk" is
  37. called C: or where does the DOS
  38. command DIR comes from?
  39.  
  40. Gary Kildall was born in 1942, &
  41. received a Ph.D. in Computer Science
  42. in 1972, soon he fulfilled a draft
  43. obligation to the United States Navy
  44. by teaching at the Naval Postgraduate
  45. School in Monterey, California. When
  46. Gary attended the introduction of the
  47. new Intel processor 8080 in 1973, he
  48. was so enthusiastic about it, that he
  49. suggested to the Intel managers to
  50. write a compiler (i.e. a program that
  51. builds a ready-to-run program out of
  52. the program code) for the language
  53. PL/1 (Programming Language Number 1).
  54. At this time, PL/1 was often used on
  55. mainframes, so that the Intel people
  56. agreed immediately; the program was
  57. then called (=Programming Language for
  58. Microprocessors).
  59.  
  60. There was only a small problem: Gary
  61. didn't own a computer that ran an 8080
  62. CPU. He had access to a Digital
  63. Equipment PDP-10 only, & so Gary built
  64. his PL/M compiler in FORTRAN on the
  65. PDP machine. When the compiler was
  66. ready, he needed an 8080 computer for
  67. testing. He even managed to convince
  68. Shugart to donate him a floppy drive.
  69. But, since the cables, power supply &
  70. controller were missing; it didn't
  71. help him very much.
  72.  
  73. Together with Gordon Eubanks (who
  74. later became CEO of Symantec) he built
  75. an 8080 based computer. For this
  76. machine he wrote an operating system
  77. which he called CP/M (Control
  78. Program/Monitor). He offered a package
  79. containing CP/M, PL/M, & a
  80. development system to Intel for 20.000
  81. US$. Intel wasn't interested in CP/M ,
  82. but they agreed to buy PL/M. So Gary
  83. at least had success with his compiler
  84. & decided to put CP/M on the market
  85. on his own. Together with his wife, he
  86. established a company called
  87. "Intergalactic Digital Research Inc.",
  88. which later was renamed to "Digital
  89. Research Inc." (DR).
  90.  
  91. Gary started to sell his CP/M through
  92. mail order in technical magazines. It
  93. should be mentioned that exactly at
  94. that time many enthusiasts began to
  95. build computers on their own (e.g.
  96. Altair and IMSAI offered their now
  97. famous assembly kits). What those
  98. computers were missing, was an
  99. operating system, so CP/M turned up in
  100. the right place at the right time.
  101.  
  102. In 1979, DR published  CP/M version
  103. 2.0, which soon was followed by CP/M
  104. 2.2. This version was the most popular
  105. one & was used worldwide, as it
  106. offered high performance with only
  107. small amounts of memory usage. The
  108. next version, 3.0, also called CP/M
  109. Plus, but wasn't offered before 1982.
  110. Unfortunately, this was one year too
  111. late, since in 1981 IBM started its
  112. triumph.
  113.  
  114. What was so special about CP/M?
  115. You should be aware of the fact that
  116. microcomputers at that time were
  117. equipped quite badly & often had to
  118. be programmed using switches (e.g. the
  119. Altair & IMSAI 8080 models). If ever,
  120. there was a programming language
  121. like e.g. BASIC, which made it
  122. possible to write & save simple
  123. programs. An Operating System on the
  124. other hand offered possibilities, that
  125. today we take for granted, but at this
  126. time were pure luxury. In first place,
  127. it had a standardized user interface,
  128. which made it possible to run the same
  129. commands & programs on a couple of 
  130. different machines, so that the user
  131. didn't need to care about the hardware
  132. anymore. It was just the manufacturer
  133. who had to adopt the CP/M to his
  134. hardware. But, since this was quite
  135. easy to be done, CP/M became very
  136. popular.
  137.  
  138. CP/M was based on three components:
  139.  
  140. 1. The BIOS (Basic Input Output
  141. System): This was the part that
  142. controlled the basic communication
  143. between hardware & software, &
  144. therefore was different with different
  145. hardware. It consisted of functions as
  146. e.g. reading letters from the keyboard
  147. show characters on the screen, or
  148. reading a sector from a floppy disk.
  149. A computer without BIOS is unthinkable
  150. nowadays.
  151.  
  152. 2. The BDOS (Basic Disk Operating
  153. System), the "brain" of the CP/M. It
  154. was the place where communication
  155. between the command interpreter &
  156. the BIOS took place, i.e. the inputs
  157. and outputs were translated &
  158. forwarded to the CCP.
  159.  
  160. 3. The CCP, the command interpreter.
  161. This was a simple program that had
  162. some built-in commands (e.g. DIR to
  163. show the directory listing) & could
  164. start other programs.
  165.  
  166. In 1981, CP/M did already run on about
  167. 300 different computer types. It even
  168. ran on machines without 8080 or z80
  169. CPU. Microsoft sold the so-called
  170. "Softcard", which made it possible to
  171. run CP/M on an Apple computer. Believe
  172. it or not, but at this time they had
  173. more income with CP/M than with their
  174. own software. As time passed, other
  175. CP/M versions followed: those for the
  176. 16 bit CPU 68000 (CP/M-68000) & Intel
  177. 8086 (CP/M-86).
  178.  
  179. In 1980, the decisive turn in the
  180. history of Digital Research took
  181. place. IBM developed the PC, & of
  182. course they needed an Operating System
  183. for it. CP/M seemed to be the ideal
  184. product, as enough software for all
  185. scopes was available for it.
  186. By mistake they thought that Microsoft
  187. produced CP/M (as they sold the
  188. Softcard along with CP/M), & they made
  189. an appointment with Bill Gates, just
  190. to learn that Digital Research was the
  191. right contact. Gates sent the IBM
  192. managers to the nearby town of
  193. Monterey. When they arrive there, Gary
  194. wasn't at home though. Nobody knows
  195. exactly what happened at that time,
  196. but it seems that Dorothy McEwen,
  197. Gary's wife, who managed the company,
  198. didn't agree to IBM's terms and
  199. therefore cancelled the negotiations.
  200. IBM's people addressed themselves to
  201. Bill Gates again, who realized the
  202. great chance & bound himself to
  203. provide an Operating System. When Gary
  204. came to know that PC-DOS was a
  205. plagiarism of CP/M (what he could even
  206. proove), he filed a lawsuit against
  207. IBM. But shortly after that he
  208. abandoned it again, because IBM
  209. offered him a generous 
  210. compensatory payment. In the same
  211. course, they agreed to offer CP/M
  212. alternatively to DOS together with
  213. their PC.
  214.  
  215. What they didn't mention: they charged
  216. three times the price of DOS for the
  217. CP/M. Of course the available range of
  218. software for CP/M was much larger, but
  219. because of the price most customers
  220. choose DOS. Anyway, during this
  221. period many machines where offered
  222. that had both the 8086 & the z80
  223. CPU, & even z80 cards for the IBM PC
  224. where available, so that many
  225. customers could still use CP/M
  226. together with DOS. Some companies even
  227. kept on offering CP/M & its successors
  228. with their x86 machines, e.g. Siemens.
  229. Digital Research didn?t become
  230. inactive, though, & published a
  231. couple of innovative products in the
  232. following years.
  233.  
  234. An example was Concurrent CP/M, a real
  235. Multitasking System, which was
  236. efficient & easy to operate, because
  237. it used the well known CP/M commands.
  238. Later on they issued DR-DOS, a MS-DOS
  239. compatible, but much more
  240. comprehensive Operating System. In
  241. 1991, Gary Kildall sold Digital
  242. Research to Novell. After that, he was
  243. involved in other developing projects,
  244. e.g. the file system for Multimedia CD
  245. ROMs. DR also brought out the graphics
  246. user interface GEM, which wasn't that
  247. popular for CP/M or DOS users, but
  248. then was licensed by Atari & became
  249. well-known as the GUI of the ST series
  250.  
  251. In any case, the choice of computers
  252. that ran CP/M was quite large at the
  253. beginning of the 1980ies. It can even
  254. be said that in the Personal Computer
  255. sector the Digital Research Operating
  256. System was ruling the market. Software
  257. was available for all kinds of
  258. applications. Freeware was offered in
  259. an extensive range so that CP/M
  260. computers became affordable for almost
  261. everybody. There was only one
  262. disadvantage in CP/M:  the mostly
  263. incompatible hardware. i.e. an Osborne
  264. isn't able to read floppies formatted
  265. on a Kaypro and vice versa. When you
  266. wanted to exchange data between
  267. different computers, you had to use
  268. either a converter program or a serial
  269. connection between the machines. On
  270. the other hand, at that time modems &
  271. acoustic couplers already existed, so
  272. that users could connect to a mailbox
  273. & download programs & files.
  274.  
  275. Of course, at that period, files had
  276. completely other dimensions than those
  277. to which we are used today. You must 
  278. consider that a z80 based CP/M machine
  279. didn?t have more than 64 Kbyte of
  280. memory, & a floppy usually could
  281. save not more than 360 Kbyte imagine
  282. how memory thrifty programs had to be
  283. under these circumstances. 
  284. Comprehensive programs therefore used
  285. a modular structure, which made it
  286. possible to load only those parts into
  287. memory that were currently needed.
  288.  
  289. Hard disks were rare & nearly
  290. priceless. Nevertheless, CP/M was able
  291. to manage partitions up to a size of 8
  292. Mbytes. If somebody had to maintain a
  293. bigger project with higher amounts of
  294. data therefore had a distinct
  295. advantage when using a hard disk
  296. instead of a higher quantity of floppy
  297. disks. An example of a CP/M machine
  298. with hard disk was the Kaypro 10,
  299. which had a built-in 10 Mbyte hard
  300. disk.
  301.  
  302. One reason for the popularity of the
  303. CP/M successor DOS surely was (apart
  304. from the price) the similarity of its
  305. structure & user interface. For
  306. somebody changing from CP/M to DOS, it
  307. was easy to become acquainted to the
  308. new system. The only big difference
  309. was that DOS introduced sub-
  310. directories to the microcomputer
  311. world, where CP/M used to work with
  312. User areas.
  313.  
  314. Both solutions had their roots in mini
  315. & mainframe systems, though.
  316.  
  317. The most important CP/M commands were:
  318. DIR to show the directory listing STAT
  319. to show drive & media information &
  320. to change attributes PIP to copy
  321. ED line editor for text files SYSGEN
  322. for creating a system disk.
  323.  
  324. Even other conventions were ported
  325. from CP/M to DOS, e.g. the 8.3
  326. convention for file names
  327. (FILENAME.TXT), the usage of the
  328. asterisk & question mark as wildcards
  329. & the extension .COM for executable
  330. files. A typical CP/M command could
  331. be: DIR B:*.* or PIP B:=A:*.TXT, where
  332. in the latter example the copying
  333. direction is inverted in comparison to
  334. DOS. This may result in the Assembler
  335. convention, a programming language
  336. many user were acquainted to at this
  337. time.
  338.  
  339. It is justifiable to say that if
  340. history had developed slightly
  341. different, its possible that we might
  342. work with CP/M & GEM (or their
  343. successors) instead of DOS & Windows
  344. today.
  345.  
  346. EDITOR: I would like to thank Gaby for
  347. contacting me regarding CP/M &
  348. offering this text, also I  would like
  349. to thank her for converting the text
  350. from German to English.
  351.  
  352. --
  353.