home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 3 / TheARMClub_PDCD3.iso / hensa / diskmanager / ziptools_2 / ziptools / SWIs < prev    next >
Encoding:
Text File  |  1997-05-03  |  2.2 KB  |  74 lines

  1.  
  2. SWIs provided by the ZipTools module:
  3.  
  4. The SWI Base is 0x46C0. It was arbitrarily chosen, so may clash with other
  5. modules. The SWIs are listed below, in order.
  6.  
  7. Zip_ID     Set the current ZIP SCSI ID, and return the old value.
  8.              On Entry:
  9.                R0 = SCSI ID of Zip drive.
  10.              On Exit:
  11.                R0 = Old ID of Zip drive.
  12.                All other registers preserved.
  13.  
  14. Zip_Eject  Eject the current disk.
  15.              On Entry:
  16.                    No entry requirements.
  17.              On Exit:
  18.                    R0 corrupted.
  19.                    All other registers preserved.
  20.  
  21. Zip_Status Get the current protection status.
  22.              On Entry:
  23.                No entry requirements.
  24.              On Exit:
  25.                R0 = protection status, as returned from the drive. See below.
  26.                All other registers preserved.
  27.  
  28. Zip_Unlock Temporarily remove protections.
  29.              On Entry:
  30.                R0 = Address of password in memory, if used.
  31.                R1 = Length of password, or 0 if no password is to be used.
  32.              On Exit:
  33.                R0 corrupted.
  34.                All other registers preserved.
  35.  
  36. Zip_WProt  Set write protection.
  37.              On Entry:
  38.                R0 = Address of password in memory, if used.
  39.                R1 = Length of password, or 0 if no password is to be used.
  40.              On Exit:
  41.                R0 corrupted.
  42.                All other registers preserved.
  43.  
  44. Zip_Unprot Remove protection.
  45.              On Entry:
  46.                R0 = Address of password in memory, if used.
  47.                R1 = Length of password, or 0 if no password is to be used.
  48.              On Exit:
  49.                R0 corrupted.
  50.                All other registers preserved.
  51.  
  52. Zip_Prot   Password protect a disk.
  53.              On Entry:
  54.                R0 = Address of password in memory.
  55.                R1 = Length of password.
  56.              On Exit:
  57.                R0 corrupted.
  58.                All other registers preserved.
  59.  
  60.  
  61. I don't have a technical specification for the Iomega vendor specific SCSI
  62. commands; all my coding is based on Unix source code. The following values
  63. can be returned by Zip_Status for disks which have been protected on RISC
  64. OS. It's possible that newer devices and/or Jaz drives may implement more
  65. 3-bit protection codes. My Zip drive returns target errors for all codes
  66. except thos listed below:
  67.  
  68. Base 10  Binary  Meaning
  69.       0     000  The disk is not protected.
  70.       2     010  The disk is write protected, no password.
  71.       3     011  The disk is password write protected.
  72.       5     101  The disk is password protected for both reading and writing.
  73.  
  74.