mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-27 22:12:25 +00:00
29 lines
1.1 KiB
C#
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
|
|
}
|
|
}
|
|
}
|