User`s guide
If the BDOS Multi-Sector Count is greater than one (see Function 44), the Write
Random function reads multiple consecutive records into memory beginning at the
current DMA. The rO, rl, and r2 field of the FCB is automatically incremented to
write each record. However, the FCB's random record number is restored to the first
record's value when it returns to the calling program. Upon return, the Write Ran-
dom function sets register A to zero if the write operation is successful. Otherwise,
register A contains one of the following error codes:
02 No available data block
03 Cannot Close current extent
05 No available directory space
06 Random record number out of range
10 Media change occurred
255 Physical Error : refer to register H
Error Code 02 is returned when the write command attempts to allocate a new
data block to the file and no unallocated data blocks exist on the selected disk drive.
Error Code 03 is returned when the Write Random function cannot close the
current extent prior to moving to a new extent.
Error Code 05 is returned when the write function attempts to create a new extent
that requires a new directory entry and no available directory entries exist on the
selected disk drive.
Error Code 06 is returned when byte 35, r2, of the referenced FCB is greater than
3.
Error Code 10 is returned if a media change occurs on the drive after the refer-
enced FCB is activated by a BDOS Open or Make Call.
3-51
BDOS Function Calls CP/M 3 Programmers Guide