本文整理匯總了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.");
}