mirror of
https://github.com/zoriya/ComSquare.git
synced 2026-05-28 16:43:35 +00:00
TSET1 instruction finished
This commit is contained in:
@@ -22,8 +22,13 @@ namespace ComSquare::APU
|
||||
return 4;
|
||||
}
|
||||
|
||||
int APU::TSET1()
|
||||
int APU::TSET1(uint24_t abs)
|
||||
{
|
||||
uint8_t data = this->_internalRead(abs);
|
||||
|
||||
this->_internalWrite(abs, data | this->_internalRegisters.a);
|
||||
this->_internalRegisters.n = data & 0x80u;
|
||||
this->_internalRegisters.z = !data;
|
||||
return 6;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user