mirror of
https://github.com/zoriya/ComSquare.git
synced 2026-06-01 09:45:25 +00:00
Fixing the PHA
This commit is contained in:
@@ -82,7 +82,10 @@ namespace ComSquare::CPU
|
||||
|
||||
int CPU::PHA(uint24_t, AddressingMode)
|
||||
{
|
||||
this->_push(this->_registers.a);
|
||||
if (this->_registers.p.m)
|
||||
this->_push(this->_registers.al);
|
||||
else
|
||||
this->_push(this->_registers.a);
|
||||
return !this->_registers.p.m;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user