Miscellaneous Routines
| Routine | Attributes | Description |
|---|
| setjmp | reentrant | Saves the current stack condition and program address. |
| longjmp | reentrant | Restores the stack condition and program address. |
| _nop_ | intrinsic, reentrant | Inserts an 8051 NOP instruction. |
| _testbit_ | intrinsic, reentrant | Tests the value of a bit and clears it to 0. |
Routines found in the miscellaneous category do not fit easily into any other library routine category. The setjmp and longjmp routines are implemented as functions and are prototyped in the setjmp.h include file.
The _nop_ and _testbit_ routines direct the compiler to generate NOP and JBC instructions respectively. These routines are prototyped in the intrins.h include file.