Hello all,
Recently I came across a very interesting block of logic that used an AND instruction in a pointer to dynamically reference different bits in an array of Integers.
It accomplished this by comparing a DINT to a static value (not a tag).
EX: Array[(Pointer AND 8)]
I was just wondering if anyone else has come across something similar and knows how to do it?
I have tried replicating it with another array in a different program with no success.
Any advice would be great!
Thank you,
Recently I came across a very interesting block of logic that used an AND instruction in a pointer to dynamically reference different bits in an array of Integers.
It accomplished this by comparing a DINT to a static value (not a tag).
EX: Array[(Pointer AND 8)]
I was just wondering if anyone else has come across something similar and knows how to do it?
I have tried replicating it with another array in a different program with no success.
Any advice would be great!
Thank you,