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); }
public RootEntity(MemHandler memHandler) { this.MemHandler = memHandler; this.RootEntity = this; }