Starting the jump

This commit is contained in:
AnonymusRaccoon
2020-02-28 20:25:34 +01:00
parent d1561f1be3
commit c15ec0a9cb
6 changed files with 64 additions and 6 deletions

View File

@@ -370,6 +370,13 @@ namespace ComSquare::CPU
case Instructions::BRA: this->BRA(this->_registers.pc++); return 3 + this->_isEmulationMode;
case Instructions::BRL: this->BRL(this->_registers.pc); this->_registers.pc += 2; return 4;
case Instructions::JMP_ABS: this->JMP(this->_getAbsoluteAddr()); return 3;
case Instructions::JMP_ABSi: this->JMP(this->_getAbsoluteIndirectAddr()); return 3;
case Instructions::JMP_ABSXi: this->JMP(this->_getAbsoluteIndexedByXAddr()); return 3;
case Instructions::JML_ABSl: this->JML(this->_getAbsoluteLongAddr()); return 3;
//case Instructions::JML_ABSil: this->JML(this->_getAbsoluteLong()); return 3;
default:
throw InvalidOpcode("CPU", opcode);
}