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

Method SaveSnapshotMC6821

source/MouseInterface.cpp:642–659  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

640}
641
642void CMouseInterface::SaveSnapshotMC6821(YamlSaveHelper& yamlSaveHelper, std::string key)
643{
644 mc6821_t mc6821;
645 BYTE byIA;
646 BYTE byIB;
647
648 m_6821.Get6821(mc6821, byIA, byIB);
649
650 YamlSaveHelper::Label label(yamlSaveHelper, "%s:\n", key.c_str());
651 yamlSaveHelper.SaveUint(SS_YAML_KEY_PRA, mc6821.pra);
652 yamlSaveHelper.SaveUint(SS_YAML_KEY_DDRA, mc6821.ddra);
653 yamlSaveHelper.SaveUint(SS_YAML_KEY_CRA, mc6821.cra);
654 yamlSaveHelper.SaveUint(SS_YAML_KEY_PRB, mc6821.prb);
655 yamlSaveHelper.SaveUint(SS_YAML_KEY_DDRB, mc6821.ddrb);
656 yamlSaveHelper.SaveUint(SS_YAML_KEY_CRB, mc6821.crb);
657 yamlSaveHelper.SaveUint(SS_YAML_KEY_IA, byIA);
658 yamlSaveHelper.SaveUint(SS_YAML_KEY_IB, byIB);
659}
660
661void CMouseInterface::SaveSnapshot(YamlSaveHelper& yamlSaveHelper)
662{

Callers

nothing calls this directly

Calls 2

Get6821Method · 0.80
SaveUintMethod · 0.80

Tested by

no test coverage detected