Dodana obravnava tezav.

This commit is contained in:
aljazbrodar. 2025-11-27 14:53:37 +01:00
parent 3f39c6cb71
commit 618e4dd361
4 changed files with 79 additions and 63 deletions

View file

@ -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.");
}