mirror of
https://github.com/zoriya/ComSquare.git
synced 2025-12-20 14:15:11 +00:00
Adding the RTI
This commit is contained in:
@@ -35,4 +35,16 @@ namespace ComSquare::CPU
|
||||
this->_registers.p.d = false;
|
||||
return !this->_isEmulationMode;
|
||||
}
|
||||
|
||||
unsigned CPU::RTI()
|
||||
{
|
||||
this->_registers.p.flags = this->pop();
|
||||
this->_registers.pc = this->pop16();
|
||||
|
||||
if (!this->_isEmulationMode) {
|
||||
this->_registers.pbr = this->pop16();
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user