move decode table and funcs to emul