Fixed opcode error when implementing Dwedit's fix.

This commit is contained in:
mudlord 2007-11-01 06:31:21 +00:00
parent 64e4bca8bc
commit 94e3698ba9
1 changed files with 9 additions and 7 deletions

View File

@ -1226,12 +1226,13 @@ u8 gbReadOpcode(register u16 address)
}
}
break;
}
if (address>=0xE000 && address<0xFE00)
{
return gbMemoryMap[(address-0x2000)>>12][address & 0x0fff];
}
}
return gbMemoryMap[address>>12][address & 0x0fff];
}
u8 gbReadMemory(register u16 address)
{
@ -1394,12 +1395,13 @@ u8 gbReadMemory(register u16 address)
case 0xff:
return register_IE;
}
}
if (address>=0xE000 && address<0xFE00)
{
return gbMemoryMap[(address-0x2000)>>12][address & 0x0fff];
}
}
return gbMemoryMap[address>>12][address & 0x0fff];
}
void gbVblank_interrupt()
{