home *** CD-ROM | disk | FTP | other *** search
/ ftp.barnyard.co.uk / 2015.02.ftp.barnyard.co.uk.tar / ftp.barnyard.co.uk / cpm / walnut-creek-CDROM / CPM / HEATH / ZB4MHZ.DOC < prev    next >
Text File  |  2000-06-30  |  5KB  |  107 lines

  1.  
  2.             ZB4MHZ.DOC
  3.  
  4.         P. L. Kelley -  (617) 332-1610
  5.              05/29/82
  6.  
  7.     The file ZB4MHZ.ASM modifies Percom's ZBIOS.SYS and
  8. ZFOR.COM for CP/M to operate with a 4 MHz CPU on the H89. You
  9. will need to modify the CPU board to operate at 4MHz.
  10. Instructions on how to do this can be found in the December 81
  11. H-Scoop or obtained from Najay Systems, 3136 Vermillion Street,
  12. West Covina, CA 91792. You should be warned that some
  13. instructions describe modifications that are specific to the pre
  14. FCC board (the one that is used with the H-19). The new board
  15. used with the H-19A is not identical in the area of the board
  16. where the Najay modifications are made. It was found that the
  17. description given of the location of the clock pullup resistor
  18. and the lines differed from the layout on the FCC board.
  19.  
  20.     Why 4 MHz? Speed of course. In particular, I was very
  21. disturbed by the very, very slow warmboot of a "normal" double
  22. density Percom system (256 byte physical sectoring). I decided to
  23. go 4 MHz hoping I could buy at least a factor of 2 on disk I/O
  24. reasoning that the CPU might be able to keep up with Percom's
  25. non-interleaved sectoring. The non-interleaving of sectors caused
  26. the disk to rotate once per sector accessed; it took about 3
  27. seconds to read a 4K (256 byte physical sectors) track. On the
  28. way to 4 MHz I discovered Percom's undocumented "extended"
  29. density (1K byte physical sectors). For a 32K file using normal
  30. density the 4MHz system takes 18 seconds to load the file while
  31. the 2 MHz system takes about 30 seconds; using extended density
  32. the 4 MHz system takes about 5 seconds while the 2 MHz system
  33. takes 10 seconds. In any case, at 4 MHz and using 1K sector size
  34. the H89 is now acceptably fast based on my earlier experience
  35. with other 5.25 inch CP/M systems.
  36.  
  37.     What is the Percom 4MHz problem? It was not obvious at
  38. least from the approach I took. After modifying the CPU and
  39. making certain that it was running properly by using a 4MHz
  40. modification of Heath's H-17 CP/M I discovered the system would
  41. cold boot from Percom's zrom but do no disk I/O. Using a Z-80
  42. version of Ward Christensen's Resource program I disassembled
  43. both the zrom and ZBIOS.SYS. Much of the code was similar which
  44. puzzled me. I finally discovered a slight difference in the delay
  45. between the interrupt command and the execution of a new command.
  46. There was a MOV A,B in ZBIOS.SYS instead of a POP PSW which was
  47. in zrom. This difference is 6 clock cycles out of approximately
  48. 100 in the zrom version. It took me a long while to believe that
  49. an 6 persent difference was that crucial. If I had taken the
  50. straightforward approach of just doubling the timing loops in
  51. ZBIOS I could have saved myself some time. It was also necessary
  52. to add a slight delay on return from the interrupt routine when
  53. writing single density soft sectored disks.
  54.  
  55.     The changes to ZFOR, Percom's formatting program, were
  56. relatively simple after understanding the 4 MHz problems with
  57. ZBIOS. The tricky part was the routine to synchronize to the
  58. holes when formatting hard disks. I found the appropriate counter
  59. value was not a simple multiple of Percom's value. Either
  60. Percom's value is wrong or my drives are off speed since I had
  61. trouble formatting hard disks at 2 MHz.
  62.  
  63.     Are there remaining problems? At this point I cannot
  64. cold boot at 4 MHz hard sector or single density soft sectored
  65. disks. This is not surprising for hard sectored disks since
  66. the H17 rom must be modified for 4 Mhz operation. I do not plan
  67. to try to solve this problem a I am quite happy to live with
  68. booting from double density or extended density disks.
  69.  
  70.     The information Percom gave me about their system was
  71. incorrect. The minimum configuration needed to run the Percom
  72. board as a stand alone soft sectored controller is:
  73.  
  74.     1. 32K ram
  75.     2. I/O rom (444-61)
  76.     3. H17 rom (444-19)
  77.  
  78. The H17 controller board is not needed except to make the initial
  79. CP/M disk. If you own CP/M for the Heath have your dealer make a
  80. soft sectored Percom system for you or borrow a friend's H17
  81. board to make your own. If you upgrade from an H19 order the roms
  82. at the same time you buy your upgrade kit.
  83.  
  84.     Included in ZB4MHZ.ASM is an implimentation of the
  85. parallel port, something that Percom has not provided in version
  86. 1.00 of their BIOS. It is a simple routine for a Centronics 730
  87. which allows paging and eliminates a linefeed after carriage
  88. return assuming you are using the auto linefeed after carriage
  89. return feature of the 730. It is also possible to cut the
  90. connection between U13 pin 12 and U9 pin 10 and reconnect U13 pin
  91. 12 to U9 pin 9. This readdresses the status port for the printer
  92. from E5 to E6. Since the DSR bit is the same on the serial port
  93. as the BUSY bit on the parallel port, this allows much of the
  94. software written for a serial port to be compatible with the
  95. parallel port; in particular, ZBIOS.SYS will drive the parallel
  96. port.
  97.  
  98.     ZB4MHZ.ASM can be converted from the version to modify
  99. ZBIOS.SYS to the version to modify ZFOR.COM simply by reversing
  100. TRUE and FALSE in two equates in the file. There are options
  101. available in ZB4MHZ.ASM for modifying ZBIOS.SYS depending on
  102. memory size and whether the Centronics 730 driver is desired.
  103. ZB4MHZ.ASM is written for use with versions 1.00 of ZBIOS.SYS and
  104. ZFOR.COM, when and if newer versions become available extensive
  105. modifications to ZB4MHZ.ASM will likely need to be made.
  106.  
  107.