恭喜,你发布的帖子
发布于 2023-02-26 15:57:47
3楼
if (GetTagByte("变量")&0x1)
{
SetTagByte("变量",GetTagByte("变量")&0xFE);给第0位复位,其他位不变
}
else
{
SetTagByte("变量",GetTagByte("变量")||0x1);给第0位置位,其他位不变
}
#define MASK(n) (1 << n ) // XOR mask
SetTagWord("变量",GetTagWord("变量") ^ MASK(m)); //第m位取反
请填写推广理由:
分享
只看
楼主