本文整理汇总了C#中SharpOS.AOT.X86.Assembly.ROL__CL方法的典型用法代码示例。如果您正苦于以下问题:C# Assembly.ROL__CL方法的具体用法?C# Assembly.ROL__CL怎么用?C# Assembly.ROL__CL使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SharpOS.AOT.X86.Assembly
的用法示例。
在下文中一共展示了Assembly.ROL__CL方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ROL_rmreg32_CL
public void ROL_rmreg32_CL ()
{
// ROL ESI, CL
// ROL__CL (R32.ESI)
MemoryStream memoryStream = new MemoryStream ();
Assembly asm = new Assembly ();
asm.ROL__CL (R32.ESI);
asm.Encode (memoryStream);
byte [] target = new byte [] { 0xd3, 0xc6 };
Assert.IsTrue (CompareData (memoryStream, target), "'ROL ESI, CL' failed.");
}
示例2: ROL_rmreg16_CL
public void ROL_rmreg16_CL ()
{
// ROL BP, CL
// ROL__CL (R16.BP)
MemoryStream memoryStream = new MemoryStream ();
Assembly asm = new Assembly ();
asm.ROL__CL (R16.BP);
asm.Encode (memoryStream);
byte [] target = new byte [] { 0x66, 0xd3, 0xc5 };
Assert.IsTrue (CompareData (memoryStream, target), "'ROL BP, CL' failed.");
}
示例3: ROL_rmreg8_CL
public void ROL_rmreg8_CL ()
{
// ROL AL, CL
// ROL__CL (R8.AL)
MemoryStream memoryStream = new MemoryStream ();
Assembly asm = new Assembly ();
asm.ROL__CL (R8.AL);
asm.Encode (memoryStream);
byte [] target = new byte [] { 0xd2, 0xc0 };
Assert.IsTrue (CompareData (memoryStream, target), "'ROL AL, CL' failed.");
}
示例4: ROL_mem32_CL
public void ROL_mem32_CL ()
{
// ROL DWord [EAX*8], CL
// ROL__CL (new DWordMemory(null, null, R32.EAX, 3))
MemoryStream memoryStream = new MemoryStream ();
Assembly asm = new Assembly ();
asm.ROL__CL (new DWordMemory (null, null, R32.EAX, 3));
asm.Encode (memoryStream);
byte [] target = new byte [] { 0xd3, 0x4, 0xc5, 0x0, 0x0, 0x0, 0x0 };
Assert.IsTrue (CompareData (memoryStream, target), "'ROL DWord [EAX*8], CL' failed.");
}
示例5: ROL_mem16_CL
public void ROL_mem16_CL ()
{
// ROL Word [EBP*2], CL
// ROL__CL (new WordMemory(null, null, R32.EBP, 1))
MemoryStream memoryStream = new MemoryStream ();
Assembly asm = new Assembly ();
asm.ROL__CL (new WordMemory (null, null, R32.EBP, 1));
asm.Encode (memoryStream);
byte [] target = new byte [] { 0x66, 0xd3, 0x44, 0x2d, 0x0 };
Assert.IsTrue (CompareData (memoryStream, target), "'ROL Word [EBP*2], CL' failed.");
}
示例6: ROL_mem8_CL
public void ROL_mem8_CL ()
{
// ROL Byte [EBP + EDX*8], CL
// ROL__CL (new ByteMemory(null, R32.EBP, R32.EDX, 3))
MemoryStream memoryStream = new MemoryStream ();
Assembly asm = new Assembly ();
asm.ROL__CL (new ByteMemory (null, R32.EBP, R32.EDX, 3));
asm.Encode (memoryStream);
byte [] target = new byte [] { 0xd2, 0x44, 0xd5, 0x0 };
Assert.IsTrue (CompareData (memoryStream, target), "'ROL Byte [EBP + EDX*8], CL' failed.");
}