home *** CD-ROM | disk | FTP | other *** search
/ Oakland CPM Archive / oakcpm.iso / sigm / vol111 / interdos.doc < prev    next >
Encoding:
Text File  |  1984-04-29  |  5.7 KB  |  89 lines

  1. #JUST ON
  2. #offs 10
  3. #SPACE 2
  4. #TITLE INTERDOS DOCUMENTATION
  5. <INTERDOS
  6.  
  7.     [INTERDOS is a CP/M program for moving data files from North Star
  8. disks to CP/M disks and back.  CP/M is a trademark of Digital Research,
  9. INTERDOS is not a Digital Research product.  INTERDOS works by loading
  10. the North Star DOS into memory while CP/M is loaded and making calls
  11. between the two operating systems to do the disk I/O.  In addition to
  12. simple file copy, INTERDOS will make certain format changes also.]
  13.     [The standard CP/M record format for ED or ASM files is the text line
  14. followed by a carriage return and a line feed.  There are several formats
  15. for North Star, but the one addressed in INTERDOS is the format used by
  16. SECRTARY, XEK, and several old assemblers.  This format is character
  17. count, four ASCII digits for the line number, and a carriage return.
  18. INTERDOS will copy either from North Star to CP/M or CP/M to North Star.
  19. If you are copying from North Star to CP/M, five conversion options are
  20. available.  First, of course, is file-to-file copy without conversion.
  21. Second, SECRTARY format to CP/M ASM format.  With this conversion the
  22. line numbers are stripped off, tabs are inserted in certain locations
  23. and both a carriage return and a line feed are added to the destination
  24. line.  The third format is similar to the second, but no tabs are
  25. inserted.  The fourth format is to create a file on CP/M that can be
  26. read for CP/M BASIC.  This is called the SECRTARY to CP/M BASIC conversion
  27. and is similar to the third option except that the line numbers are left
  28. on.  The output record will contain the four ASCII character line number,
  29. the text line without inserting tabs, and a carriage return and line feed
  30. at the end of the line.  The last option is the North Star BASIC to CP/M
  31. BASIC format.  North Star BASIC files contain the line number as a binary
  32. two byte field, and the BASIC keywords are kept as one byte tokens.  This
  33. conversion option converts the line number to four ASCII characters,
  34. converts the tokens to the ASCII equivalent and adds a carriage return
  35. and line feed at the end of the line.  NOTE: THE LINE NUMBERS IN THE BASIC
  36. PROGRAM MUST NOT BE GREATER THAN 9999.  Renumber the lines in BASIC before
  37. doing the file copy if necessary.  Also this only converts the lines and
  38. not the actual code.  There are several differences between North Star
  39. BASIC and CP/M BASIC which have to be changed before a North Star BASIC
  40. program can be run under CP/M.]
  41.     [When copying files from CP/M to North Star, there are two options.
  42. First is file-to-file copy without conversion.  Second, convert a CP/M
  43. hex file to North Star type 2 executable file.  The second conversion
  44. takes into account that ASM leaves gaps in the hex file where undefined
  45. code was reserved.  INTERDOS fills these gaps with zeroes.  It assumes
  46. that the file has the type and go address set properly so it ignores the
  47. hex file addresses except for filling gaps.  In both options, the file
  48. must have already been created under North Star DOS.]
  49.     [INTERDOS will work with single or double density disks.  The source
  50. code is given because you may want to change the density or add additional
  51. conversion formats of your own.  There are two equates at the beginning
  52. of the program that you may want to change.  The first is NSBOOT and is
  53. the address of the ROM on the North Star disk controller board.  This is
  54. used to jump to in order to boot in the DOS.  In older systems, this
  55. address was E900, but in the newer and double density systems, this
  56. address is E800.  The second equate that may be changed is DENSITY.  This
  57. is the density of the system and should be set to "S" for single density
  58. or "D" for double or quad density.]
  59.     [Operation of INTERDOS is simple.  Mount a disk into the North Star
  60. drive that contains the North Star DOS.  Then type the CP/M command
  61. INTERDOS.  INTERDOS will load, print the signon message and ask
  62. "REBOOT NORTH STAR DOS (Y/N)?".  At this point enter Y and the program
  63. will jump to E800 (or E900) to boot DOS.  DOS will gain control and type
  64. the * or +.  Type JP 100 to DOS to return to INTERDOS.  INTERDOS will
  65. reexecute and again ask "REBOOT NORTH STAR DOS(Y/N)?".  This time type N.
  66. Then it will ask "DESTINATION SYSTEM (C/N)? ".  Enter C to copy from
  67. North Star to CP/M or enter N to copy from CP/M to North Star.  A
  68. verification message will then be displayed.  Next it will list the
  69. possible formats and ask for character 0 thru 5.  If you enter an
  70. invalid format or a format that is invalid for that copy type (such as
  71. North Star BASIC to CP/M BASIC when you are copying CP/M to NS), the
  72. options will be relisted and you will again be asked to enter the format.]
  73.     [The program needs to know when to stop the copying process.  In most
  74. North Star formats, the end-of-file mark is an 01.  It can also count
  75. blocks and stop when the block count exceeds the amount listed in the
  76. directory.  The program will ask "EOF USING 01 OR BLOCK COUNT (1/B)?".
  77. Enter 1 if it should stop when it encounters an 01 byte or enter B if it
  78. should stop when it reaches the block count.]
  79.     [Then the program will tell you to mount the disks and enter return.
  80. This makes sure the disks are ready so that when it asks for the file name
  81. it can search the disk to be sure the file is there if it should be.]
  82.     [Finally it will ask for the file names.  The CP/M file name is in the
  83. standard format X:xxxxxx.ttt   If a carriage return is entered without
  84. entering any characters, INTERDOS returns to CP/M.  The North Star
  85. file name follows the North Star conventions including the optional comma
  86. and drive number at the end.  The file copy process will begin as soon
  87. as the files are verified.  As the files are copied under all formats,
  88. all printable characters are displayed at the console.]
  89.