mirror of
https://github.com/danbulant/Cosmos
synced 2026-06-06 16:22:40 +00:00
This commit is contained in:
parent
48611f2478
commit
486fa3a3bc
2 changed files with 11 additions and 11 deletions
|
|
@ -12,9 +12,10 @@ namespace Indy.IL2CPU.Assembler.X86 {
|
||||||
NeedsModRMByte=true,
|
NeedsModRMByte=true,
|
||||||
InitialModRMByteValue = 0xE0,
|
InitialModRMByteValue = 0xE0,
|
||||||
OperandSizeByte=0,
|
OperandSizeByte=0,
|
||||||
//ReverseRegisters = true,
|
ReverseRegisters = true,
|
||||||
DestinationReg=Guid.Empty,
|
DestinationReg=Guid.Empty,
|
||||||
SourceReg=Registers.CL
|
SourceReg=Registers.CL,
|
||||||
|
SourceRegByte=-1
|
||||||
}); // register by CL
|
}); // register by CL
|
||||||
aData.EncodingOptions.Add(new InstructionData.InstructionEncodingOption {
|
aData.EncodingOptions.Add(new InstructionData.InstructionEncodingOption {
|
||||||
OpCode = new byte[] { 0xD2 },
|
OpCode = new byte[] { 0xD2 },
|
||||||
|
|
|
||||||
|
|
@ -12,15 +12,14 @@ namespace TestApp {
|
||||||
class Program {
|
class Program {
|
||||||
class Renderer : Y86 {
|
class Renderer : Y86 {
|
||||||
public void DoRender() {
|
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 { SourceReg = Registers.CL, DestinationReg = Registers.AH, Size = 8 };
|
||||||
new global::Indy.IL2CPU.Assembler.X86.ShiftLeft { SourceValue = 30, DestinationValue = 650, DestinationIsIndirect = true, Size = 8 };
|
new global::Indy.IL2CPU.Assembler.X86.ShiftLeft { SourceReg = Registers.CL, DestinationReg = Registers.AL, Size = 8 };
|
||||||
new global::Indy.IL2CPU.Assembler.X86.ShiftLeft { SourceValue = 30, DestinationValue = 650000, DestinationIsIndirect = true, Size = 8 };
|
new global::Indy.IL2CPU.Assembler.X86.ShiftLeft { SourceReg = Registers.CL, DestinationReg = Registers.BH, Size = 8 };
|
||||||
new global::Indy.IL2CPU.Assembler.X86.ShiftLeft { SourceValue = 300, DestinationValue = 65, DestinationIsIndirect = true, Size = 8 };
|
new global::Indy.IL2CPU.Assembler.X86.ShiftLeft { SourceReg = Registers.CL, DestinationReg = Registers.BL, Size = 8 };
|
||||||
new global::Indy.IL2CPU.Assembler.X86.ShiftLeft { SourceValue = 300, DestinationValue = 650, DestinationIsIndirect = true, Size = 8 };
|
new global::Indy.IL2CPU.Assembler.X86.ShiftLeft { SourceReg = Registers.CL, DestinationReg = Registers.CH, Size = 8 };
|
||||||
new global::Indy.IL2CPU.Assembler.X86.ShiftLeft { SourceValue = 300, DestinationValue = 650000, DestinationIsIndirect = true, Size = 8 };
|
new global::Indy.IL2CPU.Assembler.X86.ShiftLeft { SourceReg = Registers.CL, DestinationReg = Registers.CL, Size = 8 };
|
||||||
new global::Indy.IL2CPU.Assembler.X86.ShiftLeft { SourceValue = 300000, DestinationValue = 65, DestinationIsIndirect = true, Size = 8 };
|
new global::Indy.IL2CPU.Assembler.X86.ShiftLeft { SourceReg = Registers.CL, DestinationReg = Registers.DH, Size = 8 };
|
||||||
new global::Indy.IL2CPU.Assembler.X86.ShiftLeft { SourceValue = 300000, DestinationValue = 650, DestinationIsIndirect = true, Size = 8 };
|
new global::Indy.IL2CPU.Assembler.X86.ShiftLeft { SourceReg = Registers.CL, DestinationReg = Registers.DL, Size = 8 };
|
||||||
new global::Indy.IL2CPU.Assembler.X86.ShiftLeft { SourceValue = 300000, DestinationValue = 650000, DestinationIsIndirect = true, Size = 8 };
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
static void Main(string[] args) {
|
static void Main(string[] args) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue