User`s guide
BDOS FUNCTION 103: WRITE FILE XFCB
Entry Parameters:
Registers C: 67H
DE: FCB Address
Returned Value:
Registers A: Directory Code
H: Physical Error
Ile Write File XFCB function creates a new XFCB or updates the existing XFCB
for the specified file. The calling program passes in register pair DE the address of an
FCB in which the drive, name, type, and extent fields have been defined. The extent
field specifies the password mode and whether a new password is to be assigned to
the file. The format of the extent byte is shown below:
FCB byte 12 (ex) : XFCB password mode
bit 7 - Read mode
bit 6 - Write mode
bit 5 - Delete mode
bit 0 - Assign new password to the file
If the specified file is currently password protected, the correct password must reside
in the first eight bytes of the current DMA, or have been previously established as
the default password (see Function 106). If bit 0 is set to 1, the new password must
reside in the second eight bytes of the current DMA.
3-83
BDOS Function Calls CP/M 3 Programmers Guide