Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MemoryControlBlock"/> class.
 /// </summary>
 /// <param name="memory">Emulated memory associated with the block.</param>
 /// <param name="segment">Segment of the memory control block to read.</param>
 public MemoryControlBlock(PhysicalMemory memory, ushort segment)
 {
     this.Segment    = segment;
     this.IsLast     = memory.GetByte(segment, 0) == 0x5A;
     this.PspSegment = memory.GetUInt16(segment, 1);
     this.Length     = memory.GetUInt16(segment, 3);
     this.ImageName  = memory.GetString(segment, 8, 8, 0);
 }