Implementing the XBA

This commit is contained in:
Anonymus Raccoon
2020-04-08 17:13:00 +02:00
parent d0455b46e2
commit 26ea447f24
3 changed files with 33 additions and 1 deletions
@@ -398,4 +398,14 @@ namespace ComSquare::CPU
}
return cycles;
}
int CPU::XBA(uint24_t, AddressingMode)
{
int tmp = this->_registers.ah;
this->_registers.ah = this->_registers.al;
this->_registers.al = tmp;
this->_registers.p.n = this->_registers.al & 0x80u;
this->_registers.p.z = this->_registers.al == 0;
return 0;
}
}