worst_case
Level-2
- Beiträge
- 10
- Reaktionspunkte
- 3
-> Hier kostenlos registrieren
Hallo,
ich habe ein DWORD das einen Wert (%W0) und Steuerbits (%W1)
beinhaltet.
status struct
bool_1 bool
bool_2 bool
bool_.. bool
bool_16 bool
wert word
Wie kann ich nun mit slice das %W1 auf eine Structur mit anderem Format/Datentyp kopieren,
bzw. geht das überhaupt ?
#status.wert := #value.%W0;
#status.??? := #value.%W1;
Alle bits einzeln ??? ... ist aber nicht schön
Vielen Dank !!
ich habe ein DWORD das einen Wert (%W0) und Steuerbits (%W1)
beinhaltet.
status struct
bool_1 bool
bool_2 bool
bool_.. bool
bool_16 bool
wert word
Wie kann ich nun mit slice das %W1 auf eine Structur mit anderem Format/Datentyp kopieren,
bzw. geht das überhaupt ?
#status.wert := #value.%W0;
#status.??? := #value.%W1;
Alle bits einzeln ??? ... ist aber nicht schön
Vielen Dank !!