mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-08-22 09:03:30 +02:00
Refinement to that last fix
This commit is contained in:
@@ -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)
|
static uint8_t read_high_memory(GB_gameboy_t *gb, uint16_t addr)
|
||||||
{
|
{
|
||||||
|
|
||||||
if (addr < 0xFE00) {
|
|
||||||
if (gb->hdma_on) {
|
if (gb->hdma_on) {
|
||||||
return gb->last_opcode_read;
|
return gb->last_opcode_read;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (addr < 0xFE00) {
|
||||||
return gb->ram[addr & 0x0FFF];
|
return gb->ram[addr & 0x0FFF];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user