mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-26 15:50:00 -06:00
fix addressing for tiny EEPROM.
This commit is contained in:
@ -284,7 +284,7 @@ void Write_EEPROMTiny(u8 val, bool islast)
|
||||
}
|
||||
else
|
||||
{
|
||||
SRAM[(Addr & 0xFF) | ((CurCmd==0x0A)?0x100:0)] = val;
|
||||
SRAM[(Addr + ((CurCmd==0x0A)?0x100:0)) & 0x1FF] = val;
|
||||
Addr++;
|
||||
}
|
||||
break;
|
||||
@ -298,7 +298,7 @@ void Write_EEPROMTiny(u8 val, bool islast)
|
||||
}
|
||||
else
|
||||
{
|
||||
Data = SRAM[(Addr & 0xFF) | ((CurCmd==0x0B)?0x100:0)];
|
||||
Data = SRAM[(Addr + ((CurCmd==0x0B)?0x100:0)) & 0x1FF];
|
||||
Addr++;
|
||||
}
|
||||
break;
|
||||
|
Reference in New Issue
Block a user