mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2025-03-01 03:29:37 +00:00
More linux changes
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
parent
d2c3efac83
commit
18d74b6f13
@ -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) {
|
||||
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user