GB I/O: Fix bootrom running forever
Vicki Pfau vi@endrift.com
Fri, 02 Jun 2017 15:58:00 -0700
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
src/gb/io.c
→
src/gb/io.c
@@ -382,7 +382,7 @@ GBVideoWriteSTAT(&gb->video, value);
value = gb->video.stat; break; case 0x50: - if (gb->memory.romBase < gb->memory.rom && gb->memory.romBase > &gb->memory.rom[gb->memory.romSize - 1]) { + if (gb->memory.romBase < gb->memory.rom || gb->memory.romBase > &gb->memory.rom[gb->memory.romSize - 1]) { free(gb->memory.romBase); gb->memory.romBase = gb->memory.rom; }