本文整理匯總了C#中SharpOS.AOT.X86.Assembly.ROR方法的典型用法代碼示例。如果您正苦於以下問題:C# Assembly.ROR方法的具體用法?C# Assembly.ROR怎麽用?C# Assembly.ROR使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類SharpOS.AOT.X86.Assembly
的用法示例。
在下文中一共展示了Assembly.ROR方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: ROR_rmreg32_imm8
public void ROR_rmreg32_imm8 ()
{
// ROR EBP, 0xa
// ROR (R32.EBP, 0xa)
MemoryStream memoryStream = new MemoryStream ();
Assembly asm = new Assembly ();
asm.ROR (R32.EBP, 0xa);
asm.Encode (memoryStream);
byte [] target = new byte [] { 0xc1, 0xcd, 0xa };
Assert.IsTrue (CompareData (memoryStream, target), "'ROR EBP, 0xa' failed.");
}
示例2: ROR_rmreg16_imm8
public void ROR_rmreg16_imm8 ()
{
// ROR BP, 0xe
// ROR (R16.BP, 0xe)
MemoryStream memoryStream = new MemoryStream ();
Assembly asm = new Assembly ();
asm.ROR (R16.BP, 0xe);
asm.Encode (memoryStream);
byte [] target = new byte [] { 0x66, 0xc1, 0xcd, 0xe };
Assert.IsTrue (CompareData (memoryStream, target), "'ROR BP, 0xe' failed.");
}
示例3: ROR_rmreg8_imm8
public void ROR_rmreg8_imm8 ()
{
// ROR AL, 0x8
// ROR (R8.AL, 0x8)
MemoryStream memoryStream = new MemoryStream ();
Assembly asm = new Assembly ();
asm.ROR (R8.AL, 0x8);
asm.Encode (memoryStream);
byte [] target = new byte [] { 0xc0, 0xc8, 0x8 };
Assert.IsTrue (CompareData (memoryStream, target), "'ROR AL, 0x8' failed.");
}
示例4: ROR_mem32_imm8
public void ROR_mem32_imm8 ()
{
// ROR DWord [ESI + ESI*1], 0x3
// ROR (new DWordMemory(null, R32.ESI, R32.ESI, 0), 0x3)
MemoryStream memoryStream = new MemoryStream ();
Assembly asm = new Assembly ();
asm.ROR (new DWordMemory (null, R32.ESI, R32.ESI, 0), 0x3);
asm.Encode (memoryStream);
byte [] target = new byte [] { 0xc1, 0xc, 0x36, 0x3 };
Assert.IsTrue (CompareData (memoryStream, target), "'ROR DWord [ESI + ESI*1], 0x3' failed.");
}
示例5: ROR_mem16_imm8
public void ROR_mem16_imm8 ()
{
// ROR Word [0x12345678], 0xc
// ROR (new WordMemory(null, null, null, 0, 0x12345678), 0xc)
MemoryStream memoryStream = new MemoryStream ();
Assembly asm = new Assembly ();
asm.ROR (new WordMemory (null, null, null, 0, 0x12345678), 0xc);
asm.Encode (memoryStream);
byte [] target = new byte [] { 0x66, 0xc1, 0xd, 0x78, 0x56, 0x34, 0x12, 0xc };
Assert.IsTrue (CompareData (memoryStream, target), "'ROR Word [0x12345678], 0xc' failed.");
}
示例6: ROR_mem8_imm8
public void ROR_mem8_imm8 ()
{
// ROR Byte [0x12345678], 0x1
// ROR (new ByteMemory(null, null, null, 0, 0x12345678), 0x1)
MemoryStream memoryStream = new MemoryStream ();
Assembly asm = new Assembly ();
asm.ROR (new ByteMemory (null, null, null, 0, 0x12345678), 0x1);
asm.Encode (memoryStream);
byte [] target = new byte [] { 0xd0, 0xd, 0x78, 0x56, 0x34, 0x12 };
Assert.IsTrue (CompareData (memoryStream, target), "'ROR Byte [0x12345678], 0x1' failed.");
}