Home
last modified time | relevance | path

Searched refs:cdlFile (Results 1 – 2 of 2) sorted by relevance

/dports/emulators/mesen/Mesen-0.9.8-4-g4c701ad6/Core/
H A DCodeDataLogger.cpp32 ifstream cdlFile(cdlFilepath, ios::in | ios::binary); in LoadCdlFile() local
33 if(cdlFile) { in LoadCdlFile()
34 cdlFile.seekg(0, std::ios::end); in LoadCdlFile()
35 size_t fileSize = (size_t)cdlFile.tellg(); in LoadCdlFile()
36 cdlFile.seekg(0, std::ios::beg); in LoadCdlFile()
41 cdlFile.read((char*)_cdlData, _prgSize + _chrSize); in LoadCdlFile()
42 cdlFile.close(); in LoadCdlFile()
82 ofstream cdlFile(cdlFilepath, ios::out | ios::binary); in SaveCdlFile() local
83 if(cdlFile) { in SaveCdlFile()
84 cdlFile.write((char*)_cdlData, _prgSize+_chrSize); in SaveCdlFile()
[all …]
/dports/emulators/mesen/Mesen-0.9.8-4-g4c701ad6/GUI.NET/Debugger/
H A DDbgImporter.cs690 byte[] cdlFile = new byte[prgSize]; in BuildCdlData()
697 if(cdlFile[prgAddress + i] != (byte)CdlPrgFlags.Data && !span.IsData && span.Size <= 3) { in BuildCdlData()
698 cdlFile[prgAddress + i] = (byte)CdlPrgFlags.Code; in BuildCdlData()
700 cdlFile[prgAddress + i] = (byte)CdlPrgFlags.Data; in BuildCdlData()
701 } else if(cdlFile[prgAddress + i] == 0) { in BuildCdlData()
703 cdlFile[prgAddress + i] = 0x04; in BuildCdlData()
708 for(int i = 0; i < cdlFile.Length; i++) { in BuildCdlData()
709 if(cdlFile[i] == 0x04) { in BuildCdlData()
711 cdlFile[i] = (byte)CdlPrgFlags.Data; in BuildCdlData()
738cdlFile[definitionPrgAddr] |= (byte)(isJsr ? CdlPrgFlags.SubEntryPoint : CdlPrgFlags.JumpTarget); in BuildCdlData()
[all …]