Forum: Programmieren allgemein
by Zacherl,
4. Dez 2008
Instruction.SIB_Scale := (Instruction.SIB and 192);
Instruction.SIB_Index := (Instruction.SIB and 56);
Instruction.SIB_Base := (Instruction.SIB and 7);
Jetzt kommt bei den oberen Bytes auch noch Schrott raus :(
Forum: Programmieren allgemein
by Zacherl,
4. Dez 2008
@3_of_8: Ja tritt nur beim 2. Byte auf. Ist aber als Byte deklariert.
@Cyf: Ich probier das jetzt mal alles mit and zu lösen ..
Forum: Programmieren allgemein
by Zacherl,
4. Dez 2008
Hey,
ich wusste nicht wie genau ich den Titel formulieren sollte. Ich habe ein bestimmtes Byte, z.b. $AC. Nun möchte ich daraus 3 Bytes machen und zwar soll im Byte1 nut das 7. und 6. Bit aus dem AC Byte verwendet werden, in Byte 2 das 5. 4. und 3. und so weiter.
Mein Ansatz war:
b1 := (b shr 6);
b2 := (b shl 2) shr 5;
b3 := (b and 7);
Da treten aber Werte wie z.b. 26...