Files
SabreTools.Models/MSDOS/RelocationEntry.cs
2023-09-10 21:24:10 -04:00

23 lines
635 B
C#

using System.Runtime.InteropServices;
namespace SabreTools.Models.MSDOS
{
/// <summary>
/// Each pointer in the relocation table looks as such
/// </summary>
/// <see href="https://wiki.osdev.org/MZ"/>
[StructLayout(LayoutKind.Sequential)]
public sealed class RelocationEntry
{
/// <summary>
/// Offset of the relocation within provided segment.
/// </summary>
public ushort Offset { get; set; }
/// <summary>
/// Segment of the relocation, relative to the load segment address.
/// </summary>
public ushort Segment { get; set; }
}
}