$NORAMPZ

From MCS Wiki AVR
(Difference between revisions)
Jump to: navigation, search
(Created page with "= <span class="f_Header">Action</span> = This compiler directive disables RAMPZ clearing. <span style="font-family: Arial;"> </span> <span style="font-family: Arial;">...")
 
 
(One intermediate revision by one user not shown)
Line 33: Line 33:
 
<span style="font-family: Arial;">&nbsp;</span>
 
<span style="font-family: Arial;">&nbsp;</span>
  
<span class="f_Header">See also</span>
+
= <span class="f_Header">See also</span> =
  
 
<span style="font-family: Arial;">NONE</span>
 
<span style="font-family: Arial;">NONE</span>
Line 41: Line 41:
 
<span style="font-family: Arial;">&nbsp;</span>
 
<span style="font-family: Arial;">&nbsp;</span>
  
<span class="f_Header">Example</span>
+
= <span class="f_Header">Example</span> =
  
 
<span style="font-family: Arial;">NONE</span>
 
<span style="font-family: Arial;">NONE</span>
  
<span style="font-family: Arial;"></span>
 
  
<span style="font-family: Arial;">{{Languages}}</span>
 
  
[[Category:BASCOM_Language_Reference]]
+
{{Languages}}
 +
 
 +
[[Category:BASCOM Language Reference]]

Latest revision as of 23:02, 6 February 2013

Contents

Action

This compiler directive disables RAMPZ clearing.

 

 

Syntax

$NORAMPZ

 

 

Remarks

Processors with more then 64 KB of memory need to set the RAMPZ register in order to point to the proper 64 KB page.

If the RAMPZ register is used, it will be cleared when it is used for something different then accessing the flash.

BASCOM uses the Z register to access flash memory or RAM memory. Since processors with external memory capability can access more then 64KB of RAM, the RAMPZ must be set/cleared when accessing this memory.

Otherwise accessing the flash code could result in a change of RAMPZ, and after this, accessing the RAM would not point to the proper place in memory.

But setting this register requires extra code. When your application just fitted into a M128 or M256 and you do not want this RAMPZ handling because your application works fine, then you can use this $NORAMPZ directive.

To see if your processor

 

 

See also

NONE

 

 

Example

NONE


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