mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
eeprom crash fix, PacMan2 hack
git-svn-id: file:///home/notaz/opt/svn/PicoDrive@431 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
daec725334
commit
583ab72c0b
3 changed files with 13 additions and 5 deletions
|
@ -57,6 +57,8 @@ void PicoExit(void)
|
|||
|
||||
void PicoPower(void)
|
||||
{
|
||||
unsigned char sram_reg=Pico.m.sram_reg; // must be preserved
|
||||
|
||||
// clear all memory of the emulated machine
|
||||
memset(&Pico.ram,0,(unsigned int)&Pico.rom-(unsigned int)&Pico.ram);
|
||||
|
||||
|
@ -74,6 +76,7 @@ void PicoPower(void)
|
|||
if (PicoAHW & PAHW_MCD)
|
||||
PicoPowerMCD();
|
||||
|
||||
Pico.m.sram_reg=sram_reg;
|
||||
PicoReset();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue