GetWordBit & MakeDWORD
时间:2021-07-01 10:21:17
帮助过:12人阅读
WORD GetWordBit(WORD word,
int bit)
{
WORD w =
0;
WORD and =
1;
if((bit<
0)||(bit>
15))
return 0;
w =
word;
and = and <<
bit;
w = (w &
and);
w = w >>
bit;
return w;
}
static DWORD MakeDWORD(WORD wLowWord, WORD wHighWord)
{
DWORD dw;
dw =
wHighWord;
dw = (dw <<
16);
dw +=
wLowWord;
return dw;
}
GetWordBit & MakeDWORD
标签:span dbi stat style word rdb get ret nbsp