Previous Book Contents Book Index Next

Inside Macintosh: Devices /
Chapter 1 - Device Manager / Device Manager Reference
Device Manager Functions / Writing and Installing Device Drivers


You can use the Stash routine to store the next character from the data buffer.

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.

Registers on entry
A1Pointer to DCE
D0Character to stash
Registers on exit
D0Bit 15 = 1 if this is the last character in the buffer
Jump vector

Previous Book Contents Book Index Next

© Apple Computer, Inc.
3 JUL 1996