POPALL

From MCS Wiki AVR
(Difference between revisions)
Jump to: navigation, search
(Created page with "= <span class="f_Header">Action</span> = Restores all registers that might be used by BASCOM. <span style="font-family: Arial;"> </span> <span style="font-family: Aria...")
 
 
Line 38: Line 38:
  
 
[[PUSHALL]]
 
[[PUSHALL]]
 +
 +
<br/><br/>{{Languages}}
 +
 +
[[Category:BASCOM Language Reference]]

Latest revision as of 23:09, 11 February 2013

Contents

Action

Restores all registers that might be used by BASCOM.

 

 

Syntax

POPALL

 

 

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 and POPALL restores all registers.

 

The SREG register is also saved/restored. 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/restored also. RAMPZ is used to address multiple pages in flash and SRAM memory.

 

 

 

See also

PUSHALL



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