(Gast)
n/a Beiträge
|
Re: LowByte und Highbyte beschreiben
17. Jan 2008, 10:23
Delphi-Quellcode:
procedure SetLowByte(var sInt: SmallInt; const b: Byte);
begin
sInt := (sInt and $FF00) or b;
end;
procedure SetHighByte(var sInt: SmallInt; const b: Byte);
begin
sInt := (sInt and $FF) or (b shl 8);
end;
|
|
Zitat
|