Einzelnen Beitrag anzeigen

Benutzerbild von 3_of_8
3_of_8

Registriert seit: 22. Mär 2005
Ort: Dingolfing
4.129 Beiträge
 
Turbo Delphi für Win32
 
#7

Re: 7, 6 - 5, 4, 3 und 0, 1, 2 Bit für neues Byte verwenden

  Alt 4. Dez 2008, 22:00
Warum nicht einfach so:

Delphi-Quellcode:
Instruction.SIB_Scale := (Instruction.SIB shr 6) and $03;
Instruction.SIB_Index := (Instruction.SIB shr 3) and $07;
Instruction.SIB_Base := Instruction.SIB and $07;
Sollte auf jeden Fall funktionieren und ist auch etwas einfacher lesbar, denke ich.
Manuel Eberl
„The trouble with having an open mind, of course, is that people will insist on coming along and trying to put things in it.“
- Terry Pratchett
  Mit Zitat antworten Zitat