Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

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
A1Pointer to DCE
D0Character to stash
Registers on exit
D0Bit 15 = 1 if this is the last character in the buffer
Jump vector
JStash

Previous Book Contents Book Index Next

© Apple Computer, Inc.
3 JUL 1996