TSET1 instruction finished

This commit is contained in:
Melefo
2020-02-13 16:37:37 +01:00
parent f66ffad5c5
commit 3ebe1952d8
4 changed files with 28 additions and 2 deletions
+6 -1
View File
@@ -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;
}
}