mirror of
https://github.com/zoriya/ComSquare.git
synced 2026-06-03 02:23:49 +00:00
Implemnting the STP
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user