Hardware Implementation
The SHARC DSP supports a DO..UNTIL
instruction, intended for do..while loops, that is essentially a COMEFROM
. Example:
Note that the loop termination condition, here specified as LCE
(loop counter expired), can be set to other values including always-true and always-false. With an always-true condition, we have a genuine COMEFROM
. The hardware supports up to six simultaneously active COMEFROM
s.
A similar feature exists in Microchip dsPIC's for (unnested) loops provided by the 'DO' assembly instruction. Its interruptible and trivial nesting goes up to one level with an additional 5 levels in software.
Read more about this topic: COMEFROM
Famous quotes containing the word hardware:
“A friend of mine spoke of books that are dedicated like this: To my wife, by whose helpful criticism ... and so on. He said the dedication should really read: To my wife. If it had not been for her continual criticism and persistent nagging doubt as to my ability, this book would have appeared in Harpers instead of The Hardware Age.”
—Brenda Ueland (18911985)