Important: The information in this document is obsolete and should not be used for new development.
SPutPRAMRec
You can use theSPutPRAMRecfunction 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.
--> spsPointerPtrA pointer to an SPRAMRecorddata structure (described on page 2-27).--> spSlotSignedByte The slot number. DESCRIPTION
TheSPutPRAMRecfunction 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
spSlotfield and provide the new parameter RAM values in aSPRAMRecorddata structure pointed to by thespsPointerfield.The
SPutPRAMRecfunction copies the information from the six vendor-use fields into the parameter RAM for the slot. This function does not copy theboardIDfield, which is Apple-defined.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for theSPutPRAMRecfunction 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
_SlotManagerreturns, 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