paged memory with __far and __rptr

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

paged memory with __far and __rptr

跳至解决方案
1,438 次查看
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 解答
910 次查看
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 回复
911 次查看
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 项奖励
回复