A simplify of my Macro to replace a value of a nibble
#1

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:

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) 
Reply
#2

delete
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)