2023-09-10 21:33:22 -04:00
|
|
|
|
namespace SabreTools.Models.MSDOS
|
2023-09-04 00:11:04 -04:00
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Each pointer in the relocation table looks as such
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <see href="https://wiki.osdev.org/MZ"/>
|
|
|
|
|
|
public sealed class RelocationEntry
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Offset of the relocation within provided segment.
|
|
|
|
|
|
/// </summary>
|
2023-09-10 21:24:10 -04:00
|
|
|
|
public ushort Offset { get; set; }
|
2023-09-04 00:11:04 -04:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Segment of the relocation, relative to the load segment address.
|
|
|
|
|
|
/// </summary>
|
2023-09-10 21:24:10 -04:00
|
|
|
|
public ushort Segment { get; set; }
|
2023-09-04 00:11:04 -04:00
|
|
|
|
}
|
|
|
|
|
|
}
|