Add NE entry table

This commit is contained in:
Matt Nadareski
2022-11-04 10:09:09 -07:00
parent dcef3115b8
commit 58181bd723
5 changed files with 156 additions and 1 deletions

View File

@@ -0,0 +1,35 @@
using System.Runtime.InteropServices;
namespace BurnOutSharp.Models.NewExecutable
{
/// <summary>
/// Moveable segment entries. The entry data contains the
/// segment number for the entry points. A moveable segment
/// entry is 6 bytes long and has the following format.
/// </summary>
/// <remarks>0FFH</remarks>
/// <see href="http://bytepointer.com/resources/win16_ne_exe_format_win3.0.htm"/>
[StructLayout(LayoutKind.Sequential)]
public class MoveableSegmentEntry
{
/// <summary>
/// Flag word.
/// </summary>
public MoveableSegmentEntryFlag FlagWord;
/// <summary>
/// INT 3FH.
/// </summary>
public ushort Reserved;
/// <summary>
/// Segment number.
/// </summary>
public byte SegmentNumber;
/// <summary>
/// Offset within segment to entry point.
/// </summary>
public ushort Offset;
}
}