home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / emulate / systems / zrun / zrun.doc < prev    next >
Text File  |  1988-04-02  |  18KB  |  417 lines

  1.  
  2. ZRUN                                            2 April 1988 -med
  3.  
  4.  
  5.      The Z80 CPeMulator is the latest release of the Z80  program  which
  6. allows  CP/M-80 programs to be run on an MS-DOS computer.  If you have a
  7. V20 or V30 chip, see the shareware information below on how to obtain  a
  8. V20/V30 specific version.
  9.  
  10.  
  11.      The Z80 program can run many CP/M 80 programs.  There are however a
  12. few limitations due to  the  minor  differences  in  the  file  handling
  13. structures of MS-DOS and CP/M, and of course any program that is machine
  14. dependent is probably not going to run.
  15.  
  16.      One area where the Z80 program has problems is when a CP/M  program
  17. accesses  file extents directly.  MS-DOS does not use file extents, thus
  18. they don't exist.  What will happen if an extent is accessed is that the
  19. primary file will re-accessed.  This problem only occurs when the extent
  20. is accessed directly.  Proper sequential accessing or  random  accessing
  21. will not have a problem.
  22.  
  23.      The  file  extent  problem  occurs  in  programs  that  try  to  be
  24. compatible to V1.x CP/M which did not  have  random  access  capability.
  25. Random  access  was  performed  by  accessing  the  hidden  extent files
  26. directly.  As long as the file being read is smaller than  16K  (can  be
  27. contained  within  one  file extent) this is not a problem.  The problem
  28. only occurs when the file is larger than 16K.  If you have access to the
  29. original code this can be easily solved by changing it to use the proper
  30. random access method.
  31.  
  32.      Much work has gone into the file handling emulation to allow it  to
  33. work with as many programs as possible while still operating through the
  34. MS-DOS operating system and thus providing all the benefits of operating
  35. under  MS-DOS.  Many  programs  that  are  not  able  to operate in this
  36. environment will operate with the Z80 emulator, including PIP, STAT, and
  37. ED.  The  emulator even supports the IO byte function for those programs
  38. that use it.  (The value is lost when returning to MS-DOS though.)
  39.  
  40.      The STAT program will not give correct information  in  all  cases,
  41. but as much as can be obtained through its program structure is provided.
  42.  
  43.  
  44.      The  SUBMIT  program will not work under the V2080 program since it
  45. is very closely tied to the CP/M  operating  environment.  When  a  CP/M
  46. program  is terminated, complete control is returned to MS-DOS, thus any
  47. hooks  that  submit created into the CP/M environment are lost.  The MS-
  48. DOS batch program should be used instead.  The  batch  program  performs
  49. the  same  function  in  MS-DOS  as the submit program does in CP/M, but
  50. gives you a greater degree of flexibility.
  51.  
  52.  
  53.      Programs  which  use  Z80 specific code will not run with the V2080
  54. program. The V20/V30 processors do not have the ability to  emulate  the
  55. Z80  specific  code.  Most  CP/M  programs  are  written  with  the 8080
  56. processor in mind since many CP/M systems used that processor.  The  Z80
  57. processor  was  based  on the 8080 processor, so it can run code for the
  58. 8080 processor without any problems.
  59.  
  60.      Note: If a CP/M program should ever crash on you be sure to  reboot
  61. your  computer  since  the 8080 emulation mode may get left on the stack
  62. causing some weird problems to occur the next time  you  try  to  run  a
  63. program.
  64.  
  65.      One  way to find out if the program uses Z80 code is to try running
  66. it.  If the program crashes it probably uses Z80 code.  Another  way  to
  67. find  out  is  to send in your shareware donation ($40.00).  Included in
  68. the package that you will receive is the 8080  software  emulator.  This
  69. program  performs exactly the same as the Z80 and V2080 emulators except
  70. that it performs the action entirely in software under the  normal  8088
  71. environment.  Thus  when  a  Z80 specific op-code is encountered it will
  72. flag it and abort the program gracefully.  As with  the  V2080  emulator
  73. you  will receive full source code listings with the program so that you
  74. can modify it to suit your needs.
  75.  
  76.      If you have a V20 or V30 in your computer, you may want to use  the
  77. V2080  CPeMulator instead.  The V2080 CPeMulator operates in the special
  78. hardware emulation mode of the V20/V30.  Thus you can run  the  CP/M  80
  79. programs at full speed.
  80.  
  81.  
  82.      The  advantage  to  using the software CPeMulator is that it allows
  83. you to run the CPeMulator program on a regular 8088/8086 processor, or a
  84. 286,  or  even  a  386!  Thus you won't be left out in the cold when you
  85. upgrade to these newer processors.  The price you  pay  for  this  is  a
  86. slower  emulation  speed.  Keep  in  mind though that speed is relative.
  87. Processing speed on a 16Mhz 386 is a whole lot faster than on a  4.77Mhz
  88. V20.
  89.  
  90.  
  91. Speed comparisons:
  92.  
  93.      V2080 CPeMulator on a V20  @ 4.77Mhz =  Kaypro @ 2Mhz
  94.      8080  CPeMulator on a 8088 @ 4.77Mhz =  Kaypro @ 0.5Mhz
  95.      8080  CPeMulator on a 286  @ 8Mhz    =  Kaypro @ 2Mhz
  96.      Z80   CPeMulator on a 386  @ 16Mhz   =  Kaypro @ 4Mhz
  97.  
  98.      These  times are  very approximate.  The actual times depend on the
  99. programs being run and the particular characteristics of your  computer.
  100. I provided them here to give you an idea of what to expect.
  101.  
  102.  
  103.  
  104.  
  105.  
  106. READCPM utility:
  107.  
  108.      In  addition  to the other programs on the shareware disk, you will
  109. receive a utility program that allows you to read Kaypro II  CP/M  disks
  110. on  your  IBM PC.  The source code for this program is also provided for
  111. the true hacker who wants to dig into it.  The utility is primitive, and
  112. will  not  handle Kaypro IV DS disks, but it does provide a mechanism to
  113. get those CP/M programs onto your IBM PC.
  114.  
  115. Shareware donations:
  116.  
  117.      Here's what you get with your donation.
  118.  
  119. The basic donation is $40.00 American.  For this you will get a disk in-
  120. cludes the following:
  121.  
  122.    1. The latest version of the V2080 CPeMulator.
  123.    2. The complete source code listing for the V2080 CPeMulator.
  124.    3. An introductory lesson on the V20/V30 processor.
  125.    4. Sample CP/M programs.
  126.    5. The latest version of the 8080 software CPeMulator.
  127.    6. The complete source code for the 8080 software CPeMulator.
  128.    7. The latest version of the Z80 software CPeMulator.
  129.    8. The complete source code for the Z80 software CPeMulator.
  130.    9. A utility program to allow you to read Kaypro II disks.
  131.   10. Complete source code listing for the READCPM program.
  132.   11. A manual and all this nifty documentation.
  133.  
  134.      Distribution is on a IBM 360K  5.25 inch diskette.
  135.      The 3.5 inch 1.44M disk format is available on request.
  136.  
  137.      Although  I  ask  that you include $5.00 to help defray the cost of
  138. shipping and handling, don't worry about it if you forget or don't think
  139. it  is  worth  it.   If you send the $40.00 you'll get the stuff anyway.
  140. And of course no one is forcing you to pay anything.   The  only  reason
  141. you  need  to  send  the  money  is to get the above listed goodies.  Of
  142. course if you simply feel that the product is worth  the  $40.00  anyway
  143. I'm not going to complain, and I'll still send you the stuff.
  144.  
  145.  
  146.  
  147.  
  148.  
  149. OEM's:
  150.  
  151.      Are  you  thinking  of  using  the  CPeMulator  in conjunction with
  152. another product?  No problem.  The commercial license for the CPeMulator
  153. is  very simple: I ask that you purchase the $40.00 shareware package as
  154. a one time fee.  As long as you do not modify the  code  and  leave  the
  155. Copyright  notice  intact there is no other requirement.  If you wish to
  156. modify the code and/or change the copyright notice then I only ask  that
  157. you pay a one percent royalty on each modified  CPeMulator product sold.
  158.  
  159.      One  percent  royalty  on what? Normally royalties are based on the
  160. overall product in which the component is used.  This  is based  on  the
  161. assumption  that  the  overall product would not be possible without the
  162. component.  If the CPeMulator is the only component in the product, then
  163. the royalty would be based on the CPeMulator itself.
  164.  
  165.      Some  may not feel that it is worth the one percent royalty fee.  I
  166. understand your feelings in this regard.  No one is forcing you  to  pay
  167. the  royalty, I  am  only  asking that you do so.  I will not pursue the
  168. matter if you don't wish to pay it, it is only a request.  Use your  own
  169. good judgment, pay what I ask, what you think it is worth, or nothing at
  170. all.
  171.  
  172.  
  173. Full rights purchase:
  174.  
  175.      Some of you may not want to deal with  the  hassles  of  royalties.
  176. You  may purchase the complete non-exclusive right to use the CPeMulator
  177. as you see fit for $1000.  What you will get is the complete source code
  178. to  the CPeMulator and the right to do anything you want to it including
  179. putting your own name on it and selling it for any price you want.
  180.  
  181.      The full-purchase rights are non-exclusive to the basic  CPeMulator
  182. package.  What  that means is that you can do anything you want with the
  183. package.  Any derivatives you generate from the package are you own  and
  184. will  be  covered  by your own copyright.  I will not have any rights to
  185. the derivative packages you might produce (unless an agreement  is  made
  186. otherwise).
  187.  
  188.      What  you  do  not  get is exclusive rights to the basic CPeMulator
  189. package.  I as the author retain the right to the basic package and  any
  190. derivation  that  I  might  make  to  the  package myself, and any other
  191. full-rights purchaser retains the rights to their own  derivations  that
  192. they might make.
  193.  
  194.  
  195. Support:
  196.  
  197.      I do not imply that any support for the CPeMulator will be provided
  198. by sending in a donation, paying royalties, or purchasing full rights to
  199. the  package.   (At  these  prices  what  do  you  expect?)  Any support
  200. arrangement must be made separately on a retainer basis.  That is not to
  201. say  that  I will necessarily not support the product, only that sending
  202. in the donation or purchasing  full  rights  does  not  imply  that  any
  203. support will be provided as a part of the transaction.  The only obliga-
  204. tion that I have in exchange for receiving the donation is to  ship  the
  205. latest source code disk.
  206.  
  207. But enough weasel words, on to other items...
  208.  
  209.  
  210. Modifying the emulator:
  211.  
  212.      In  many  cases the CPeMulator program may be better suited to your
  213. needs if you modified  it to suit them.  By all means please do  so.  It
  214. won't  crush my ego if you modify the code.  I do recommend that you get
  215. the shareware package first so you know what  impact  the  changes  will
  216. have.
  217.  
  218.      In  some cases you may have modified the program to the extent that
  219. you may consider it more your program  than  mine.   I  don't  have  any
  220. problems  with  this.   You  have  as much right to your work as I do to
  221. mine.  If you reach this point I only ask that you refer to my  original
  222. work  somewhere.  Something  along  the  lines  of  "Based on CPeMulator
  223. program by Michael Day".  If  you  have  objections  to  even  this,  no
  224. problem, simply don't say anything, I won't be hurt by it.
  225.  
  226.  
  227.  
  228. Your Basic General Disclaimer:
  229.  
  230.      I  make  no warranties or claims of the fitness of this product for
  231. any particular purpose.
  232.  
  233. Or to put it in layman's terms...
  234.  
  235.      I can't control how you use the program or what  you  use  it  for.
  236. Like  all  software there can be no guarantee that the program will work
  237. in your situation. With an emulator program this becomes even  more  so.
  238. There  are  umpteen zillion different CP/M machines out there, and a lot
  239. of programmers write machine dependent code.  Add to that that I am  not
  240. God  (a minor deity maybe...) and thus there are bound to be bugs in the
  241. software.  So don't be surprised if your particular program doesn't work
  242. with the emulator.
  243.  
  244. Remember:  the  prudent  user *always* backs up everything before trying
  245. something new.
  246.  
  247.  
  248.  
  249.  
  250. To other shareware authors:
  251.  
  252.      If you see anything in the shareware concepts brought forth in this
  253. document that you like, by all means plagiarize!
  254.  
  255.  
  256.  
  257.  
  258.  
  259.  
  260.  
  261.  
  262.  
  263. Distribution:
  264.  
  265.      The  CPeMulator  is  being offered as a shareware product, and thus
  266. there are some things that should be considered in regard  to  distribu-
  267. tion.
  268.  
  269.      The  basic  product  is being distributed as an archived file which
  270. includes the latest version of the emulator and some  documentation.   I
  271. encourage  you  to  give  the  product  to  your  friends,  place  it in
  272. libraries,  on  BBS's  and  other  areas  where  shareware  is  normally
  273. distributed.  I do however have some basic requests in this.
  274.  
  275.      Please  only distribute the original shareware archive file so that
  276. the next person will get the same thing as everyone else  including  the
  277. documentation.   Please  do  not distribute the donation response source
  278. code disk.  This is how I support the effort to get the product out.  If
  279. everyone  gets  the  donation  source code disk there is no incentive to
  280. send in the donation, and I lose incentive to continue  with the effort.
  281.  
  282.      I will send the donation response source code disk  to  anyone  who
  283. sends  the  required $40.00 American.  I recognize that many times there
  284. will be group  purchases  involved.  Though  I  would  hope  that  every
  285. individual  who  uses  the  program  would  send  in  the donation, I am
  286. realistic enough in this to accept what I can get.  I would  rather  get
  287. $40.00 out of every ten users than nothing at all from anyone.
  288.  
  289.  
  290. Where does the donation money go:
  291.  
  292.      The  donation money goes many places, some of them are obvious, and
  293. others not so obvious. Some of the areas where the money goes are:
  294.  
  295. Purchase of supplies: Disks, labels, shipping  boxes, etc.
  296. Postage: P.O. Box rent, postage on package, fliers.
  297. Travel: Gas and time to and from post office and suppliers.
  298. Package prep: Time and effort to put package together,
  299.               Wear and tear on computer and printer,
  300.               Operating supplies - ribbons, paper, disks, pens.
  301. Support: Answering letters and E-mail, phone, service fees.
  302. Development: Purchasing or obtaining access to equipment to
  303.              expand and improve the product.
  304. Future: Hopefully there will be enough income to encourage me to
  305.         continue to support and improve the product and
  306.         introduce others. If I lose money on this it's not
  307.         exactly going to encourage me to continue...
  308.  
  309.  
  310.  
  311.  
  312.  
  313.  
  314. An open letter to the software industry in general:
  315.  
  316.      It has long been my considered opinion that since people who  would
  317. think  twice  about  taking  a  pencil  home  from the office will steal
  318. (err...make off-site backups of...)  software  that  there  is  a  major
  319. discrepancy between how the users view software and the way manufactures
  320. do.
  321.  
  322.      When the problem is as rampant as it is in  our  industry  it  goes
  323. beyond  moral  issues  of theft. It indicates that the software industry
  324. itself is not properly serving the  needs  of  the  customer.  When  the
  325. customer takes the software, it indicates that there is a perceived need
  326. for it.  When they steal the  product, it  indicates  that  the  pricing
  327. strategy is wrong.
  328.  
  329.      Let's  be  realistic  here,  *nobody*  is  going to pay $700+ for a
  330. spreadsheet package to do their home budget on.  Yet software  companies
  331. get  upset and start screaming foul when the user "borrows" the software
  332. to use it.  The problem here is not the  customer, it  is  the  software
  333. manufacturer  for  placing  the  product  outside the reach of the small
  334. user.  As a result the user is left with a dilemma.  Do  they steal  the
  335. software, use a cheap clone, or continue to use pen and paper?
  336.  
  337.      In  some  cases the software manufacturer rubs salt in the wound by
  338. taking legal action against the clone manufactures threatening to remove
  339. one of the options available.
  340.  
  341.      The  end  result of all this is that the end user begins to see the
  342. software manufacturer in a different light, as a predatory robber baron.
  343. This  then  gives  the  end  user the excuse needed to take the software
  344. without regret.
  345.  
  346.      I am not attempting to apologize for, or justify  software  piracy.
  347. What I am trying to do is understand it and find out what can be done to
  348. solve it.  This is particularly important to me as a software  developer
  349. since the small user is my customer.
  350.  
  351.      One  thing  is  certain, continuing to treat the small user as pond
  352. scum and laying guilt trips on them in the form of "Thou Shalt Not Dupe"
  353. only  alienates  the customer even further and does nothing to solve the
  354. problem.
  355.  
  356.      The needs and requirements of the small user are not  the  same  as
  357. the needs  and  requirements  of  the  business user.  As long as we the
  358. software manufacturer continue to ignore the needs and  requirements  of
  359. the  small  user,  that  customer  will continue to ignore our needs and
  360. requirements and the problems of theft will continue.
  361.  
  362.  
  363.  
  364.  
  365.  
  366.  
  367.  
  368.                            Request Form
  369.  
  370. Send your request to:
  371.  
  372.  Michael Day
  373.  C/O Day Research
  374.  P.O. Box 22902
  375.  Milwaukie, OR 97222
  376.  
  377.  
  378.  
  379.                                              Date________________
  380.  
  381.  
  382.  
  383. Please send me
  384.  
  385. ______ copies of the V2080 source disk at $40.00 ea.
  386.  
  387.  
  388.                              Total ______________________________
  389.  
  390.                              Shipping and handling ------- $5.00
  391.  
  392.                              Total enclosed _____________________
  393.  
  394.  
  395.  
  396.  
  397.  
  398. Please send to:
  399.  
  400. Name____________________________________________________________
  401.  
  402. Address_________________________________________________________
  403.  
  404. City____________________________________________________________
  405.  
  406. State________________________________Zip________________________
  407.  
  408.  
  409.  
  410.  
  411. Thank you for your support!
  412.  
  413.                                 Mike Day
  414.                               Day Research
  415.                              P.O. Box 22902
  416.                           Milwaukie, OR 97222
  417.