PUSHALL/de
From MCS Wiki AVR
Contents |
= (**COPIED FROM ENGLISH PAGE**) === Action
Saves all registers that might be used by BASCOM.
Syntax
PUSHALL
Remarks
When you are writing your own ASM routines and mix them with BASIC you are unable to tell which registers are used by BASCOM because it depends on the used statements and interrupt routines that can run on the background.
That is why Pushall saves all used registers. Use POPALL to restore the registers.
The saved registers are : R0-R5, R7,R10,R11 and R16-R31
The SREG register is also saved. The SREG register contains the processor flags and it is important to save these.
If the micro has a RAMPZ register, the RAMPZ register is saved too. RAMPZ is used to address multiple pages in flash and SRAM memory.
See also
Languages | English • Deutsch |
---|