paged memory with __far and __rptr

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

paged memory with __far and __rptr

Jump to solution
938 Views
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

Labels (1)
Tags (1)
0 Kudos
1 Solution
410 Views
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

View solution in original post

0 Kudos
1 Reply
411 Views
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 Kudos