HC12XE: how to call _CONV_LOGICAL_TO_GLOBAL asm routine from c++ programming

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

HC12XE: how to call _CONV_LOGICAL_TO_GLOBAL asm routine from c++ programming

ソリューションへジャンプ
1,519件の閲覧回数
precisionman
Contributor I

hi,

I want to use _CONV_LOGICAL_TO_GLOBAL asm routine and call it from c++. How do I pass the PPAGE and local address and how to store global address from the routine to a variable?
Thx. Tim

ラベル(1)
0 件の賞賛
返信
1 解決策
1,312件の閲覧回数
kef
Specialist I

You don't need to call this routine directly. Compiler calls it when required. Try disassembling code below

int * nptr;            // near pointer to int
int * far fptr;        // global pointer to int
int * __rptr rptr;   // RPAGE pointer to int

void main(void) {
  /* put your own code here */
 

   fptr = nptr;               // _CONV_NEAR_TO_GLOBAL
   fptr = rptr;               // _CONV_LOGICAL_TO_GLOBAL

}

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
1,313件の閲覧回数
kef
Specialist I

You don't need to call this routine directly. Compiler calls it when required. Try disassembling code below

int * nptr;            // near pointer to int
int * far fptr;        // global pointer to int
int * __rptr rptr;   // RPAGE pointer to int

void main(void) {
  /* put your own code here */
 

   fptr = nptr;               // _CONV_NEAR_TO_GLOBAL
   fptr = rptr;               // _CONV_LOGICAL_TO_GLOBAL

}

0 件の賞賛
返信