This commit is contained in:
mterwoord_cp 2008-12-21 15:08:10 +00:00
parent 48611f2478
commit 486fa3a3bc
2 changed files with 11 additions and 11 deletions

View file

@ -12,9 +12,10 @@ namespace Indy.IL2CPU.Assembler.X86 {
NeedsModRMByte=true,
InitialModRMByteValue = 0xE0,
OperandSizeByte=0,
//ReverseRegisters = true,
ReverseRegisters = true,
DestinationReg=Guid.Empty,
SourceReg=Registers.CL
SourceReg=Registers.CL,
SourceRegByte=-1
}); // register by CL
aData.EncodingOptions.Add(new InstructionData.InstructionEncodingOption {
OpCode = new byte[] { 0xD2 },

View file

@ -12,15 +12,14 @@ namespace TestApp {
class Program {
class Renderer : Y86 {
public void DoRender() {
new global::Indy.IL2CPU.Assembler.X86.ShiftLeft { SourceValue = 30, DestinationValue = 65, DestinationIsIndirect = true, Size = 8 };
new global::Indy.IL2CPU.Assembler.X86.ShiftLeft { SourceValue = 30, DestinationValue = 650, DestinationIsIndirect = true, Size = 8 };
new global::Indy.IL2CPU.Assembler.X86.ShiftLeft { SourceValue = 30, DestinationValue = 650000, DestinationIsIndirect = true, Size = 8 };
new global::Indy.IL2CPU.Assembler.X86.ShiftLeft { SourceValue = 300, DestinationValue = 65, DestinationIsIndirect = true, Size = 8 };
new global::Indy.IL2CPU.Assembler.X86.ShiftLeft { SourceValue = 300, DestinationValue = 650, DestinationIsIndirect = true, Size = 8 };
new global::Indy.IL2CPU.Assembler.X86.ShiftLeft { SourceValue = 300, DestinationValue = 650000, DestinationIsIndirect = true, Size = 8 };
new global::Indy.IL2CPU.Assembler.X86.ShiftLeft { SourceValue = 300000, DestinationValue = 65, DestinationIsIndirect = true, Size = 8 };
new global::Indy.IL2CPU.Assembler.X86.ShiftLeft { SourceValue = 300000, DestinationValue = 650, DestinationIsIndirect = true, Size = 8 };
new global::Indy.IL2CPU.Assembler.X86.ShiftLeft { SourceValue = 300000, DestinationValue = 650000, DestinationIsIndirect = true, Size = 8 };
new global::Indy.IL2CPU.Assembler.X86.ShiftLeft { SourceReg = Registers.CL, DestinationReg = Registers.AH, Size = 8 };
new global::Indy.IL2CPU.Assembler.X86.ShiftLeft { SourceReg = Registers.CL, DestinationReg = Registers.AL, Size = 8 };
new global::Indy.IL2CPU.Assembler.X86.ShiftLeft { SourceReg = Registers.CL, DestinationReg = Registers.BH, Size = 8 };
new global::Indy.IL2CPU.Assembler.X86.ShiftLeft { SourceReg = Registers.CL, DestinationReg = Registers.BL, Size = 8 };
new global::Indy.IL2CPU.Assembler.X86.ShiftLeft { SourceReg = Registers.CL, DestinationReg = Registers.CH, Size = 8 };
new global::Indy.IL2CPU.Assembler.X86.ShiftLeft { SourceReg = Registers.CL, DestinationReg = Registers.CL, Size = 8 };
new global::Indy.IL2CPU.Assembler.X86.ShiftLeft { SourceReg = Registers.CL, DestinationReg = Registers.DH, Size = 8 };
new global::Indy.IL2CPU.Assembler.X86.ShiftLeft { SourceReg = Registers.CL, DestinationReg = Registers.DL, Size = 8 };
}
}
static void Main(string[] args) {