mirror of
https://github.com/zoriya/ComSquare.git
synced 2026-05-23 06:48:25 +00:00
Implementing the STX
This commit is contained in:
@@ -15,4 +15,14 @@ namespace ComSquare::CPU
|
||||
this->_bus->write(addr + 1, this->_registers.ah);
|
||||
}
|
||||
}
|
||||
|
||||
void CPU::STX(uint24_t addr)
|
||||
{
|
||||
if (this->_registers.p.x_b)
|
||||
this->_bus->write(addr, this->_registers.xl);
|
||||
else {
|
||||
this->_bus->write(addr, this->_registers.xl);
|
||||
this->_bus->write(addr + 1, this->_registers.xh);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user