System information

FUNCTION21: WRITE SEQUENTIAL
Entry Parameters:
Register C: 15H
Registers DE: FCB Address
Returned Value:
Register A: Directory Code
Given that the FCB addressed by DE has been activated through an Open or Make function, the
Write Sequential function writes the 128-byte data record at the current DMA address to the file
named by the FCB. The record is placed at position cr of the file, and the cr field is automatically
incremented to the next record position. If the cr field overflows, the next logical extent is
automatically opened and the cr field is reset to zero in preparation for the next write operation.
Write operations can take place into an existing file, in which case newly written records overlay
those that already exist in the file. Register A = 00H upon return from a successful write
operation, while a nonzero value indicates an unsuccessful write caused by a full disk.
5.2 Call Conventions CP/M Operating System Manual
5-24