Pointers in SF

Coding and general discussion relating to the compiler

Moderators: David Barker, Jerry Messina

Post Reply
TonyR
Posts: 75
Joined: Fri Jan 14, 2011 11:49 pm
Location: Sydney
Contact:

Pointers in SF

Post by TonyR » Thu May 28, 2015 2:28 am

I've seen in various SF programs and libraries the use of what I think are pointers. Variables prefixed by a small p.

For example pThevariable is a pointer.

I need to use pointers to update some graphics displays and cant find anywhere any documentation on pointers in SF.

Where to look or if I am misunderstanding something advice much appreciated!

User avatar
octal
Registered User
Registered User
Posts: 586
Joined: Thu Jan 11, 2007 12:49 pm
Location: Paris IDF
Contact:

Re: Pointers in SF

Post by octal » Thu May 28, 2015 8:22 am

Hello,
there are no pointers in SF. "p" stands for "Parameter" I guess.
You can instead do indirect addressing using AddressOf( ) and using TABLEPTR for ROM and FSRx for RAM.

TonyR
Posts: 75
Joined: Fri Jan 14, 2011 11:49 pm
Location: Sydney
Contact:

Re: Pointers in SF

Post by TonyR » Sat May 30, 2015 1:50 am

Thanks Octal

Post Reply