How to declare variable at specific ram position in VAR block
Christofer A
Posts: 9
Hi all,
I am looking for a way to declare variable at specific ram position, to be able to read and wright to variable without knowing its name. maybe using word[noparse][[/noparse]$1234] if 1234 is the ram position.
Or is there a way in spin to find out a variables ram position?
Any suggestions?
Thanks in advance.
Christofer
I am looking for a way to declare variable at specific ram position, to be able to read and wright to variable without knowing its name. maybe using word[noparse][[/noparse]$1234] if 1234 is the ram position.
Or is there a way in spin to find out a variables ram position?
Any suggestions?
Thanks in advance.
Christofer
Comments
Examples:
You MUST use either a word or a long to hold the address as it is 16 bit.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I am 1011, so be surprised!
Advertisement sponsored by dfletch:
Come and join us on the Propeller IRC channel for fast and easy help!
Channel: #propeller
Server: irc.freenode.net or freenode.net
If you don't want to bother installing an IRC client, use Mibbit. www.mibbit.com
Post Edited (tpw_man) : 5/14/2008 8:51:24 PM GMT
Also thanks for the quick reply [noparse]:)[/noparse]
//Christofer