mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-31 13:21:05 +00:00
32 lines
No EOL
1.3 KiB
C#
32 lines
No EOL
1.3 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace Indy.IL2CPU.Assembler.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 },
|
|
DestinationReg = Guid.Empty,
|
|
DestinationRegByte = 1,
|
|
OperandSizeByte = 0,
|
|
SourceReg = Registers.CL,
|
|
SourceRegByte = 0,
|
|
SourceRegBitShiftLeft = 6,
|
|
}); // register by CL
|
|
//aData.EncodingOptions.Add(new InstructionData.InstructionEncodingOption {
|
|
// OpCode = new byte[] { 0xD2 },
|
|
// DestinationReg = Guid.Empty,
|
|
// DestinationRegByte = 1,
|
|
// OperandSizeByte = 0,
|
|
// NeedsModRMByte = true,
|
|
// InitialModRMByteValue = 0xD8,
|
|
// SourceReg=Registers.CL,
|
|
// SourceRegByte=0,
|
|
// SourceRegBitShiftLeft=6
|
|
//}); // register by CL
|
|
}
|
|
}
|
|
} |