Important: The information in this document is obsolete and should not be used for new development.
scLoop
You can use thescLoop
TIB instruction to repeat a sequence of TIB instructions a specified number of times.
--> scParam1
LongInt
The relative offset of the TIB instruction to branch to. --> scParam2
LongInt
The number of times to loop. DESCRIPTION
ThescLoop
TIB instruction decrements the value inscParam2
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 inscParam1
. If the result is 0, control passes to the instruction following thescLoop
instruction. The offset inscParam1
is a signed value, and must be a multiple of 10 bytes (the size of theSCSIInstr
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.