wouldn't trigger DMA or DIV responses.
else if (addr == DMA)
{
u16 dma_src = value << 8;
- logger.warning("OAM DMA transfer from 0x", std::hex, std::setfill('0'), dma_src, " requested");
+ //logger.warning("OAM DMA transfer from 0x", std::hex, std::setfill('0'), dma_src, " requested");
core->video.DMA_OAM(dma_src);
}
}
break;
// LDH (n), A
case 0xE0: {
- memory.high[memory.read(regs.PC++)] = regs.A;
+ memory.write(0xFF00+memory.read(regs.PC++), regs.A);
cycles_until_next_instruction = 12;
break;
}
// LDH A, (n)
case 0xF0:
- regs.A = memory.high[memory.read(regs.PC++)];
+ regs.A = memory.read(0xFF00+memory.read(regs.PC++));
cycles_until_next_instruction = 12;
break;