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