Files
SabreTools.Models/MSDOS/RelocationEntry.cs

23 lines
609 B
C#
Raw Permalink Normal View History

2024-04-23 13:30:43 -04:00
using System.Runtime.InteropServices;
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"/>
2024-04-23 13:30:43 -04:00
[StructLayout(LayoutKind.Sequential)]
2023-09-04 00:11:04 -04:00
public sealed class RelocationEntry
{
/// <summary>
/// Offset of the relocation within provided segment.
/// </summary>
2024-04-23 13:30:43 -04:00
public ushort Offset;
2023-09-04 00:11:04 -04:00
/// <summary>
/// Segment of the relocation, relative to the load segment address.
/// </summary>
2024-04-23 13:30:43 -04:00
public ushort Segment;
2023-09-04 00:11:04 -04:00
}
}