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

30 lines
1.2 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Cosmos.IL2CPU.X86 {
[OpCode("mul")]
public class Multiply: InstructionWithDestinationAndSize {
public static void InitializeEncodingData(Instruction.InstructionData aData) {
aData.EncodingOptions.Add(new InstructionData.InstructionEncodingOption {
OpCode = new byte[] { 0xF6 },
NeedsModRMByte = true,
InitialModRMByteValue = 0xE0,
DestinationRegAny = true,
OperandSizeByte=0,
ReverseRegisters=true,
DefaultSize=InstructionSize.Byte
}); // EAX with register
aData.EncodingOptions.Add(new InstructionData.InstructionEncodingOption {
OpCode = new byte[] { 0xF6 },
NeedsModRMByte = true,
InitialModRMByteValue = 0x20,
OperandSizeByte = 0,
DestinationMemory = true,
ReverseRegisters=true,
DefaultSize = InstructionSize.Byte
}); // EAX with register
}
}
}