mirror of
https://github.com/zoriya/ComSquare.git
synced 2026-06-06 19:32:18 +00:00
Implementing the RTS/RTL
This commit is contained in:
@@ -352,4 +352,17 @@ namespace ComSquare::CPU
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
int CPU::RTS(uint24_t, AddressingMode)
|
||||
{
|
||||
this->_registers.pc = this->_pop16() + 1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
int CPU::RTL(uint24_t, AddressingMode)
|
||||
{
|
||||
this->_registers.pc = this->_pop16() + 1;
|
||||
this->_registers.dbr = this->_pop();
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user