paged memory with __far and __rptr

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

paged memory with __far and __rptr

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

Hello guys,

 

I am using a variable mapped to banked RAM:     char MyArray[5]

Now I am trying to create a pointer to this variable:  char  * __rptr  localArrPtr =  MyArray

 

Is this the right way ?

What is the difference between a __far pointer and a __rptr pointer ?

 

How do I call a function with that pointer ?

void editArray ( char index, char * __rptr ArrPtr)

 

Thanks for your help

Philipp

ラベル(1)
タグ(1)
0 件の賞賛
返信
1 解決策
1,244件の閲覧回数
CrasyCat
Specialist III

Hello

 

Attached application note from the {Install}\Help\PDF directory provides more details for the various type of pointers.

 

Basically rptr pointer are accessed using RPAGE register, whereas far pointer are accessed using GPAGE register.

 

CrasyCat

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
1,245件の閲覧回数
CrasyCat
Specialist III

Hello

 

Attached application note from the {Install}\Help\PDF directory provides more details for the various type of pointers.

 

Basically rptr pointer are accessed using RPAGE register, whereas far pointer are accessed using GPAGE register.

 

CrasyCat

0 件の賞賛
返信