Hi everybody.
I got some problems about how to perform this task
Now, I got an FB where I have this code snippet that looks like:
L P##DBD_134
LAR 1
A [AR1, P#0.7]
= DIX 59.0
//where DBD_134 is a FB's STAT variable with absolute value 62.0
So basically it takes the 62.7 bit's value and store it in 59.0, which is a bit of the double word 56.
As you can imagine, this solution is not optimal because absolute adresses would change if I modify my FB's variables, and the instruction DIX59.0 would not be effective anymore.
How can I modify my code using pointer in order to the first bit of the third byte of the doubleword 56 (59.0)??
I got some problems about how to perform this task
Now, I got an FB where I have this code snippet that looks like:
L P##DBD_134
LAR 1
A [AR1, P#0.7]
= DIX 59.0
//where DBD_134 is a FB's STAT variable with absolute value 62.0
So basically it takes the 62.7 bit's value and store it in 59.0, which is a bit of the double word 56.
As you can imagine, this solution is not optimal because absolute adresses would change if I modify my FB's variables, and the instruction DIX59.0 would not be effective anymore.
How can I modify my code using pointer in order to the first bit of the third byte of the doubleword 56 (59.0)??