Specifications
System Macros Invoked by Drivers
TIMEDWAIT
TIMEDWAIT
Waits a specified interval of time for an event or condition to occur.
Format
TIMEDWAIT time [,ins1] [,ins2] [,ins3] [,ins4] [,ins5] [,ins6] [,donelbl] [,imbedlbl]
[,ublbl]
Parameters
time
Number of 10-microsecond intervals to wait. The operating system multiplies this
value by a processor-specific value in order to calculate the interval to wait. The
processor-specific value is inversely proportional to the speed of the processor, but
is never less than 1.
If you do not specify any embedded instructions, increase the value of time by 25
percent.
If you specify embedded instructions that take longer to execute than the
average, such as the POLYD instruction, they will cause TIMEDWAIT to wait
proportionally longer.
[ins1]
First instruction in the loop.
[ins2]
Second instruction in the loop.
[ins3]
Third instruction in the loop.
[ins4]
Fourth instruction in the loop.
[ins5]
Fifth instruction in the loop.
[ins6]
Sixth instruction in the loop.
[donelbl]
Label placed after the instruction at the end of the TIMEDWAIT loop; embedded
instructions can pass control to this label in order to pass control to the
instruction following the invocation of the TIMEDWAIT macro.
[imbedlbl]
Label placed at the first of the embedded instructions; after executing a processor-
specific delay, the TIMEDWAIT macro passes control here to retest for the
condition.
2–98