home *** CD-ROM | disk | FTP | other *** search
/ CP/M / CPM_CDROM.iso / enterprs / cpm / text / mar93.txt < prev    next >
Text File  |  1993-03-08  |  8KB  |  155 lines

  1.  
  2.             CP/M Emulators for DOS
  3.  
  4.  
  5.     I presumed you have read enough about OverDrive 486DXs (don't
  6. get pulled over), object-oriented neural net backpropagation algorithms,
  7. matchbox hard disks, and virtual reality. It's about ten years ago that
  8. a little group get together in Austin over some heavy steel boxes called
  9. Kaypro IIs. Let's talk about CP/M.
  10.  
  11.     No, my spinal column and most things that attach to it are still
  12. intact.  I found some neat code (some manager told me programmers should
  13. use this term sparingly) which emulates CP/M under DOS.  Why would any
  14. sane person still delve into CP/M? Perhaps it's like the thrill of
  15. discovering some fragments of the Dead Sea scrolls.  Or you may just
  16. have the infrequent need to access some CP/M data that you or someone
  17. else might still be using.
  18.  
  19.     I have three very different CP/M emulators and I'll describe
  20. them briefly here. They are 22nice, zsim, and myz80. Each has its pros
  21. and cons and I hope my summary here can help you decide if any of them
  22. might be useful for you.
  23.  
  24.  
  25.     22nice is from SYDEX and is the oldest, out since 1989.  $40 is
  26. asked for this shareware package.  A companion package, 22disk, helps
  27. with the mundane task of file transfer between CP/M and DOS.  It has
  28. utilities to transfer files either way, copy files, erase files, and
  29. format CP/M diskettes.  It understands over 200 CP/M formats (could this
  30. be one of the reasons for CP/M's demise?) and I was pleasantly surprised
  31. when I plug in a onetime nemesis of CP/M drives, the quad density
  32. floppy, into a DOS 1.2 MB drive, and I can read and transfer files from
  33. this old disk!
  34.  
  35.     A very nice feature of 22nice is it can emulate either an 8080,
  36. a Z80, or even a V20.  The V20 is an interesting chip.  It is really an
  37. 8088 and 8080 in one.  PCs using the V20 and 22nice can run CP/M in
  38. native mode! Alas! there are some bugs in the V20's emulation and 22nice
  39. will try to warn against these.
  40.  
  41.     The following are some key features from the 22nice manual:
  42.  
  43.     * Provides terminal emulation for most common CP/M machines with
  44.       terminal types for Osborne, Kaypro, Heath/Zenith, Morrow,
  45.       Actrix, DEC VT-100/VT-52, Televideo 925 and LSI ADM-3X.
  46.  
  47.     * Supports CP/M user number to DOS subdirectory translation.
  48.  
  49.     * Allows use of DOS "pipes" and utilities with CP/M programs.
  50.  
  51.     * Supports a complete set of BDOS and BIOS function interfaces,
  52.       including direct disk read/write. 
  53.  
  54.     * CP/M programs are fully integrated into the DOS environment; the
  55.       user is unaware that a program is CP/M- or DOS-based.
  56.  
  57.     You can install 22nice in one of three ways -- as a device
  58. driver in config.sys, as a terminate-and-stay-resident program or as a
  59. regular program. For occasional use, I would recommend the last method.
  60.  
  61.     CP/M files are named with a .CPM extension.  A utility called
  62. GENCOM creates a pre-loader.  When this program is run , it then looks
  63. for the CP/M program of the same name and executes it.  For example, I
  64. gencom'ed D.COM, my favorite CP/M superdirectory program, and it creates
  65. a D.COM for DOS which loads D.CPM and runs it.  Let me tell you, it's an
  66. errie feeling running D.COM on DOS and see it display my DOS files in a
  67. DOS subdirectory.
  68.  
  69.  
  70.     Zsim is by Jürgen Weber in Germany.  He calls it "The hundred
  71. percent Z80 Emulator" and asks for $20, or $50 if you want the encrypted
  72. source which is included in the ZIP file. (When you send money, he'll
  73. send you the password to extract the files from the archive. Actually I
  74. think that's a fairly reasonable way of protection.) Jürgen mentioned
  75. that his emulation equates 1 Mhz of a Z80 to 10 Mhz of the DOS Landmark
  76. test. I've seen Landmark claims of 120 Mhz on some 486 systems. (Don't
  77. ask me what they smoked to get those numbers). So a 12 Mhz Z80? That
  78. boggles the mind. Is that like a Studebaker going 120 MPH on Mopac?
  79.  
  80.     Read his instructions before using. Here's an excerpt:
  81.  
  82.     "Be sure that you do not insert a MS-Dos disc when prompted for a
  83.     CP/M disc. The CP/M bios would overwrite the MS-Dos disc without
  84.     prompting. Also MS-Dos overwrites CP/M discs."
  85.  
  86.     The major disadvantage of this package is it requires the A
  87. drive to be set as a CP/M drive.  This could be rather clumsy where the
  88. A drive is a 3.5 inch drive on a PC, such as the one I'm using now,
  89. which is actually Reed Stone's machine, and I have to butcher, er, I
  90. mean reconfigure his system to run these tests.  As far as I know, no
  91. CP/M system supports a 3.5 inch drive.  Also, it only knows about a few
  92. native CP/M disk formats and suggests using 22disk from SYDEX to use
  93. other formats.
  94.  
  95.     As the name implies, zsim emulates a Z80, and it requires a CP/M
  96. bootable disk in drive A to work.  Perhaps to avoid legal entanglements?
  97. The most interesting feature is its creating a 640K CP/M virtual machine
  98. and a RAMdisk.  For example, you can have a 400K ramdrive within the
  99. 640K CP/M system.
  100.  
  101.     Unfortunately I've forgotten enough about low-level CP/M details
  102. to find zsim interesting.  The manual contains lots of assembly code
  103. fragments for illustration.
  104.  
  105.  
  106.     MYZ80 is shareware written by Simeon Cran from the land of Oz
  107. (Australia) who also claims it's the best Z80 CP/M emulator in the
  108. world.  Programmers are so modest.  The latest version, 1.03, emulates
  109. the Z80/64180 processors and claims to be compatible with CP/M 2.2, CP/M
  110. 3.0, and also ZCPR. It's the only one that claims compatibility with
  111. most of the popular CP/M systems.
  112.  
  113.     This package is interesting that it emulates CP/M as a virtual A
  114. drive. There is actually a file named A.DSK. All work done on CP/M is
  115. stored in this file so A.DSK will grow in size as time goes on when more
  116. files are imported. Importing a file means moving a file from DOS to the
  117. CP/M environment. Exporting is the reverse function. Of course, you can
  118. also create B.DSK, C.DSK, etc. as work progresses.
  119.  
  120.     Some resemblance exists in the packaging of this shareware to
  121. 4DOS. They both claimed to be full non-crippled versions of the actual
  122. product. A difference between the shareware and the registered versions
  123. is the startup screens.  On 4DOS, the shareware version has a banner
  124. reminding you to register. This one has eight screens! of text before it
  125. puts you into CP/M. Although most of the screens are actual help files I
  126. find that somewhat annoying. Of course, that's the whole purpose to
  127. entice one to register.
  128.  
  129.     Perhaps the most powerful feature of MYZ80 is its support of
  130. newer DOS operating systems. It can run either in 16- or 32-bit mode
  131. depending on whether it is run on an AT-class or 386 or newer system.
  132. For multitasking operating systems such as OS/2, Windows, and Desqview,
  133. one can run it as a single task. I tried exactly that. I opened a DOS
  134. window in Windows, cd to the cpm directory and start MYZ80. After the
  135. annoying screens, I got an A0> prompt. I'm in CP/M in a DOS window under
  136. Windows!
  137.  
  138.     MYZ80 contains only a couple of small help files.  The few
  139. commands that came with it has built-in help.  I suppose he really wants
  140. people to register to get proper documentation.
  141.  
  142.  
  143.     All three packages are concerted efforts by these hardcores to
  144. provide perhaps the last linkage from CP/M to the DOS world.  Some of
  145. you may have long since sold your CP/M computers but may need to access
  146. some files for whatever reason.  Or you have this really neat (I
  147. promised this is the last time I'll use this word) recipe program in
  148. CP/M with a bunch of recipes stored in the database.  You can now access
  149. this data on your DOS PC with any one of these. And I promise not to
  150. talk about CP/M for another decade.
  151.  
  152. --
  153. Luis Basto
  154. Feb, 1993