Fixed HDMA timing )But still not verified)

This commit is contained in:
Lior Halphon 2018-07-20 12:34:52 +03:00
parent b1cc55b786
commit ce80acc818
2 changed files with 3 additions and 3 deletions

View File

@ -823,8 +823,8 @@ void GB_display_run(GB_gameboy_t *gb, uint8_t cycles)
/* Todo: Measure this value */
gb->cycles_for_line += 16;
GB_SLEEP(gb, display, 25, 16);
gb->cycles_for_line += 12;
GB_SLEEP(gb, display, 25, 12);
if (gb->hdma_on_hblank) {
gb->hdma_starting = true;

View File

@ -465,7 +465,7 @@ static void reset_ram(GB_gameboy_t *gb)
}
break;
#if 0
/* Not emulated yet, for documentation only*/
/* Not emulated yet, for documentation only */
case GB_MODEL_SGB2:
for (unsigned i = 0; i < gb->ram_size; i++) {
gb->ram[i] = 0x55;