|
| _pop_| Summary | |
#include <intrins.h>
void _pop_ (
unsigned char sfr); /* SFR to POP from the stack */
| | Description | | The _pop_ routine inserts a POP instruction into the program retrieving the contents of the Special Function Register sfr from the stack. This routine is implemented as an intrinsic function. The POP instruction is included inline. Note - The _push_ and _pop_ routines only work with Special Function Registers (SFRs) defined using the sfr keyword.
| | Return Value | | None. | | See Also | | _push_ | | Example | |
#include <intrins.h>
#include <REG52.H>
sfr XXX = 0xFF;
void main (void)
{
_push_(XXX);
XXX = 1;
XXX = 2;
XXX = 3;
_pop_(XXX);
while (1);
}
|
|
|