mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
bugfixes in sram memhandlers
git-svn-id: file:///home/notaz/opt/svn/PicoDrive@301 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
c6196c0f01
commit
9dc0982919
5 changed files with 35 additions and 25 deletions
|
@ -217,7 +217,7 @@ void OtherWrite16(u32 a,u32 d)
|
|||
#ifndef _CD_MEMORY_C
|
||||
if (a >= SRam.start && a <= SRam.end) {
|
||||
elprintf(EL_SRAMIO, "sram w16 [%06x] %04x @ %06x", a, d, SekPc);
|
||||
if ((a&0x16)==0x10) { // detected, not EEPROM, write not disabled
|
||||
if ((Pico.m.sram_reg&0x16)==0x10) { // detected, not EEPROM, write not disabled
|
||||
u8 *pm=(u8 *)(SRam.data-SRam.start+a);
|
||||
*pm++=d>>8;
|
||||
*pm++=d;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue