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