home *** CD-ROM | disk | FTP | other *** search
/ 8bitfiles.net/archives / archives.tar / archives / genie-commodore-file-library / C128CPM / C128-COMPATIBILIY.DOC < prev    next >
Encoding:
Text File  |  2019-04-13  |  11.3 KB  |  183 lines

  1. =========================
  2. C-128 Compatibility
  3. By: Carl F Howard
  4.     [CHUCK.WAGON]
  5.      09-19-1987
  6. =========================
  7.                                                                            
  8.      This   is   an    article   on   the   aspects   of   compatibility   of
  9. the   C-128  and other operating systems and software available to facilitate 
  10. the importing and exporting of data. This article centers on the CP/M mode of 
  11. operation although the discussion will cover the various modes of the C-128 
  12. as well.
  13.  
  14.      Although  the  C-128 utilizes 8-bit CPU's it's diversity as  a  personal 
  15. computer for home and small business purposes is one of it's main Assets, and 
  16. I  am   sure   many  new users of the machine  aren't   even   aware  of  the 
  17. capacities available to them.  Aside from playing your favorite games in C-64 
  18. mode  the Native 128 80 column capabilities allows much convenience  for  the 
  19. use of productivity applications to the new user. 
  20.  
  21.      There is already a wide base of Word Processing,  Data Base and Spread  
  22. Sheet Software available for use.  Additionally by utilizing the CP/M mode of 
  23. operation  users can take advantage of Business Applications and a huge  base 
  24. of public Domain Software as well.  Also, it is possible to use your C-128 to 
  25. process  data brought home from the office or school which was created on  an 
  26. MSDOS machine.  This  article  will  help  you become  aware  of the  various 
  27. different  disk  and data type formats and the software available to  convert 
  28. data for your particular application.
  29.  
  30.      First  it is necessary for the new user to understand a little about the 
  31. way  information is stored in the commodore computer and how it differs  from 
  32. other types of computers used in the U.S.  As you are aware all data utilized 
  33. by  a  computer is essentially processed in binary numbers in  the  forms  of 
  34. zeros  and  ones.  This  represents  the on and off state  of  an  individual 
  35. transistor switch in the intergrated chips of your computer.  This is  simple 
  36. enough  as far as it goes but how does the computer know when you press a key 
  37. on the keyboard what your pressing and what it means?
  38.  
  39.      Well  each  key  has a numeric value assigned to it.  The value  can  be 
  40. expressed in Decimal,  Hexadecimal or binary form. And it is this value which 
  41. is converted to a binary number that allows the computer to distinguish  what 
  42. key is being pressed and what it means. Most computers used in the U.S. use a 
  43. standard code called ASCCI which assigns a value of decimal 1 to decimal  128 
  44. to  characters used by them.  Commodore in their unique wisdom however  chose 
  45. not  to  use  this  standard an developed a character  set  unique  to  there 
  46. machines  using  decimal codes 1 to 256.  So in order to use data created  by 
  47. other  machines it is necessary to convert it too PETASCCI code a form  which 
  48. your Commodore computer can understand.
  49.  
  50.      Aside from the data differences Commodore also chose to use a  different 
  51. way of storing  information on their floppy disk as well. Mostly their reason 
  52. for this was to build a cheaper disk drive. They use GCR format as opposed to 
  53. MFM  format for the rest of the U.S.  computer industry.  I won't go into the 
  54. difference  here  but,  it is nice to know that the 1571 Disk Drive  has  the 
  55. capability of reading and writing to both formats with the use of the  proper 
  56. software.  We'll  get into this  more bellow.  The thing to remember here  is 
  57. that  all Native Commodore operating systems (home computers) including  CP/M 
  58. use the GCR format.
  59.  
  60.      Well  armed with this information what else do we need to know?  For one 
  61. it  is important to know whether you are using a single or double sided  disk 
  62. format.  For  another it is important to know which operating system (or disk 
  63. drive)  your  disk was formatted on.  The types of disk formats  we  will  be 
  64. discussing here are the following:
  65.  
  66. a.  C-64    Single Sided  1541 
  67. b.  C-128   Single Sided  1571 (1541 compatible)
  68. c.  C-128   Double Sided  1571 (not 1541 compatible)
  69. d.  C-128   CP/M (GCR) 1571 Single Sided (1541 compatible))
  70. e.  C-128   CP/M (GCR) 1571 Double Sided (not 1541 Compatible))
  71. f.  C-128   CP/M (MFM) IBM (CP/M-86) Single Sided 1571 (not 1541 Compatible))
  72. g.  C-128   CP/M (MFM) IBM (CP/M-86) Double Sided 1571 (not 1541 Compatible))
  73. h.  MSDOS   IBM Double Sided (9 tracks) DOS Version 2.0 or higher.
  74.  
  75.      As you can see I have listed the Disk types in upward compatible  order. 
  76. Commodore did develop a CP/M version (2.2) for the C-64 which required an add 
  77. on  cartridge to implement and as such I've included it in our list  although 
  78. we  will  be  discussing the 128 Version here which is CP/M + (Ver  3.0)  and 
  79. takes advantage of the 128's Banked Memory (additional 64k as opposed to only  
  80. 64k for Ver 2.2).
  81.  
  82.     The  Stock C-128 CP/M Operating System which comes with the  computer  is  
  83. capable of reading and writing formats d.  e.  f. & g. noted above. The stock 
  84. system  is  also capable of reading  Kaypro And Epson Formats  as  well.  The 
  85. System  will automatically identify the disk type in current use in the lower 
  86. right  hand corner of your monitor.  Note when a disk format other than a 128 
  87. Single  or Double Sided format is used the user must tell the system  whether 
  88. or  not the non-128 formatted disk is a single or double sided disk.  This is 
  89. done  by  pressing the left or right arrow keys on the top row  next  to  the 
  90. function  keys.  Failing  to identify the correct format can cause disk  read  
  91. and  write  errors  so be sure to properly set the  system  for  the  correct 
  92. format.   
  93.  
  94.      There are Two Public Domain Programs available that will enhance the  C-
  95. 128  Systems  ability to read write and format other CP/M formats.  They  are 
  96. Called  NFORMAT.COM and UNIDRIVE.LBR File numbers 1554 and 2682 in the  C-128 
  97. library  number 34 on the CP/M R.T.  NFORMAT will allow you to format all  of 
  98. the  formats  indicated above and Osborne DD formats as well.  Unidrive  will 
  99. allow  you  to  read/write up to 10 formats out of a  menu  of  25  different 
  100. formats  not  supported by the stock O/S.  Although there are more than  200+ 
  101. CP/M formats these 25 will surely enhance your systems capabilities and cover 
  102. a range of the more popular formats you will encounter. 
  103.  
  104.      More  than likely at some point you will want to transfer data you  have 
  105. created on your C-64 or 128 in native mode.  The stock system can't do  this. 
  106. But don't get discouraged.  A real Nifty Program to read and transfer/convert 
  107. Data  from  your  Commodore  disk has been put in the Public  Domain  by  Rob 
  108. Tiloston  called RDCBM21.LBR.  This is file number 3733 on the CP/M  R.T.  It 
  109. will  allow  you to transfer binary (program) files or sequential  files  you 
  110. have  created in native mode to your Ram Disk or second Disk Drive while  you 
  111. are in CP/M operating mode.  The program will also convert PETASCCI to  ASCCI 
  112. for  you  as well.  CP/M uses ASCII files and your Commodore text files  will 
  113. have  to be converted for you to use them in CP/M mode.  The program is  very 
  114. helpful in this respect and eliminates your having to use other utility files 
  115. for  the conversion.  The other nice feature of this program is that you  can 
  116. transfer  CP/M  program files you have down loaded with your Native  terminal 
  117. program  to  a Commodore formatted disk directly to a CP/M disk or  your  RAM 
  118. disk while in CP/M mode. This is a much eaiser way of accomplishing transfers 
  119. than  some  of the earlier transfer programs that came out in  the  beginning 
  120. days  of C-128 CP/M.  The program is menu driven and easy to use and I highly 
  121. recommend it for anyone just beginning in CP/M mode.  
  122.  
  123.      While  we're on the topic of Commodore to CP/M transfers I'll shift back 
  124. into  Native mode transfer programs for just a moment.  There are 2  programs 
  125. that  are available here on GEnie for use in 128 Mode to facilitate  Disk  to 
  126. Disk transfers of Data.  One is a DEMO program of a commercial program called 
  127. Big Blue Reader,  File number 2264 in Library 9 of the Commodore R.T.  and it 
  128. will allow you to view MSDOS Data files on your 128.  The actual program will 
  129. implement full file transfers and I believe the current version also supports 
  130. CP/M transfer as well. The suggested retail price is $29.95. 
  131.  
  132.      The  other Program is called CROSSLINK2.LBR,   File number 3023 also  in 
  133. Library  9.  Cross Link is a fully implemented menu Driven Disk to Disk  (2nd 
  134. Drive  optional)   transfer  program  that will  make just about any kind  of 
  135. transfer/conversion you can think of.  It will handle CBM,  CP/M and IBM Disk 
  136. formats  and   do  ASCCI  PETASCCI conversions  as well PRG and  Screen  file 
  137. conversions  too.  This means that it will convert just about  any  Commodore 
  138. text file format into a usable CP/M or MSDOS format that you require. You can 
  139. also  use  it  to  convert different text file formats used  by  the  various 
  140. Commodore word processing applications programs too.  It is an absolute  MUST 
  141. HAVE  utility for any one using more than one type of word processor on their 
  142. Commodore computer. 
  143.  
  144.      The  major draw back with using either of these two programs  though  is 
  145. that  they  are limited in the size of the files that they  can  transfer  to 
  146. about  200 disk blocks or 40k of memory.  This is because they store the data 
  147. being transferred in a RAM buffer and Don't transfer the data directly.  This 
  148. can  be overcome by splitting a larger file into smaller ones for text  files 
  149. but you will not have this option in the case of a Program  ARC or LBR  files 
  150. which can't be split. For larger files you are going to have to use the RDCBM
  151. program  above or employ a direct conversion method of tranfering  your  data 
  152. such  as  a Null Modem Cable (See my article in the June issue of the  S.B.J. 
  153. for more info on this method).
  154.  
  155.      Now back to CP/M mode,  to use an MSDOS formatted disk on your 128 there 
  156. is a program called RDMS233C.LBR, File number 2566  in Library 34 of the CP/M 
  157. R.T.  This program will allow you to copy an MSDOS disk file directly to your 
  158. RAM  disk or second drive.  File size is limited only to the  available  disk 
  159. space.  The  only problem with this program however is that it will only read 
  160. an  MSDOS disk not write to it.  To get the Data back to an MSDOS format  you 
  161. will  have  to  copy it to a CP/M disk and use the  Crosslink  program  noted 
  162. above.
  163.  
  164.      For  those of you who will be doing a lot of MSDOS / CP/M transfers  and
  165. don't  want to go through the Gymnastics of multiple file conversions I would 
  166. highly recommend an MSDOS Program called UNIFORM.  It is a commercial program 
  167. which  retails for $59.95 available at most retail software outlets that will 
  168. allow  you to read/write CP/M disk on the second floppy drive of  your  MSDOS 
  169. machine.  It  supports over 200+ CP/M formats and you can take your work home 
  170. and  bring it back the next day if you use one of the Alternate  MFM  formats 
  171. supported on the Commodore 128 noted above.  It's well worth the price if you 
  172. do  a  lot  of  work at home and don't want to spend the extra  time  at  the 
  173. office. 
  174.  
  175.      Well  that's  about all for now if you have questions or need help  with 
  176. any  of  these programs drop me a line and I'll be glad to  offer  what  ever 
  177. assistance I can. 
  178.  
  179. Happy *Puting*                    -=[CARL]=-                    [CHUCK.WAGON]
  180.  
  181.  
  182.  
  183.