How to get VAR block starting address for and object.
Kye
Posts: 2,200
So, I'm writing a SPIN object and like would like to be able to longfill the VAR section of the object really easily.
Right now I'm just using the address of the first element in the VAR block and longfilling from that. But I would rather have some address that references the whole VAR image instead...
Any easy way of doing this? I know what the size of the array is and that will remain constant.
Right now I'm just using the address of the first element in the VAR block and longfilling from that. But I would rather have some address that references the whole VAR image instead...
Any easy way of doing this? I know what the size of the array is and that will remain constant.
Comments
Your first long variable is at the first address you'd clear. Your last byte variable is at the last address you'd clear.
-Phil
Here's an example:
-Phil
Thanks both of you!