mirror of
https://github.com/jscrane/r65emu.git
synced 2024-12-25 22:31:51 +00:00
cleanup
This commit is contained in:
parent
848a91c68c
commit
e0633e6450
@ -44,11 +44,8 @@ void hardware_checkpoint(Stream &s) {
|
||||
unsigned ds = 0;
|
||||
for (unsigned i = 0; i < 0x10000; i += ds) {
|
||||
Memory::Device *dev = memory.get(i);
|
||||
if (dev) {
|
||||
dev->checkpoint(s);
|
||||
ds = dev->pages() * Memory::page_size;
|
||||
} else
|
||||
ds = Memory::page_size;
|
||||
}
|
||||
_cpu->checkpoint(s);
|
||||
}
|
||||
@ -57,11 +54,8 @@ void hardware_restore(Stream &s) {
|
||||
unsigned ds = 0;
|
||||
for (unsigned i = 0; i < 0x10000; i += ds) {
|
||||
Memory::Device *dev = memory.get(i);
|
||||
if (dev) {
|
||||
dev->restore(s);
|
||||
ds = dev->pages() * Memory::page_size;
|
||||
} else
|
||||
ds = Memory::page_size;
|
||||
}
|
||||
_cpu->restore(s);
|
||||
}
|
||||
|
@ -19,4 +19,5 @@ public:
|
||||
|
||||
void Memory::begin() {
|
||||
put(nd, 0);
|
||||
nd._pages = 1; // hack for checkpointing
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user