本文整理汇总了C#中SharpOS.AOT.X86.Assembly.RCL方法的典型用法代码示例。如果您正苦于以下问题:C# Assembly.RCL方法的具体用法?C# Assembly.RCL怎么用?C# Assembly.RCL使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SharpOS.AOT.X86.Assembly
的用法示例。
在下文中一共展示了Assembly.RCL方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: RCL_rmreg32_imm8
public void RCL_rmreg32_imm8 ()
{
// RCL ESI, 0xb
// RCL (R32.ESI, 0xb)
MemoryStream memoryStream = new MemoryStream ();
Assembly asm = new Assembly ();
asm.RCL (R32.ESI, 0xb);
asm.Encode (memoryStream);
byte [] target = new byte [] { 0xc1, 0xd6, 0xb };
Assert.IsTrue (CompareData (memoryStream, target), "'RCL ESI, 0xb' failed.");
}
示例2: RCL_rmreg16_imm8
public void RCL_rmreg16_imm8 ()
{
// RCL AX, 0xd
// RCL (R16.AX, 0xd)
MemoryStream memoryStream = new MemoryStream ();
Assembly asm = new Assembly ();
asm.RCL (R16.AX, 0xd);
asm.Encode (memoryStream);
byte [] target = new byte [] { 0x66, 0xc1, 0xd0, 0xd };
Assert.IsTrue (CompareData (memoryStream, target), "'RCL AX, 0xd' failed.");
}
示例3: RCL_rmreg8_imm8
public void RCL_rmreg8_imm8 ()
{
// RCL AL, 0x5
// RCL (R8.AL, 0x5)
MemoryStream memoryStream = new MemoryStream ();
Assembly asm = new Assembly ();
asm.RCL (R8.AL, 0x5);
asm.Encode (memoryStream);
byte [] target = new byte [] { 0xc0, 0xd0, 0x5 };
Assert.IsTrue (CompareData (memoryStream, target), "'RCL AL, 0x5' failed.");
}
示例4: RCL_mem32_imm8
public void RCL_mem32_imm8 ()
{
// RCL DWord [EBX + ECX*2 + 0x12345678], 0xe
// RCL (new DWordMemory(null, R32.EBX, R32.ECX, 1, 0x12345678), 0xe)
MemoryStream memoryStream = new MemoryStream ();
Assembly asm = new Assembly ();
asm.RCL (new DWordMemory (null, R32.EBX, R32.ECX, 1, 0x12345678), 0xe);
asm.Encode (memoryStream);
byte [] target = new byte [] { 0xc1, 0x94, 0x4b, 0x78, 0x56, 0x34, 0x12, 0xe };
Assert.IsTrue (CompareData (memoryStream, target), "'RCL DWord [EBX + ECX*2 + 0x12345678], 0xe' failed.");
}
示例5: RCL_mem16_imm8
public void RCL_mem16_imm8 ()
{
// RCL Word [SS:EAX*2], 0x0
// RCL (new WordMemory(Seg.SS, null, R32.EAX, 1), 0x0)
MemoryStream memoryStream = new MemoryStream ();
Assembly asm = new Assembly ();
asm.RCL (new WordMemory (Seg.SS, null, R32.EAX, 1), 0x0);
asm.Encode (memoryStream);
byte [] target = new byte [] { 0x36, 0x66, 0xc1, 0x14, 0x0, 0x0 };
Assert.IsTrue (CompareData (memoryStream, target), "'RCL Word [SS:EAX*2], 0x0' failed.");
}
示例6: RCL_mem8_imm8
public void RCL_mem8_imm8 ()
{
// RCL Byte [GS:ECX*4], 0x3
// RCL (new ByteMemory(Seg.GS, null, R32.ECX, 2), 0x3)
MemoryStream memoryStream = new MemoryStream ();
Assembly asm = new Assembly ();
asm.RCL (new ByteMemory (Seg.GS, null, R32.ECX, 2), 0x3);
asm.Encode (memoryStream);
byte [] target = new byte [] { 0x65, 0xc0, 0x14, 0x8d, 0x0, 0x0, 0x0, 0x0, 0x3 };
Assert.IsTrue (CompareData (memoryStream, target), "'RCL Byte [GS:ECX*4], 0x3' failed.");
}