Merge pull request #1610 from npwoods/fix_6x09dasm_bug

Fixed a recently introduced bug in the 6x09 disassembler
This commit is contained in:
R. Belmont 2016-10-30 14:37:29 -04:00 committed by GitHub
commit ef5d2a5508

View File

@ -167,6 +167,11 @@ const opcodeinfo *m6x09_disassembler_base::fetch_opcode(const uint8_t *oprom, in
break;
}
};
// is this an HD6309 exclusive instruction, and we're not HD6309? if so, reject it
if (op && (op->level() > m_level))
op = nullptr;
return op;
}