type
TPosRange=0..32;
TStateResult=0..1;
(本文来源于图老师网站,更多请访问http://m.tulaoshi.com/bianchengyuyan/)function GetBitSate(Source:Integer;Pos:TPosRange):TStateResult;
(本文来源于图老师网站,更多请访问http://m.tulaoshi.com/bianchengyuyan/)begin
Result:=((Source and (1 shl Pos))shr Pos);
end;


