AnsweredAssumed Answered

How to force the compiler to use LOGICAL PAGE address instead of GLOBAL address. Target - S12XEP100

Question asked by Sandeep Parvatikar on Dec 8, 2010
Latest reply on Dec 8, 2010 by kef

Hi,

 

 I want to know, how to force the compiler (MetroWerks) to use LOGICAL PAGE address and not the GLOBAL address.

 

Eg:

const uint32 Buffer;

 

function

{

     unit32 * __far BufferAddress; /* RAM variable */

 

     BufferAddress = &Buffer;

}

 

The variable is taking the global address of the constant "Buffer". I want the RAM variable "BufferAddress" to take the logical PAGE address of the constant.

 

How to force the compiler to use the logical PAGE address?

 

I am using S12XEP100 target.

 

Thanks in advance!

Outcomes