home *** CD-ROM | disk | FTP | other *** search
/ CP/M / CPM_CDROM.iso / beehive / zcat / lbrdsk23.lbr / LBRDISK2.NQT / LBRDISK2.NOT
Text File  |  1991-01-30  |  2KB  |  42 lines

  1.                  Implementing LBRDISK with ZCPR2
  2.  
  3.      ZCPR2  checks  the drive code when attempting to log into  a 
  4. new  disk.   Since LBRDISK is often used to create psuedo  drives 
  5. higher  than the installed drive,  it is necessary to change  the 
  6. MAXDISK equate in ZCPRHDR.LIB.  Besides, it is the responsibility 
  7. of the BIOS to check for (and gracefully recover from) an invalid 
  8. physical disk selection.  
  9.  
  10.      I  suggest  setting MAXDISK to 15 and  re-installing  ZCPR2.  
  11. Oh,  and it is a good idea to set MAXUSER to 15 for compatibility 
  12. with CP/M+ and other CP/M systems.
  13.  
  14.      If  you have the source code for your BIOS the beginning  of 
  15. the SELDSK routine should be something like the following:
  16.  
  17.      SELDSK:   MOV  A,C       ;Get new disk
  18.                LXI  H,0       ;Flag possible invalid disk
  19.                CPI  MAXDSK    ;or whatever the variable name for
  20.                               ;maximum physical drive is.
  21.                JC   DSKOK     ;Jump if ok
  22.                XRA  A
  23.                STA  4         ;So that the CCP is not caught in
  24.                               ;a loop
  25.                RET
  26.      DSKOK:    STA  SEKDSK    ;or whatever the variable name is
  27.                .
  28.                .
  29.      (Remainder of SELDSK routine)
  30.                .
  31.                .
  32.  
  33.      If  there is room in your BIOS,  you should install code  to 
  34. print  an  error  message on select error,  and jump  to  WBOOTE.  
  35. Note:   it  must jump to WBOOTE,  not to WBOOT so  that  the  RSX 
  36. manager can intercept.
  37.  
  38.  
  39. Jim Lopushinsky
  40. March 7/84
  41. 403-484-5981  @ 300/1200 baud.
  42.