mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-27 14:02:19 +00:00
28 lines
No EOL
1,023 B
C#
28 lines
No EOL
1,023 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace Cosmos.IL2CPU.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,
|
|
ReverseRegisters= true,
|
|
DestinationRegAny=true,
|
|
OperandSizeByte=0
|
|
}); // register
|
|
aData.EncodingOptions.Add(new InstructionData.InstructionEncodingOption {
|
|
OpCode = new byte[]{0xF6},
|
|
NeedsModRMByte = true,
|
|
InitialModRMByteValue = 0x18,
|
|
ReverseRegisters = true,
|
|
DestinationMemory = true,
|
|
OperandSizeByte=0
|
|
});
|
|
}
|
|
}
|
|
} |