* disassembly string - on error will constain error string
*/
static int Disassemble(const uint16 *data, char **dis,
- TABLE_ENTRY_TYPE & type, const Pool *table,
+ TABLE_ENTRY_TYPE *type, const Pool *table,
int table_size, Dis_info *info)
{
for (int i = 0; i < table_size; i++) {
"disassembler failure - bad table entry");
return -6;
}
- type = table[i].type;
+ *type = table[i].type;
*dis = dis_fn(op_code, info);
return table[i].instructions_size;
} else {
uint16 bits[3] = {one, two, three};
TABLE_ENTRY_TYPE type;
- int size = Disassemble(bits, buf, type, MAJOR, 2, info);
+ int size = Disassemble(bits, buf, &type, MAJOR, 2, info);
return size;
}