Miscellaneous

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 STDJMP.H  include file.

The _nop_ and _testbit_ routines are used to direct the compiler to generate a NOP instruction and a JBC instruction respectively. These routines are prototyped in the INTRINS.H  include file.