05.10.2013, 20:12
Hello everyone i want to ask if someone knows simpler way to replace a value of a nibbles ( 4 Bit-Block).
I think that there is a easier way but i don`t know how, thats the problem and even that i don`t know for what i have to search to get an example or something that looks similarly maybe one of you know a other way.
Firstly i thought that i can use #emit to do that but a look into the pawn Implementer guide broke down this idea because i have not the possiblity to use every Bit-Operator only Bit-Shift right or left.
My Macro:
I think that there is a easier way but i don`t know how, thats the problem and even that i don`t know for what i have to search to get an example or something that looks similarly maybe one of you know a other way.
Firstly i thought that i can use #emit to do that but a look into the pawn Implementer guide broke down this idea because i have not the possiblity to use every Bit-Operator only Bit-Shift right or left.
My Macro:
PHP код:
#define SetSecoundArrayMarker(%0) ArrayMarker[%0] |= (((ArrayMarker[%0] >>> 4)+1) << 8),ArrayMarker[%0] &= ~(0xF<< 4),ArrayMarker[%0] |= ((ArrayMarker[%0] >>> 8)<< 4),ArrayMarker[%0] &= ~(0xF<< 8)