Einzelnen Beitrag anzeigen

Blup

Registriert seit: 7. Aug 2008
Ort: Brandenburg
1.429 Beiträge
 
Delphi 10.4 Sydney
 
#32

AW: Datentypen von String zu Byte und wieder zurück

  Alt 3. Mai 2017, 15:12
So kann es funktionieren und ist übersichtlich:
Delphi-Quellcode:
 for i := 31 downto 0 do
 begin
   Result := Result shl 1;
   Result := Result or ((B shr i) and $1);
   Result := Result shl 1;
   Result := Result or ((A shr i) and $1);
 end;
  Mit Zitat antworten Zitat