dota传奇lua源码逆向核心算法,有了它,可以得到整个dota传奇游戏lua源码!!!
const static int dectab[]={
0x0C, 0x01, 0x06, 0x01, 0x0C, 0x17, 0x14, 0x15, 0x0B, 0x21, 0x13, 0x19, 0x0D, 0x05, 0x00, 0x1F,
0x0E, 0x1A, 0x04, 0x03, 0x24, 0x25, 0x12, 0x1B, 0x05, 0x07, 0x00, 0x1C, 0x1E, 0x07, 0x25, 0x0B,
0x16, 0x1D, 0x16, 0x23, 0x11, 0x02, 0x22, 0x0D, 0x02, 0x18, 0x1A, 0x0F, 0x17, 0x13, 0x12, 0x20,
0x1F, 0x1E, 0x04, 0x18, 0x08, 0x22, 0x09, 0x20, 0x1C, 0x24, 0x1D, 0x23, 0x19, 0x06, 0x10, 0x0A,
};
int GET_OPCODE(Instruction i){
i=dectab[i%0x40]|(i&0xc0);
return (cast(OpCode, ((i)>>POS_OP) & MASK1(SIZE_OP,0)));
}