diff --git a/desmume/src/MMU.cpp b/desmume/src/MMU.cpp index 12300cc77..85114b156 100644 --- a/desmume/src/MMU.cpp +++ b/desmume/src/MMU.cpp @@ -3121,7 +3121,7 @@ u32 FASTCALL _MMU_ARM9_read32(u32 adr) case 0xB7: { /* TODO: prevent read if the address is out of range */ - /* Make sure any reads below 0x8000 redirect to 0x8000+(adr%0x1FF) as on real cart */ + /* Make sure any reads below 0x8000 redirect to 0x8000+(adr&0x1FF) as on real cart */ if(MMU.dscard[ARMCPU_ARM9].address < 0x8000) { MMU.dscard[ARMCPU_ARM9].address = (0x8000 + (MMU.dscard[ARMCPU_ARM9].address&0x1FF));