Hi,
I know there already are a lot of threads about using pointer, but I can't find
the solution to my problem in any of them.
I'm trying to set a bit in a word using a pointer. The word is variable, so I made a pointer. The bit I want to set has an offset to the first bit in that word of 1.0. I tried this code:
L P##VARIABLE_WORD
LAR1
L W [AR1,P#0.0]
T #DBNR
OPN DB [#DBNR]
A #CONDITION
S DBX [AR1,P#1.0]
This doesn't work. I tried some other things, but nothing seems to work.
Please help!
I know there already are a lot of threads about using pointer, but I can't find
the solution to my problem in any of them.
I'm trying to set a bit in a word using a pointer. The word is variable, so I made a pointer. The bit I want to set has an offset to the first bit in that word of 1.0. I tried this code:
L P##VARIABLE_WORD
LAR1
L W [AR1,P#0.0]
T #DBNR
OPN DB [#DBNR]
A #CONDITION
S DBX [AR1,P#1.0]
This doesn't work. I tried some other things, but nothing seems to work.
Please help!