mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-09-02 01:42:33 +02:00
Fixed TMA writing while reloading.
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user