MCPcopy Create free account
hub / github.com/AppleWin/AppleWin / MemSaveSnapshotMemory

Function MemSaveSnapshotMemory

source/Memory.cpp:2816–2830  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2814}
2815
2816static void MemSaveSnapshotMemory(YamlSaveHelper& yamlSaveHelper, bool bIsMainMem, UINT bank=0, UINT size=64*1024)
2817{
2818 LPBYTE pMemBase = MemGetBankPtr(bank);
2819
2820 if (bIsMainMem)
2821 {
2822 YamlSaveHelper::Label state(yamlSaveHelper, "%s:\n", MemGetSnapshotMainMemStructName().c_str());
2823 yamlSaveHelper.SaveMemory(pMemBase, size);
2824 }
2825 else
2826 {
2827 YamlSaveHelper::Label state(yamlSaveHelper, "%s%02X:\n", MemGetSnapshotAuxMemStructName().c_str(), bank-1);
2828 yamlSaveHelper.SaveMemory(pMemBase, size);
2829 }
2830}
2831
2832void MemSaveSnapshot(YamlSaveHelper& yamlSaveHelper)
2833{

Callers 2

MemSaveSnapshotFunction · 0.85
MemSaveSnapshotAuxFunction · 0.85

Calls 2

MemGetBankPtrFunction · 0.85
SaveMemoryMethod · 0.80

Tested by

no test coverage detected