Cosmos/source2/Compiler/Cosmos.Compiler.Assembler.X86/286AndUp/Lgdt.cs

19 lines
No EOL
644 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Cosmos.Compiler.Assembler.X86 {
[OpCode("lgdt")]
public class Lgdt : InstructionWithDestination {
public static void InitializeEncodingData(Instruction.InstructionData aData) {
aData.EncodingOptions.Add(new InstructionData.InstructionEncodingOption {
OpCode = new byte[] { 0x0F, 0x01 },
NeedsModRMByte = true,
InitialModRMByteValue = 0x10,
DestinationMemory = true,
ReverseRegisters=true
});
}
}
}