|
| _push_| Summary | |
#include <intrins.h>
void _push_ (
unsigned char sfr); /* SFR to PUSH onto the stack */
| | Description | | The _push_ routine inserts a PUSH instruction into the program saving the contents of the Special Function Register sfr on the stack. This routine is implemented as an intrinsic function. The PUSH 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 | | _pop_ | | 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);
}
|
|
|