- Inside Macintosh: Devices /
- Chapter 1 - Device Manager / Device Manager Reference
- Device Manager Functions / Writing and Installing Device Drivers
Stash
You can use the Stash routine to store the next character from the data buffer.
DESCRIPTION
The Stash routine places the character in register D0 into the data buffer pointed to by the ioBuffer field of the parameter block of the pending request and increments the ioActCount field by 1. If the ioActCount field equals the ioReqCount field, this routine sets bit 15 of register D0. After stashing the last byte requested, the driver should jump to the IODone routine.
ASSEMBLY-LANGUAGE INFORMATION
| Registers on entry |
| A1 | Pointer to DCE |
| D0 | Character to stash |
| Registers on exit |
| D0 | Bit 15 = 1 if this is the last character in the buffer |
© Apple Computer, Inc.
3 JUL 1996