home *** CD-ROM | disk | FTP | other *** search
/ CP/M / CPM_CDROM.iso / cpminfo / cpm-cc24.art < prev    next >
Text File  |  1994-07-13  |  12KB  |  209 lines

  1.  
  2. ==============================================================================
  3. [ THE KAY*FOG RBBS | Filename=CPM-CC24.ART | posted 07/05/86 | 205 lines 12k ]
  4.  
  5.           The CP/M Connection                   Originally published in    
  6.                   by                               Computer Currents       
  7.              Ted Silveira                         5720 Hollis Street     
  8.   (copyright and all rights reserved)            Emeryville, CA  94608     
  9.  
  10.                                 April 8, 1986
  11.                            THE WONDERFUL WORLD OF Z
  12.  
  13.      If you've spent any time browsing through bulletin boards or 
  14. catalogs of public domain CP/M software, you've run across ZCPR, 
  15. especially its latest incarnation, ZCPR3.  But if you asked someone what 
  16. ZCPR3 was, you probably got a blank look or an enthusiastic rush of 
  17. words trailing off into "You really have to see it. . . ."  
  18.  
  19.      ZCPR3 is tough to describe because it's not a program but an 
  20. operating environment supported by over 70 utility programs.  I realize 
  21. that "operating environment" doesn't tell you much either, so let me try 
  22. an analogy.  ZCPR3 affects your whole computer the way a key definition 
  23. program like SmartKey affects your word processing program--it makes 
  24. many things easier and makes other things possible that weren't possible 
  25. before.
  26.  
  27.      The core of ZCPR3 is an enhancement of your normal CP/M 2.2 
  28. operating system (ZCPR3 isn't for CP/M Plus).  When you add ZCPR3, you 
  29. get an operating system that is compatible with CP/M programs (with a 
  30. very few exceptions) but is more powerful and more flexible than CP/M 
  31. ever was.
  32.  
  33.      The CP/M operating system is divided into three parts: the CCP 
  34. (console command processor), BDOS (basic disk operating system), and 
  35. BIOS (basic input/output system).  The CCP interprets all the commands 
  36. you enter at the A> prompt and also contains CP/M's built-in commands 
  37. DIR, REN, ERA, TYPE, SAVE, and USER.  The BDOS provides basic program 
  38. services--opening and closing files, reading from and writing to the 
  39. disk--so that programs you run don't have to bother with the mechanics 
  40. of these things themselves.  Both the CCP and the BDOS are licensed from 
  41. Digital Research, makers of CP/M, and are the same on all CP/M 2.2 
  42. computers (with the exception of a few oddball systems).
  43.  
  44.      The BIOS, on the other hand, is customized for (i.e., written 
  45. specifically for) a particular computer (a Kaypro 2X, a Morrow MD3, 
  46. etc.) and is provided by the computer manufacturer rather than by 
  47. Digital Research--that's why it's sometimes called the CBIOS (for custom 
  48. BIOS).  The BIOS translates the general functions handled by the BDOS 
  49. (disk access, file handling, etc.) into detailed instructions to the 
  50. specific computer hardware (select drive A, move the head to track 2, 
  51. read 16 sectors, etc.).  It does the nitty-gritty work of controlling 
  52. your computer.
  53.  
  54.      In its simplest form, ZCPR3 replaces CP/M's normal CCP, while the 
  55. BDOS and BIOS remain the same.  (ZCPR3 gets its name from the fact that 
  56. it's written in Z80 assembly language--Z80 Command Processor 
  57. Replacement, version 3.)  Because ZCPR3 is written in very efficient Z80 
  58. code, it crams extra features into the space occupied by the normal CCP.
  59.  
  60.      To really show its stuff, though, ZCPR3 needs some extra space for 
  61. buffer storage and extra functions.  A standard CP/M operating system 
  62. uses about 9K out of your total 64K or RAM (random access memory), 
  63. leaving about 55K for programs to run in.  A thorough ZCPR3 installation 
  64. typically uses an extra 2-4K depending on the number of enhancements you 
  65. choose, so it leaves about 51-53K free for programs.  But some people 
  66. have all-out installations that leave even less.  Most CP/M programs 
  67. will run comfortably with 48K free, and some, like WordStar and dBase 
  68. II, with less.  A few programs, such as large MBasic programs, may 
  69. require more.
  70.  
  71. [What Do You Get From ZCPR3?]
  72.  
  73.      If you're going to give up part of your valuable 64K RAM to ZCPR3, 
  74. you ought to get something in return.  And so you do.  In fact, it would 
  75. take me half a dozen columns to cover all the features of ZCPR3, so what 
  76. follows is a brief overview, at best.
  77.  
  78.      [The Built-in Commands]  Even the most minimal ZCPR3 installation 
  79. enhances the CCP's built-in commands.  For example, the ERA command 
  80. echoes the names of files it has erased and can be set to require 
  81. verification before any erasure.  The TYPE command will pause after 
  82. every 22 lines instead of scrolling continuously.  And if you try to 
  83. rename a file with the name of an already existing file, the REN command 
  84. will ask if you want to delete the old file.
  85.  
  86.      You also get some new commands.  LIST, for example, sends a file to 
  87. the printer, ECHO sends a message to the screen, and GO reruns the last 
  88. command or program you executed.  
  89.  
  90.      [The Minimal Extras]  The enhancements possible with ZCPR3 go far 
  91. beyond the CCP commands, though.  With little or no loss in memory 
  92. space, you can get the following features:
  93.  
  94.      _Search Paths_  With ZCPR3, you can set a search path that your 
  95. computer will follow when trying to execute a command.  My two floppy 
  96. system is set to search drive A for a program if it can't be found on 
  97. the current drive, so if I'm on drive B and want to run WordStar, I can 
  98. just give the command [WS] without worrying about whether WordStar is 
  99. located on drive B or drive A.  
  100.  
  101.      If you have a hard disk, the search path really comes into its own.  
  102. You could, for example, have the system first look for a program in the 
  103. current drive and user area, then in user area 0 of the current drive, 
  104. then in user area 15 of the current drive, then in user are 0 of drive 
  105. A, and finally in user area 15 of drive A.  And you can change the 
  106. search path while you're working so that you can use one path when you 
  107. do word processing and another when you do spreadsheets.
  108.  
  109.      _Multiple Command Buffer_  With ZCPR3, you can have a 200 character 
  110. buffer to hold commands.  With such a buffer, you can enter a string of 
  111. commands (separated by semicolons) at the A> prompt and have ZCPR3 run 
  112. the commands off one after the other--an instant batch file.  On my 
  113. system, for example, the command [SK WS1;WS B:LETTERS;TW B:LETTERS] will 
  114. run SmartKey and load the key definition file WS1.DEF, then start up 
  115. WordStar and open the file B:LETTERS, and finally, when I exit WordStar, 
  116. run a spelling check on B:LETTERS using The Word Plus.
  117.  
  118.      _Named Directories_  Instead of drive and user areas like A0: and 
  119. B14:, you can give your directories names such as WORDSTAR or DBASE.  
  120. Then instead of seeing an A> or A0> prompt, you'll see WORDSTAR> (or 
  121. whatever you've chosen).  And to move to the dBase II section of your 
  122. hard disk, you'll just enter [DBASE:] at the prompt.  Named directories 
  123. aren't important on floppy disks, but they help tremendously on a hard 
  124. disk.
  125.  
  126.      _Other ZCPR3 Buffers_  ZCPR3 also can have other buffers that allow 
  127. its utilities to get information about the operating environment 
  128. (including terminals and printers), pass messages to each other, and in 
  129. the case of special "shell" programs, reload themselves after executing 
  130. another program.
  131.  
  132.      The total overhead for all these ZCPR3 buffers is 1K, and it's well 
  133. worth the space, as they add many of the features that make ZCPR3 such a 
  134. nice environment to work in.
  135.  
  136.      [The Outer Limits]  If you want to go full-dress, you can set aside 
  137. extra buffer space--2K, 4K, 6K, or more--for "dynamically loadable 
  138. packages," program-like segments of code that can be loaded into memory 
  139. to provide extra functions.  Once loaded, these packages stay resident 
  140. until you remove them or cold boot (reset).  You can also change the 
  141. packages, loading a new set of features whenever you like.  These 
  142. packages come in three types:
  143.  
  144.      _Flow Command Packages_  A flow command package (FCP) contains 
  145. logic commands (such as IF, IF ERROR, IF EXIST, and ELSE) that can 
  146. control the flow of command execution.  For example, you can create a 
  147. command like [IF EXIST b:survival.doc; era a:survival.doc; ELSE; pip 
  148. b:=a:survival.doc;era a:survival.doc;FI].  This command will first check 
  149. to see if SURVIVAL.DOC exists on drive B.  If so, the command will erase 
  150. SURVIVAL.DOC from drive A.  If SURVIVAL.DOC doesn't exist on B, the 
  151. command will copy it from A to B and then erase it from A.  (The FI 
  152. command signals the end of the logical branching.)
  153.  
  154.      You're not likely to use flow commands directly, but they're 
  155. invaluable in batch files, menus, and other automated operations. 
  156.  
  157.      _Resident Command Packages_  A resident command package (RCP) can 
  158. contain enhanced versions of CCP commands, but its real value is in new 
  159. commands.  These include GET (to load a program into memory without 
  160. running it) and PEEK (to examine the contents of memory).  The two most 
  161. useful RCP commands are CP, a built-in file copy command, and POKE, 
  162. which lets you patch any part of memory, including a currently loaded 
  163. program.  You can combine POKE with the GET and GO commands to actually 
  164. patch programs like WordStar on the fly.
  165.  
  166.      _Input/Output Packages_  The input/output packages (IOP) contain 
  167. various input/output device drivers.  At the moment, IOPs are mostly do-
  168. it-yourself projects, but there are three commercial IOPs available from 
  169. Echelon, Inc., of Los Altos.  These are PKEY, a simple key definition 
  170. program, RECORDER, which saves everything crossing your screen into a 
  171. disk file, and BPRINTER, a print spooler.  
  172.  
  173. [ZCPR3 and the Public Domain]
  174.  
  175.      Because ZCPR3 is available through bulletin boards and user groups, 
  176. there's a certain amount of confusion about its status.  ZCPR3 is not in 
  177. the public domain and never has been.  It is a copyrighted product 
  178. released free for non-commercial use to individuals.  It is also 
  179. available for a reasonable sum (considering what you're getting and the 
  180. cost of downloading the _megabytes_ that make up the ZCPR3 system) from 
  181. Echelon, Inc., of Los Altos, the official distributor of ZCPR3.  Echelon 
  182. also distributes a number of commercial products meant to work with 
  183. ZCPR3, including the three IOPs mentioned above.
  184.  
  185. [Coming Next]
  186.  
  187.      I've given you only the merest glance at ZCPR3.  Next issue, I'll 
  188. give you a better look at ZCPR3's real power, when I cover menus, 
  189. aliases, smart batch files, on-the-fly patching, and other wonders.    
  190. Don't miss it.
  191.  
  192. Information on ZCPR3 and accompanying programs:
  193.  
  194. Echelon, Inc.                  Main Echelon/ZCPR3 bulletin board:
  195. 855 N. San Antonio Road                                          
  196. Los Altos, CA  94022           Z-Node Central                    
  197. 415/948-3820                   415/489-9005                      
  198.  
  199. ------------------------------------------------------------------------------
  200.       Ted Silveira is a freelance writer and contributing editor to several
  201.    computer-oriented publications.  He appreciates suggestions or feedback
  202.    and can be reached through the KAY*FOG RBBS (415)285-2687 and CompuServe
  203.    (72135,1447) or by mail to 2756 Mattison Lane, Santa Cruz, CA 95065.
  204.  
  205. -------------------------  End of CPM-CC24.ART Text  -------------------------
  206.  
  207.   
  208.  
  209.