mirror of https://github.com/bsnes-emu/bsnes.git
Refinement to that last fix
This commit is contained in:
parent
90a943d05a
commit
b02e40d5a2
|
@ -110,10 +110,11 @@ static uint8_t read_banked_ram(GB_gameboy_t *gb, uint16_t addr)
|
|||
static uint8_t read_high_memory(GB_gameboy_t *gb, uint16_t addr)
|
||||
{
|
||||
|
||||
if (addr < 0xFE00) {
|
||||
if (gb->hdma_on) {
|
||||
return gb->last_opcode_read;
|
||||
}
|
||||
|
||||
if (addr < 0xFE00) {
|
||||
return gb->ram[addr & 0x0FFF];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue