Implemnting the STP

This commit is contained in:
Anonymus Raccoon
2020-05-13 19:14:53 +02:00
parent 051d1d7596
commit 7fe28a8bcc
4 changed files with 14 additions and 1 deletions
@@ -320,4 +320,10 @@ namespace ComSquare::CPU
this->_registers.dbr = this->_pop();
return 0;
}
int CPU::STP(uint24_t, AddressingMode)
{
this->_isStopped = true;
return 0;
}
}
+1
View File
@@ -18,6 +18,7 @@ namespace ComSquare::CPU
this->_registers.d = 0x0000;
this->_registers.sh = 0x01; // the low bit of the stack pointer is undefined on reset.
this->_registers.pc = this->_cartridgeHeader.emulationInterrupts.reset;
this->_isStopped = false;
return 0;
}