I already find out that slot 3 have is only the charID changing from 32bits to 16 bits plus one bit operation that o couldnt figure out
and the slot 4 have the same charID but i need to shift to left and again do some bit operation
my data until now is limited to 3 potters and 3 codes, asap i will get more
char id data3 data4
1673165 32765 167
1269149 15633 224
1395498 37898 172
the script that i am using to try to figure out the bit operation is
Code: Select all
//test.c
#include <stdio.h>
#include <stdlib.h>
typedef unsigned short uint16;
typedef unsigned int uint32;
void GetWord(uint32 val);
main (){
uint32 charid;
GetWord(1673165);
GetWord(1269149);
GetWord(1395498);
system("pause");
return 0;
}
void GetWord(uint32 val){
printf("%d\n",(uint16)(val & 0x000FFFFF));//here should be the card3 id
printf("%d\n",(uint16)( (val & 0xFFFF0000) >> 0x10 ));//here should be the card4 id
}