Hi,
I’m trying to use a mask to clear some bits in a 64 bit integer (iMmiExch) with this snippet in a script block
[B] iMmiExch=iMmiExch bitand 0X7FFFFC73FFFFFFFF;[/B] //Clear all Sp StartStop Err Flags (bits 34,35,39,40,41)
iMmiExch remains unchanged after this step, regardless of the state of bits 34,35,39,40,41
This method works -
[B] iMmiExch=BitClear(iMmiExch, 34); [/B] // Clear the StartStop error state
[B]iMmiExch=BitClear(iMmiExch, 35); [/B] // Clear the prompt
[B]iMmiExch=BitClear(iMmiExch, 39);[/B] // Clear the StartStop error state
[B] iMmiExch=BitClear(iMmiExch, 40); [/B] // Clear the StartStop error state
[B] iMmiExch=BitClear(iMmiExch, 41); [/B] // Clear the StartStop error state
But it leaves me feeling like Mr Jones.
Any light you could shed would be appreciated.
Cheers,
Sam Grover