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