mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-11-22 13:31:08 +00:00
Zero out memory
This commit is contained in:
parent
cfcfde0480
commit
36b6d0769b
@ -394,6 +394,7 @@ int main(int argc, char **argv)
|
||||
ErrorAlert(STR_NO_MEM_ERR);
|
||||
QuitEmulator();
|
||||
}
|
||||
memset(ram_rom_area, 0, RAMSize + 0x100000);
|
||||
RAMBaseHost = ram_rom_area;
|
||||
ROMBaseHost = RAMBaseHost + RAMSize;
|
||||
}
|
||||
@ -405,6 +406,7 @@ int main(int argc, char **argv)
|
||||
ErrorAlert(STR_NO_MEM_ERR);
|
||||
QuitEmulator();
|
||||
}
|
||||
memset(ScratchMem, 0, SCRATCH_MEM_SIZE);
|
||||
ScratchMem += SCRATCH_MEM_SIZE/2; // ScratchMem points to middle of block
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user