mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-10-27 13:38:51 +01:00
sram handling refactored
git-svn-id: file:///home/notaz/opt/svn/PicoDrive@239 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
f58f05d28a
commit
7969166ef6
5 changed files with 144 additions and 147 deletions
|
|
@ -214,8 +214,19 @@ void OtherWrite16(u32 a,u32 d)
|
|||
return;
|
||||
}
|
||||
|
||||
OtherWrite8End(a, d>>8, 16);
|
||||
OtherWrite8End(a+1,d&0xff, 16);
|
||||
if (a >= SRam.start && a <= SRam.end) {
|
||||
if ((a&0x16)==0x10) { // detected, not EEPROM, write not disabled
|
||||
u8 *pm=(u8 *)(SRam.data-SRam.start+a);
|
||||
*pm++=d>>8;
|
||||
*pm++=d;
|
||||
SRam.changed = 1;
|
||||
}
|
||||
else
|
||||
SRAMWrite(a, d); // ??
|
||||
return;
|
||||
}
|
||||
//OtherWrite8End(a, d>>8, 16);
|
||||
//OtherWrite8End(a+1,d&0xff, 16);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue