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