home *** CD-ROM | disk | FTP | other *** search
- Get ZSDOS File Datestamp - GETSTP
- Set ZSDOS File Datestamp - SETSTP
- Get CP/M-Plus File Datestamp - GSTPCP
- Set CP/M-Plus File Datestamp - SSTPCP
- :
- GETSTP - Get ZSDOS file datestamp to 128-byte buffer.
-
- ENTER: DE = address of file's FCB,
- HL = address of 128-byte datestamp buffer.
- EXIT: Zero flag set (Z) and A=0 if buffer filled,
- Zero flag reset (NZ) if error or not ZSDOS.
- USES: AF
-
- Usage: Buffer is filled with 15-byte datestamp as yy mm dd hh min of file
- creation, last access, and last modification, respectively. If file is not
- at default drive, FCB must be initialized with drive. If file is not at
- default user, FCB must be initialized with user number and ZSDOS error mode
- set to non-zero.
- :
- SETSTP - Set file datestamp from 128-byte buffer.
-
- ENTER: DE = address of file's FCB,
- HL = address of 128-byte datestamp buffer.
- EXIT: Zero flag set (Z) and A=0 if file stamped,
- Zero flag reset (NZ) if error or not ZSDOS.
- USES: AF
-
- Usage: Buffer is filled with 15-byte datestamp as yy mm dd hh min of file
- creation, last access, and last modification, respectively. If file is not
- at default drive, FCB must be initialized with drive. If file is not at
- default user, FCB must be initialized with user number and ZSDOS error mode
- set to non-zero.
- :
- GSTPCP - Get file datestamp from CP/M Plus to 128-byte buffer.
-
- ENTER: DE = address of file's FCB,
- HL = address of 128-byte datestamp buffer.
- EXIT: Zero flag set (Z) and A=0 if buffer filled,
- Zero flag reset (NZ) if error or not CP/M Plus.
- USES: AF
-
- Usage: If file is not at default drive, FCB must be initialized with drive.
- File must be at default user. File stamp is converted to DateStamper
- format (yy mm dd hh min of file creation, last access, and last
- modification, respectively, in BCD). The CP/M Plus create/access stamp is
- copied to both the create and access fields of the caller's buffer. The
- calling program must examine the disk label to determine which field(s) are
- valid. On exit, only the first 15 bytes of data in the caller's buffer are
- valid.
- :
- SSTPCP - Set file datestamp to CP/M Plus from 128-byte buffer.
-
- ENTER: DE = address of file's FCB,
- HL = address of 128-byte datestamp buffer,
- BC = address of 1024-byte DMA buffer.
- EXIT: Zero flag set and A=0 if stamp set,
- Zero flag reset (NZ) if error, error in <A>:
- FF = file not found,
- 06 = not CP/M Plus,
- 05 = no stamps on disk,
- 04 = BIOS sector size > 1024 bytes,
- 03 = drive invalid,
- 02 = BIOS read error,
- 01 = BIOS write error.
- USES: AF
-
-
- (continued next screen)
-
- SSTPCP (continued)
-
- Usage: The datestamp buffer should be filled on entry to BCD yy mm dd hh
- min of file creation, last access, and last modification, respectively. If
- valid, (month <> 0) the BCD creation field is copied to the CP/M Plus
- Create/Access field. Otherwise, the BCD last access field is used, or the
- CP/M Plus Create/Access field is zeroed if neither are valid. Similarly,
- the BCD last modification field is copied to the CP/M Plus Update field, or
- the Update field is zeroed if the BCD stamp is invalid. The file whose
- stamp is to be set must either be on the current drive or at the drive
- specified by FCB byte 0. Only files at the current user number will be
- matched. To allow a reasonable interface standard, this routine will NOT
- work under systems configured with BIOS sectors larger than 1k. No systems
- exceeding this size have yet been encountered, but BIOS sectors of 2k and
- 4k are technically legal under CP/M Plus. No wildcards are allowed in the
- file's FCB.