Dodana obravnava tezav.
This commit is contained in:
parent
3f39c6cb71
commit
618e4dd361
4 changed files with 79 additions and 63 deletions
|
|
@ -94,6 +94,17 @@ void Machine::setDevice(int num, Device* device) {
|
|||
}
|
||||
|
||||
|
||||
void Machine::notImplemented(string mnemonic) {
|
||||
throw std::runtime_error("Instruction: " + mnemonic + " is not yet implemented.");
|
||||
}
|
||||
|
||||
void Machine::invalidOpcode(int opcode) {
|
||||
throw std::runtime_error("Invalid opcode: " + to_string(opcode));
|
||||
}
|
||||
|
||||
void Machine::invalidAddressing() {
|
||||
throw std::runtime_error("Invalid addressing used.");
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue