Пример #1
0
 public int GetFinalAddress()
 {
     if (MemMapping.FinalAddress < 0)
     {
         int[] preOffsets = new int[MemMapping.PreOffsets.Length];
         for (int i = 0; i < MemMapping.PreOffsets.Length; i++)
         {
             preOffsets[i] = MemMapping.PreOffsets[i];
         }
         MemHandler memHandler = this.RootEntity.MemHandler;
         MemMapping.FinalAddress = (int)memHandler.CalculateFinalAddress(MemMapping.Module, MemMapping.StartAddress, preOffsets, MemMapping.Offset);
     }
     return(MemMapping.FinalAddress);
 }
Пример #2
0
 public RootEntity(MemHandler memHandler)
 {
     this.MemHandler = memHandler;
     this.RootEntity = this;
 }