Einzelnen Beitrag anzeigen

Dax
(Gast)

n/a Beiträge
 
#9

Re: LowByte und Highbyte beschreiben

  Alt 17. Jan 2008, 09: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;
  Mit Zitat antworten Zitat