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

31 lines
No EOL
1.2 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Cosmos.IL2CPU.X86 {
[OpCode("rcr")]
public class RotateThroughCarryRight : InstructionWithDestinationAndSourceAndSize {
public static void InitializeEncodingData(Instruction.InstructionData aData) {
aData.EncodingOptions.Add(new InstructionData.InstructionEncodingOption {
OpCode = new byte[] { 0xD2, 0xD8 },
DestinationRegAny = true,
DestinationRegByte = 1,
OperandSizeByte = 0,
SourceReg = Registers.CL,
SourceRegByte = 0,
SourceRegBitShiftLeft = 6,
}); // register by CL
aData.EncodingOptions.Add(new InstructionData.InstructionEncodingOption {
OpCode = new byte[] { 0xD2 },
NeedsModRMByte=true,
InitialModRMByteValue = 0x18,
DestinationMemory = true,
OperandSizeByte = 0,
SourceReg = Registers.CL,
SourceRegByte = -1,
ReverseRegisters=true
}); // memory by CL
}
}
}