Cosmos/source2/IL2PCU/Cosmos.IL2CPU.X86/X86/Not.cs
2009-09-06 16:59:43 +00:00

29 lines
1.1 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Cosmos.IL2CPU.X86 {
[OpCode("not")]
public class Not: InstructionWithDestinationAndSize {
public static void InitializeEncodingData(Instruction.InstructionData aData) {
aData.EncodingOptions.Add(new InstructionData.InstructionEncodingOption {
OpCode = new byte[] { 0xF6 },
DestinationMemory = true,
NeedsModRMByte=true,
DefaultSize=InstructionSize.DWord,
OperandSizeByte=0,
ReverseRegisters = true,
InitialModRMByteValue = 0x10
}); // memory
aData.EncodingOptions.Add(new InstructionData.InstructionEncodingOption {
OpCode = new byte[] { 0xF6 },
DestinationRegAny = true,
NeedsModRMByte = true,
InitialModRMByteValue = 0xD0,
ReverseRegisters = true,
OperandSizeByte=0
}); // register
}
}
}