I/O Handling 161 UTILITY: Mm write start General Procedure: The record number is determined, then the transfer of the data is made from the ICOM region to the device buffer. If the buffer allocation causes a memory overflow, there is an error. vance of the call. There must be a stable location (not changed by other activities) for the Special Requirements: The record number and msus must be loaded into the MSD in ad- MSTID to be held. The data to be transferred must be ready (256 bytes - 128 consecutive words). Calling Procedure: 1. Store the data to be transferred in its location. Store the msus and record number into the MSD area. 2. Load register A with the address of the MSD area. 3.
Load register B with the address of the data location. 4. Call the utility. Exit Conditions: RET 1 Occurs if there is a memory overflow during execution of the utility. RET 2 Occurs if all went normally. Register A contains the MSTID. This should be im- mediately stored in the location reserved for it. UTILITY: Mm write test General Procedure: The MSTID is used to check to see if the data from the buffer has been transferred to the mass storage device. Special Requirements: The MSTID must be available from a previous call to Mm write start.