home *** CD-ROM | disk | FTP | other *** search
/ CP/M / CPM_CDROM.iso / cpm / bdos / suprdos2.lbr / DOS.ZZZ / DOS.AZM
Encoding:
Text File  |  1987-10-04  |  2.0 KB  |  74 lines

  1. ;=============================
  2. ;SUPRBDOS Customization
  3. ;
  4. ;SUPRBDOS is a derivative of P2DOS by H.A.J. Ten Brugge of the Netherlands.
  5. ;It is subject to the same restriction as P2DOS, namely, that it is for
  6. ;non-commercial use only.
  7. ;
  8. ;See SUPRBDOS.DOC for more information on installation.
  9. ;
  10. FALSE    EQU    0 
  11. TRUE    EQU    0FFH
  12. ;
  13. ;Set these conditionals before assembly 
  14. ;Conditionals 
  15. DOTIME    EQU    FALSE            ; True if time-stamping is supported 
  16. ;Only one of these should be true:  
  17. M80    EQU     FALSE            ; True if using M80 or compatible
  18. Z80MR    EQU    TRUE             ; True if using Z80MR 
  19. ;
  20.     IF    M80
  21.     CSEG
  22.     ENDIF
  23. ;
  24. ;
  25. ;Some systems, like the Kaypro 4, only recognize changes between single 
  26. ;and double sided disks when the system is warm booted; bdos function 13 
  27. ;(reset disk) will not work.  By adding a "hook" to the bios of these 
  28. ;machines and setting RESDSK to TRUE, bdos functions 13 and 37 will 
  29. ;allowchanges between single and double sided disks.  Very handy for disk
  30. ;housekeeping utilities such as NSWP, NULU, and cataloging programs.  
  31. ;  
  32. ;The "hook" is added as follows: Obtain the source to your computer's BIOS.  
  33. ;Examine the code for WARM BOOT.  Somewhere, there should be a call to 
  34. ;a routine which initializes the disk system after a warm boot, or which 
  35. ;detects changes between single and double sided disks.  Call this routine
  36. ;DISKINT for purposes of discussion.  Modify your bios's cold boot routine to
  37. ;initialize 3 bytes at address SETDSK as "JP DISKINT".  The location of SETDSK
  38. ;is arbitrary, it may be in your bios, or in a reserved spot in CP/M's page 0.
  39. ;
  40. RESDSK    EQU    FALSE
  41.     IF    RESDSK
  42.     ;address of JP DISKINIT set by modified Kaypro bios
  43.     ;change to suit your system.
  44. SETDSK    EQU    04BH            
  45.     ENDIF
  46. ;
  47.     IF    M80
  48.     .Z80
  49. ;    $INCLUDE ORG.DAT
  50.     $INCLUDE DOS1.MAC
  51.     $INCLUDE DOS2.MAC
  52.     ENDIF
  53. ;    
  54.     IF    Z80MR
  55. *INCLUDE    ORG.DAT
  56. *INCLUDE    DOS1.MAC
  57. *INCLUDE    DOS2.MAC
  58.     ENDIF
  59. ;
  60.     END
  61. ;
  62.  
  63. .MAC
  64.     $INCLUDE DOS2.MAC
  65.     ENDIF
  66. ;    
  67.     IF    Z80MR
  68. *INCLUDE    ORG.DAT
  69. *INCLUDE    DOS1.MAC
  70. *INCLUDE    DOS2.MAC
  71.     ENDIF
  72. ;
  73.     END
  74. ;