本文整理汇总了C#中SharpOS.AOT.X86.Assembly.ROL方法的典型用法代码示例。如果您正苦于以下问题:C# Assembly.ROL方法的具体用法?C# Assembly.ROL怎么用?C# Assembly.ROL使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SharpOS.AOT.X86.Assembly
的用法示例。
在下文中一共展示了Assembly.ROL方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ROL_rmreg32_imm8
public void ROL_rmreg32_imm8 ()
{
// ROL EBX, 0x5
// ROL (R32.EBX, 0x5)
MemoryStream memoryStream = new MemoryStream ();
Assembly asm = new Assembly ();
asm.ROL (R32.EBX, 0x5);
asm.Encode (memoryStream);
byte [] target = new byte [] { 0xc1, 0xc3, 0x5 };
Assert.IsTrue (CompareData (memoryStream, target), "'ROL EBX, 0x5' failed.");
}
示例2: ROL_rmreg16_imm8
public void ROL_rmreg16_imm8 ()
{
// ROL DX, 0x6
// ROL (R16.DX, 0x6)
MemoryStream memoryStream = new MemoryStream ();
Assembly asm = new Assembly ();
asm.ROL (R16.DX, 0x6);
asm.Encode (memoryStream);
byte [] target = new byte [] { 0x66, 0xc1, 0xc2, 0x6 };
Assert.IsTrue (CompareData (memoryStream, target), "'ROL DX, 0x6' failed.");
}
示例3: ROL_rmreg8_imm8
public void ROL_rmreg8_imm8 ()
{
// ROL DL, 0x4
// ROL (R8.DL, 0x4)
MemoryStream memoryStream = new MemoryStream ();
Assembly asm = new Assembly ();
asm.ROL (R8.DL, 0x4);
asm.Encode (memoryStream);
byte [] target = new byte [] { 0xc0, 0xc2, 0x4 };
Assert.IsTrue (CompareData (memoryStream, target), "'ROL DL, 0x4' failed.");
}
示例4: ROL_mem32_imm8
public void ROL_mem32_imm8 ()
{
// ROL DWord [CS:EDX + EDI*2 + 0x12345678], 0xf
// ROL (new DWordMemory(Seg.CS, R32.EDX, R32.EDI, 1, 0x12345678), 0xf)
MemoryStream memoryStream = new MemoryStream ();
Assembly asm = new Assembly ();
asm.ROL (new DWordMemory (Seg.CS, R32.EDX, R32.EDI, 1, 0x12345678), 0xf);
asm.Encode (memoryStream);
byte [] target = new byte [] { 0x2e, 0xc1, 0x84, 0x7a, 0x78, 0x56, 0x34, 0x12, 0xf };
Assert.IsTrue (CompareData (memoryStream, target), "'ROL DWord [CS:EDX + EDI*2 + 0x12345678], 0xf' failed.");
}
示例5: ROL_mem16_imm8
public void ROL_mem16_imm8 ()
{
// ROL Word [EDI], 0xc
// ROL (new WordMemory(null, R32.EDI, null, 0), 0xc)
MemoryStream memoryStream = new MemoryStream ();
Assembly asm = new Assembly ();
asm.ROL (new WordMemory (null, R32.EDI, null, 0), 0xc);
asm.Encode (memoryStream);
byte [] target = new byte [] { 0x66, 0xc1, 0x7, 0xc };
Assert.IsTrue (CompareData (memoryStream, target), "'ROL Word [EDI], 0xc' failed.");
}
示例6: ROL_mem8_imm8
public void ROL_mem8_imm8 ()
{
// ROL Byte [GS:EBP + EBX*2], 0xd
// ROL (new ByteMemory(Seg.GS, R32.EBP, R32.EBX, 1), 0xd)
MemoryStream memoryStream = new MemoryStream ();
Assembly asm = new Assembly ();
asm.ROL (new ByteMemory (Seg.GS, R32.EBP, R32.EBX, 1), 0xd);
asm.Encode (memoryStream);
byte [] target = new byte [] { 0x65, 0xc0, 0x44, 0x5d, 0x0, 0xd };
Assert.IsTrue (CompareData (memoryStream, target), "'ROL Byte [GS:EBP + EBX*2], 0xd' failed.");
}