Important: The information in this document is obsolete and should not be used for new development.
SPutPRAMRec
You can use theSPutPRAMRec
function to change the values stored in a slot's parameter RAM.
FUNCTION SPutPRAMRec (spBlkPtr: SpBlockPtr): OSErr;
- spBlkPtr
- A pointer to a Slot Manager parameter block.
--> spsPointer
Ptr
A pointer to an SPRAMRecord
data structure (described on page 2-27).--> spSlot
SignedByte The slot number. DESCRIPTION
TheSPutPRAMRec
function allows you to change the values stored in the parameter RAM of a slot.In the parameter block you point to in the spBlkPtr parameter, you specify the slot number with the
spSlot
field and provide the new parameter RAM values in aSPRAMRecord
data structure pointed to by thespsPointer
field.The
SPutPRAMRec
function copies the information from the six vendor-use fields into the parameter RAM for the slot. This function does not copy theboardID
field, which is Apple-defined.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for theSPutPRAMRec
function are
Trap macro Selector _SlotManager $0012 You must set up register D0 with the routine selector and register A0 with the address of the Slot Manager parameter block. When
_SlotManager
returns, register D0 contains the result code.
Registers on entry A0 Address of the parameter block D0 $0012
Registers on exit D0 Result code RESULT CODES
noErr 0 No error smEmptySlot
-300 No card in this slot