08.01.2011, 16:44
Hey, i want to trasform this binary number 1010 in 4 numbers 1, 0, 1, 0. Can i do this

#define GetBit(%0,%1) ((%0>>%1)&1) // GetBit(var,slot 0-31)
new bin = 0b01001010;
new nums[8];
for(new i=0;i<sizeof(nums);i++)
nums[i] = GetBit(bin,i);