mirror of https://github.com/bsnes-emu/bsnes.git
Fixed TMA writing while reloading.
This commit is contained in:
parent
85a33ed8ef
commit
d03a1fbd16
|
@ -384,7 +384,7 @@ static void write_high_memory(GB_gameboy_t *gb, uint16_t addr, uint8_t value)
|
|||
|
||||
case GB_IO_TMA:
|
||||
gb->io_registers[GB_IO_TMA] = value;
|
||||
if (gb->tima_reload_state == GB_TIMA_RELOADED) {
|
||||
if (gb->tima_reload_state != GB_TIMA_RUNNING) {
|
||||
gb->io_registers[GB_IO_TIMA] = value;
|
||||
}
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue