本文整理汇总了C#中SharpOS.AOT.X86.Assembly.SHRD___CL方法的典型用法代码示例。如果您正苦于以下问题:C# Assembly.SHRD___CL方法的具体用法?C# Assembly.SHRD___CL怎么用?C# Assembly.SHRD___CL使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SharpOS.AOT.X86.Assembly
的用法示例。
在下文中一共展示了Assembly.SHRD___CL方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: SHRD_rmreg32_reg32_CL
public void SHRD_rmreg32_reg32_CL ()
{
// SHRD ECX, EAX, CL
// SHRD___CL (R32.ECX, R32.EAX)
MemoryStream memoryStream = new MemoryStream ();
Assembly asm = new Assembly ();
asm.SHRD___CL (R32.ECX, R32.EAX);
asm.Encode (memoryStream);
byte [] target = new byte [] { 0xf, 0xad, 0xc1 };
Assert.IsTrue (CompareData (memoryStream, target), "'SHRD ECX, EAX, CL' failed.");
}
示例2: SHRD_mem32_reg32_CL
public void SHRD_mem32_reg32_CL ()
{
// SHRD [EBX*2], ESI, CL
// SHRD___CL (new DWordMemory(null, null, R32.EBX, 1), R32.ESI)
MemoryStream memoryStream = new MemoryStream ();
Assembly asm = new Assembly ();
asm.SHRD___CL (new DWordMemory (null, null, R32.EBX, 1), R32.ESI);
asm.Encode (memoryStream);
byte [] target = new byte [] { 0xf, 0xad, 0x34, 0x1b };
Assert.IsTrue (CompareData (memoryStream, target), "'SHRD [EBX*2], ESI, CL' failed.");
}
示例3: SHRD_rmreg16_reg16_CL
public void SHRD_rmreg16_reg16_CL ()
{
// SHRD SP, SI, CL
// SHRD___CL (R16.SP, R16.SI)
MemoryStream memoryStream = new MemoryStream ();
Assembly asm = new Assembly ();
asm.SHRD___CL (R16.SP, R16.SI);
asm.Encode (memoryStream);
byte [] target = new byte [] { 0x66, 0xf, 0xad, 0xf4 };
Assert.IsTrue (CompareData (memoryStream, target), "'SHRD SP, SI, CL' failed.");
}
示例4: SHRD_mem16_reg16_CL
public void SHRD_mem16_reg16_CL ()
{
// SHRD [CS:ESP], DI, CL
// SHRD___CL (new WordMemory(Seg.CS, R32.ESP, null, 0), R16.DI)
MemoryStream memoryStream = new MemoryStream ();
Assembly asm = new Assembly ();
asm.SHRD___CL (new WordMemory (Seg.CS, R32.ESP, null, 0), R16.DI);
asm.Encode (memoryStream);
byte [] target = new byte [] { 0x2e, 0x66, 0xf, 0xad, 0x3c, 0x24 };
Assert.IsTrue (CompareData (memoryStream, target), "'SHRD [CS:ESP], DI, CL' failed.");
}