forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Variable Address

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support
View previous topic :: View next topic  
Author Message
desmith



Joined: 15 Aug 2006
Posts: 1

PostPosted: Tue Aug 15, 2006 9:54 am    Post subject: Variable Address Reply with quote

I am porting an old program and one feature that was used was a pointer function. This function returned the segment:offset of any variable passed to it.
I have not been able to find anything similar using the current FTN95 compiler.
Can anyone help point (no pun here) me in the right direction.

Thanks,
Ed
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7928
Location: Salford, UK

PostPosted: Tue Aug 15, 2006 12:59 pm    Post subject: Variable Address Reply with quote

Ed

You can use the Salford intrinsic LOC(var) to give the address of var. From this you can calculate the segment and offset.
Back to top
View user's profile Send private message AIM Address
Anonymous
Guest





PostPosted: Tue Aug 15, 2006 3:58 pm    Post subject: Variable Address Reply with quote

Paul,
Thanks. I was sure there was something but I was unable to find in the help files. Probably just read over it and not realized it.

I will give it a try.

Once again, thanks. Very Happy

Ed
Back to top
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group