using System;
namespace BurnOutSharp.Models.NewExecutable
{
[Flags]
public enum HeaderFlag : ushort
{
NOAUTODATA = 0x0000,
///
/// Shared automatic data segment
///
SINGLEDATA = 0x0001,
///
/// Instanced automatic data segment
///
MULTIPLEDATA = 0x0002,
///
/// Errors detected at link time, module will not load
///
ErrorsDetectedAtLinkTime = 0x2000,
///
/// Library module.
/// The SS:SP information is invalid, CS:IP points
/// to an initialization procedure that is called
/// with AX equal to the module handle. This
/// initialization procedure must perform a far
/// return to the caller, with AX not equal to
/// zero to indicate success, or AX equal to zero
/// to indicate failure to initialize. DS is set
/// to the library's data segment if the
/// SINGLEDATA flag is set. Otherwise, DS is set
/// to the caller's data segment.
///
///
/// A program or DLL can only contain dynamic
/// links to executable files that have this
/// library module flag set. One program cannot
/// dynamic-link to another program.
///
LibraryModule = 0x8000,
}
public enum OperatingSystem : byte
{
OS2 = 0x01,
WINDOWS = 0x02,
EU_MSDOS4 = 0x03,
WINDOWS_386 = 0x04,
BOSS = 0x05,
}
[Flags]
public enum SegmentTableEntryFlag : ushort
{
///
/// Segment-type field.
///
TYPE_MASK = 0x0007,
///
/// Code-segment type.
///
CODE = 0x0000,
///
/// Data-segment type.
///
DATA = 0x0001,
///
/// Segment is not fixed.
///
MOVEABLE = 0x0010,
///
/// Segment will be preloaded; read-only if this is a data segment.
///
PRELOAD = 0x0040,
///
/// Set if segment has relocation records.
///
RELOCINFO = 0x0100,
///
/// Discard priority.
///
DISCARD = 0xF000,
}
}