Cosmos/source/Indy.IL2CPU/Assembler/x86/Neg.cs
mterwoord_cp 8b8be0c28d
2008-11-29 17:26:44 +00:00

26 lines
No EOL
951 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Indy.IL2CPU.Assembler.X86 {
[OpCode("neg")]
public class Neg: InstructionWithDestinationAndSize {
public static void InitializeEncodingData(Instruction.InstructionData aData) {
aData.EncodingOptions.Add(new InstructionData.InstructionEncodingOption {
OpCode=new byte[] {0xF6},
NeedsModRMByte=true,
InitialModRMByteValue = 0xD8,
DestinationReg=Guid.Empty,
OperandSizeByte=0
}); // register
aData.EncodingOptions.Add(new InstructionData.InstructionEncodingOption {
OpCode = new byte[]{0xF6},
NeedsModRMByte = true,
InitialModRMByteValue = 0x18,
DestinationMemory = true,
OperandSizeByte=0
});
}
}
}