Technical Support

C166: _PUSH_ INTRINSIC LIBRARY ROUTINE


Information in this article applies to:

  • C166 Version 4.06

QUESTION

Is there a way to PUSH variables onto the system stack in C?

ANSWER

Yes. The _push_ intrinsic library function inserts a PUSH instruction into the program which pushes a 16-bit value onto the system stack. For example:

#include <intrins.h>

void testpop (void)  {
  volatile unsigned temp;

  _push_ (temp);
  temp = _pop_ ();
}

MORE INFORMATION

  • Refer to _push_ in the C166 User's Guide.

SEE ALSO

Last Reviewed: Thursday, October 20, 2005


Did this article provide the answer you needed?
 
Yes
No
Not Sure