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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

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

跳至解决方案
927 次查看
sep2kor
Contributor III

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!

标签 (1)
标记 (1)
0 项奖励
回复
1 解答
545 次查看
kef
Specialist I

     unit32 * __rptr BufferAddress;

 

See  <CW root>\Help\PDF\Compiler_HC12.pdf . These pdf's and release notes are always more fresh and full than online help.

 

在原帖中查看解决方案

0 项奖励
回复
1 回复
546 次查看
kef
Specialist I

     unit32 * __rptr BufferAddress;

 

See  <CW root>\Help\PDF\Compiler_HC12.pdf . These pdf's and release notes are always more fresh and full than online help.

 

0 项奖励
回复