public void ReadMap(IdaMap idaMap, DeviceImage image) { //loop through base def and search for table names in map foreach (var romtable in AggregateBaseRomTables) { foreach (var idan in idaMap.IdaCleanNames) { if (romtable.Key.EqualsIdaString(idan.Key)) { ExposeTable(romtable.Key, LutFactory.CreateLut(romtable.Key, uint.Parse(idan.Value.ToString(), NumberStyles.AllowHexSpecifier), image.imageStream)); break; } } } ////TODO RAMTABLES //foreach (var ramtable in baseDef.RamTableList) //{ // foreach (var idan in idaMap.IdaCleanNames) // { // if (ramtable.Key.EqualsIdaString(idan.Key)) // { // break; // } // } //} }
public void ImportMapFile(string filepath, DeviceImage image) { IdaMap idaMap = new IdaMap(filepath); ReadMap(idaMap, image); }
public void ImportMapText(string text, DeviceImage image) { IdaMap idaMap = new IdaMap(text); ReadMap(idaMap, image); }
public static void DefineRRLogEcuFromMap(string mapFile, string ident) { IdaMap im = new IdaMap(mapFile); DefineRRLogEcu(im.IdaNames, ident); }