I have found that the problem is the endianness of Values. For example a 1 it's stored as 00000001 00000000 00000000 0000000 instead of 0000000 00000000 0000000 00000000 so how can I change how the values are stored and/or load (because I suppose that the problem is when I store it or load from memory) Thanks, Santos Merino.