More linux changes

Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
Adrian Conlon 2017-10-02 20:29:16 +01:00
parent d2c3efac83
commit 18d74b6f13
2 changed files with 6 additions and 5 deletions

View File

@ -67,7 +67,6 @@ void EightBit::GameBoy::Display::renderObjects(int objBlockHeight) {
palettes[1] = createPalette(Bus::OBP1);
const auto objDefinitionAddress = 0x8000;
const auto oamAddress = 0xfe00;
for (int i = 0; i < 40; ++i) {

View File

@ -185,14 +185,16 @@ void EightBit::GameBoy::LR35902::compare(uint8_t& f, uint8_t check, uint8_t valu
uint8_t EightBit::GameBoy::LR35902::rlc(uint8_t& f, uint8_t operand) {
clearFlag(f, NF | HC | ZF);
setFlag(f, CF, operand & Bit7);
return _rotl8(operand, 1);
auto carry = operand & Bit7;
setFlag(f, CF, carry);
return (operand << 1) | (carry >> 7);
}
uint8_t EightBit::GameBoy::LR35902::rrc(uint8_t& f, uint8_t operand) {
clearFlag(f, NF | HC | ZF);
setFlag(f, CF, operand & Bit0);
return _rotr8(operand, 1);
auto carry = operand & Bit0;
setFlag(f, CF, carry);
return (operand >> 1) | (carry << 7);
}
uint8_t EightBit::GameBoy::LR35902::rl(uint8_t& f, uint8_t operand) {