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 3 - SCSI Manager / SCSI Manager Reference
SCSI Manager TIB Instructions /


scLoop

You can use the scLoop TIB instruction to repeat a sequence of TIB instructions a specified number of times.

-->scParam1LongIntThe relative offset of the TIB instruction to branch to.
-->scParam2LongIntThe number of times to loop.

DESCRIPTION
The scLoop TIB instruction decrements the value in scParam2 by 1. If the result is greater than 0, the flow of control branches to the TIB instruction whose relative offset is the current instruction plus the value in scParam1. If the result is 0, control passes to the instruction following the scLoop instruction. The offset in scParam1 is a signed value, and must be a multiple of 10 bytes (the size of the SCSIInstr data type). For example, to branch to the instruction immediately preceding the current one, you would specify a relative offset of -10. To jump ahead three instructions, you would specify a relative offset of 30.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
3 JUL 1996