Testing DEX & DEY

This commit is contained in:
Anonymus Raccoon
2020-04-03 15:24:47 +02:00
parent 9f8ae6cb08
commit 8e7d28dc4d
3 changed files with 122 additions and 3 deletions
@@ -93,7 +93,7 @@ namespace ComSquare::CPU
int CPU::DEX(uint24_t, AddressingMode)
{
unsigned negativeMask = this->_registers.p.x_b ? UINT8_MAX : UINT16_MAX;
unsigned negativeMask = this->_registers.p.x_b ? 0x80 : 0x8000;
this->_registers.x--;
if (this->_registers.p.x_b)
@@ -105,7 +105,7 @@ namespace ComSquare::CPU
int CPU::DEY(uint24_t, AddressingMode)
{
unsigned negativeMask = this->_registers.p.x_b ? UINT8_MAX : UINT16_MAX;
unsigned negativeMask = this->_registers.p.x_b ? 0x80 : 0x8000;
this->_registers.y--;
if (this->_registers.p.x_b)