mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2025-01-11 02:29:50 +00:00
Correct a couple of exception throws.
Signed-off-by: Adrian.Conlon <adrian.conlon@gmail.com>
This commit is contained in:
parent
3c0a1697fd
commit
3146867101
@ -77,7 +77,7 @@ void EightBit::MOS6502::___() {
|
||||
NOP_imp();
|
||||
cycles++;
|
||||
} else {
|
||||
throw new std::domain_error("Whoops: Invalid instruction.");
|
||||
throw std::domain_error("Whoops: Invalid instruction.");
|
||||
}
|
||||
}
|
||||
|
||||
@ -185,7 +185,7 @@ void EightBit::MOS6502::OverlayInstructionSet(const std::array<Instruction, 0x10
|
||||
if (includeIllegal || !illegal) {
|
||||
auto oldInstruction = instructions[i];
|
||||
if (oldInstruction.mode != AddressingMode::Illegal) {
|
||||
throw new std::domain_error("Whoops: replacing a non-missing instruction.");
|
||||
throw std::domain_error("Whoops: replacing a non-missing instruction.");
|
||||
}
|
||||
|
||||
instructions[i] = newInstruction;
|
||||
|
Loading…
x
Reference in New Issue
Block a user