How to alias word variables
phil kenny
Posts: 233
I'm familiar with using the alias feature of the Stamp Editor to
reuse variable names on a byte basis. What I'd like to know is
if this can be extended to word variables.
For instance, if I declare a 10 byte array as
Buffer VAR BYTE(10)
How can I use an alias for the first two bytes which will be a word
variable?
Temp Word Buffer(0)
where Temp is a two byte variable referring to Buffer(0) and Buffer(1).
The Help file only seems to discuss aliasing on a byte, or less, basis.
phil
reuse variable names on a byte basis. What I'd like to know is
if this can be extended to word variables.
For instance, if I declare a 10 byte array as
Buffer VAR BYTE(10)
How can I use an alias for the first two bytes which will be a word
variable?
Temp Word Buffer(0)
where Temp is a two byte variable referring to Buffer(0) and Buffer(1).
The Help file only seems to discuss aliasing on a byte, or less, basis.
phil
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
When the going gets weird, the weird turn pro. -- HST
Post Edited (Zoot) : 12/24/2007 8:17:12 PM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
When the going gets weird, the weird turn pro. -- HST
Thanks.
Both of your answers helped greatly to clarify this aliasing usage.
I wish that the Stamp Help file had included some extended
discussion along these lines.
phil
parallax.com/Portals/0/Downloads/docs/prod/stamps/web-BSM-v2.2.pdf
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
When the going gets weird, the weird turn pro. -- HST