Solving tests

This commit is contained in:
Anonymus Raccoon
2020-03-25 18:19:58 +01:00
parent 2dbc661028
commit 4d8854cfd6
4 changed files with 123 additions and 68 deletions
+3 -1
View File
@@ -411,7 +411,9 @@ namespace ComSquare::CPU
uint16_t CPU::_pop16()
{
return this->_bus->read(++this->_registers.s) + (this->_bus->read(++this->_registers.s) << 8u);
uint16_t value = this->_bus->read(++this->_registers.s);
value +=this->_bus->read(++this->_registers.s) << 8u;
return value;
}
std::string CPU::getName()