Access Bytes of Long Array
JCee
Posts: 36
I am trying declare bytes of long arrays and I cant get it to work
Var
·Long Point[noparse][[/noparse]10]
·Point[noparse][[/noparse]0].byte[noparse][[/noparse]0]:= 10
·Point[noparse][[/noparse]0].byte[noparse][[/noparse]1]:= 20
·Point[noparse][[/noparse]0].byte[noparse][[/noparse]2]:= 30
·Point[noparse][[/noparse]1].byte[noparse][[/noparse]0]:= 10
·Point[noparse][[/noparse]1].byte[noparse][[/noparse]1]:= 20
·Point[noparse][[/noparse]1].byte[noparse][[/noparse]2]:= 30
I would like to be able to loop thru an array of points and set values of specific bytes.
Do·I have a syntax problem or is there a better way to do it. ·
Var
·Long Point[noparse][[/noparse]10]
·Point[noparse][[/noparse]0].byte[noparse][[/noparse]0]:= 10
·Point[noparse][[/noparse]0].byte[noparse][[/noparse]1]:= 20
·Point[noparse][[/noparse]0].byte[noparse][[/noparse]2]:= 30
·Point[noparse][[/noparse]1].byte[noparse][[/noparse]0]:= 10
·Point[noparse][[/noparse]1].byte[noparse][[/noparse]1]:= 20
·Point[noparse][[/noparse]1].byte[noparse][[/noparse]2]:= 30
I would like to be able to loop thru an array of points and set values of specific bytes.
Do·I have a syntax problem or is there a better way to do it. ·
Comments
-Phil
if you don't want to do the address calculation explicitly.
-Phil
the loops run as expected
Propeller manual page 99.