Beispiel #1
0
 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;
     //        }
     //    }
     //}
 }
Beispiel #2
0
        public void ImportMapFile(string filepath, DeviceImage image)
        {
            IdaMap idaMap = new IdaMap(filepath);

            ReadMap(idaMap, image);
        }
Beispiel #3
0
        public void ImportMapText(string text, DeviceImage image)
        {
            IdaMap idaMap = new IdaMap(text);

            ReadMap(idaMap, image);
        }
Beispiel #4
0
        public static void DefineRRLogEcuFromMap(string mapFile, string ident)
        {
            IdaMap im = new IdaMap(mapFile);

            DefineRRLogEcu(im.IdaNames, ident);
        }