hewlett-packard HP 9835A — 158

158 I/O Handling The MSTID is a single word. The information in it is returned by the Mm _read_start utility and used by the Mm _read _ xfer utility. The usual procedure in reading a record from mass storage (which is all that can be read at one time) is to call the Mm _read_start utility and then, if all goes well with that, to call the the device, it is possible the utility may return without having completed the transfer. In that case, it is your option either to loop back and keep trying, or to do something else and try again Mm _read _ xfer utility. Because the latter utility may have to wait on the operating system or later. UTILITY: Mm read start General Procedure:

The record number is determined, then the transfer of the record's contents is made from the device to the device buffer. If the buffer allocation causes a memory overflow, there is an error. Special Requirements: The record number and msus must be loaded into the MSD in ad- vance of the call. There must be a stable location (not changed by other activities) for the MSTID to be held. Calling Procedure: 1. Store the msus and record number into the MSD area. 2. Load register A with the address of the MSD area. 3. 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.