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 / PROGRAMS / CLOCKK / MDCLCK13.LBR / CPM3CLCK.ZZZ / CPM3CLCK.
Text File  |  2000-06-30  |  4KB  |  113 lines

  1. To  use  the date/time stamping facilities of CP/M 3.0  with  the 
  2. Morrow  MD-HD machines it is necessary to implement bios call  26 
  3. (get/set time) or at least the get time portion of it.  This will 
  4. allow bdos function 105 (get date and time) to read the  realtime 
  5. clock.   Bdos function 104 (set date and time) will not work  and 
  6. hence the SET function of DATE.COM will not either.  However  the 
  7. clock  can be set directly with other programs supplied  in  this 
  8. library.  How often do we need to set the clock anyway?
  9.  
  10. There  is  only one piece of software you will  need  other  than 
  11. those in this library and those supplied by Morrow with your  MD-
  12. HD  to generate a new CPM3.SYS (or CPM3F.SYS) file that  includes 
  13. the  bios call 26.  You will need MicroSoft's MACRO-80  assembler 
  14. (M80.com) version 3.44 or later.
  15.  
  16. The  first  step  is to build the clock and  verify  that  it  is 
  17. working with the programs in this library.  You are then ready to 
  18. proceed  with  the bios changes.  I suggest that you do  all  the 
  19. initial  work on a floppy (boot of the HD but log into B:  to  do 
  20. your work) and when you are satisfied then change the hard  disk.  
  21. The  ease  of making bios changes in CPM 3.0 versus  CPM  2.2  is 
  22. simple  amazing.  With the BIOS.SUB file supplied by  Morrow  all 
  23. you do is sit back and watch things happen on the screen.
  24.  
  25. Ok,  let's get ready.  Format a clean floppy and put  the  system 
  26. loader on the system tracks:
  27.  
  28. A>format b d<cr>
  29.  
  30. A>copysys sysldrf.com b:<cr>
  31.  
  32. Now using pip copy the following files to the floppy:
  33.  
  34. BIOS.SUB
  35. BNKBDOS3.SPR
  36. CPM3F.SYS
  37. DEFINE.MAC
  38. DRIVES.MAC
  39. GENCPM.DAT
  40. HD22DEF.MAC
  41. RESBDOS3.SPR
  42. SCB.ASM
  43. SUBMIT.COM
  44. BNKBIOS3.MAC  (Make sure that it is version 2.0)
  45.  
  46. Make sure that the following files are in user 0 of the hard disk 
  47. (drive A) and declared as system files:
  48.  
  49. PUT.COM
  50. M80.COM  (You have to come up with this one.)
  51. RMAC.COM
  52. LINK.COM
  53. GENCPM.COM
  54.  
  55. From this library get SSED.COM (Simple Stupid EDitor) and put  it 
  56. on user 0 of the hard disk and declare is a system file.
  57.  
  58. A>set ssed.com [sys]
  59.  
  60. Also from this library get BNKBIOS3.DIF and put it on the floppy.
  61.  
  62. Now log into b and create a new BNKBIOS3.MAC there:
  63.  
  64. A>b:<cr>
  65. B>ssed a:bnkbios3.mac <bnkbios3.dif >bnkbios3.mac
  66.  
  67. You  should  now have a modified version of BNKBIOS3.MAC  on  the 
  68. floppy.   Pull  up DEFINE.MAC (from the floppy)  into  your  word 
  69. processor in the non-document mode and make sure that the  floppy 
  70. equate is true:
  71.  
  72. Floppy    equ  True
  73.  
  74. Save it back to the floppy
  75.  
  76. Now generate your new CPM3F.SYS file:
  77.  
  78. B>bios f<cr>
  79.  
  80. Don't get concerned if nothing seems to happen after the  initial 
  81. rush  of  activity.  It'll spend about 3 minutes in  M80.   After 
  82. that  things really get busy.  Just sit back and watch it.   When 
  83. your  done you will have a new file called CPM3F.NEW.  Now  comes 
  84. the  acid  test.   Rename  CPM3F.SYS  as  CPM3F.OLD  and   rename 
  85. CPM3F.NEW  as CPM3F.SYS.  Also create a PROFILE.SUB file on  your 
  86. floppy that contains the following:
  87.  
  88. b:setdef *,b:[order=(com,sub)]
  89.  
  90. Now hit the reset button and when it asks if you want to boot  of 
  91. the floppy say yes.  After it boots and everything settles  down, 
  92. give  it  a date command.  The proper day, date and  time  should 
  93. come  up  (or  at least whatever you set the clock  to  plus  the 
  94. elapsed  time since then).  If all is hunky-dory push  the  reset 
  95. button, boot off the hard disk and log into the floppy.
  96.  
  97. Call  DEFINE.MAC back into the word processor and this  time  set 
  98. the floppy equate to false:
  99.  
  100. Floppy    equ  False
  101.  
  102. Get out of the word processor and generate CPM3.SYS:
  103.  
  104. B>bios<cr>
  105.  
  106. Same  as  before  except  this time you'll  have  a  file  called 
  107. CPM3.NEW.  Log back into A, rename CPM3.SYS as CPM3.OLD (just  in 
  108. case)  and  copy CPM3.NEW from the floppy as your  new  CPM3.SYS.  
  109. Push the reset button and reboot off the hard disk.  Give it  the 
  110. date  command  and verify that it is still working.  Then  go  ye 
  111. forth and enable the date stamping or what ever.  Hope you  enjoy 
  112. it.   Mike Allen  3/31/87.
  113.