remove logic from mmu.cpp which might have been interfering MMU_VRAMmapControl()
This commit is contained in:
parent
39f1b7260e
commit
c33a11ac03
|
@ -4563,9 +4563,6 @@ u16 FASTCALL _MMU_ARM9_read16(u32 adr)
|
||||||
case REG_IME :
|
case REG_IME :
|
||||||
return (u16)MMU.reg_IME[ARMCPU_ARM9];
|
return (u16)MMU.reg_IME[ARMCPU_ARM9];
|
||||||
|
|
||||||
//WRAMCNT is readable but VRAMCNT is not, so just return WRAM's value
|
|
||||||
case REG_VRAMCNTG:
|
|
||||||
return MMU.WRAMCNT << 8;
|
|
||||||
|
|
||||||
case REG_IE :
|
case REG_IE :
|
||||||
return (u16)MMU.reg_IE[ARMCPU_ARM9];
|
return (u16)MMU.reg_IE[ARMCPU_ARM9];
|
||||||
|
@ -4654,10 +4651,6 @@ u32 FASTCALL _MMU_ARM9_read32(u32 adr)
|
||||||
case REG_DISPx_VCOUNT:
|
case REG_DISPx_VCOUNT:
|
||||||
return nds.VCount;
|
return nds.VCount;
|
||||||
|
|
||||||
//WRAMCNT is readable but VRAMCNT is not, so just return WRAM's value
|
|
||||||
case REG_VRAMCNTE:
|
|
||||||
return MMU.WRAMCNT << 24;
|
|
||||||
|
|
||||||
//despite these being 16bit regs,
|
//despite these being 16bit regs,
|
||||||
//Dolphin Island Underwater Adventures uses this amidst seemingly reasonable divs so we're going to emulate it.
|
//Dolphin Island Underwater Adventures uses this amidst seemingly reasonable divs so we're going to emulate it.
|
||||||
//well, it's pretty reasonable to read them as 32bits though, isnt it?
|
//well, it's pretty reasonable to read them as 32bits though, isnt it?
|
||||||
|
|
Loading…
Reference in New Issue