Important: The information in this document is obsolete and should not be used for new development.
SPtrToSlot
This function is used only by the Macintosh Operating System.
FUNCTION SPtrToSlot (spBlkPtr: SpBlockPtr): OSErr;
- spBlkPtr
- A pointer to a Slot Manager parameter block.
--> spsPointer
Ptr
A pointer to a byte in declaration ROM. <-- spSlot
SignedByte
The slot number. DESCRIPTION
TheSPtrToSlot
function returns the slot number of the card whose declaration ROM is pointed to byspsPointer
. The value ofspsPointer
must have the form $Fsxx xxxx, where s is a slot number and x is a hexadecimal number.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for theSPtrToSlot
function are
Trap macro Selector _SlotManager $002E On entry, register D0 contains the routine selector and register A0 contains 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 $002E
Registers on exit D0 Result code RESULT CODES
noErr 0 No error smUnExBusErr
-308 A bus error occurred smBadsPtrErr
-346 Bad spsPointer
value