Hi
I have a DB with 512 config bits that i wish to get the inverse of into another DB (ie if bit 1=1 in DB14 then i wish bit 1=0 in DB13)
I am thinking of clearing DB2 then XORing DB1 with 7FFF.
L 0;
T DB13.DBW 0;
L DB14.DBW 0;
L W#16#7FFF;
OW ;
T DB13.DBW 0;
obviously i would need a list of 32 of these.
Is 1FFF the same as all 16 bits in S7?
Is there an easier way? I need to review the use of pointers next
Cheers
I have a DB with 512 config bits that i wish to get the inverse of into another DB (ie if bit 1=1 in DB14 then i wish bit 1=0 in DB13)
I am thinking of clearing DB2 then XORing DB1 with 7FFF.
L 0;
T DB13.DBW 0;
L DB14.DBW 0;
L W#16#7FFF;
OW ;
T DB13.DBW 0;
obviously i would need a list of 32 of these.
Is 1FFF the same as all 16 bits in S7?
Is there an easier way? I need to review the use of pointers next
Cheers