PUSHALL/de

From MCS Wiki AVR
< PUSHALL
Revision as of 20:15, 15 February 2013 by Admin (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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

POPALL


Languages   English Deutsch  
Personal tools
Namespaces
Variants
Actions
Navigation
In other languages
Language