本文整理匯總了C#中SharpOS.AOT.X86.Assembly.SHLD方法的典型用法代碼示例。如果您正苦於以下問題:C# Assembly.SHLD方法的具體用法?C# Assembly.SHLD怎麽用?C# Assembly.SHLD使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類SharpOS.AOT.X86.Assembly
的用法示例。
在下文中一共展示了Assembly.SHLD方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: SHLD_rmreg32_reg32_imm8
public void SHLD_rmreg32_reg32_imm8 ()
{
// SHLD ESP, EBP, 0xb
// SHLD (R32.ESP, R32.EBP, 0xb)
MemoryStream memoryStream = new MemoryStream ();
Assembly asm = new Assembly ();
asm.SHLD (R32.ESP, R32.EBP, 0xb);
asm.Encode (memoryStream);
byte [] target = new byte [] { 0xf, 0xa4, 0xec, 0xb };
Assert.IsTrue (CompareData (memoryStream, target), "'SHLD ESP, EBP, 0xb' failed.");
}
示例2: SHLD_mem32_reg32_imm8
public void SHLD_mem32_reg32_imm8 ()
{
// SHLD [0x12345678], EDI, 0x8
// SHLD (new DWordMemory(null, null, null, 0, 0x12345678), R32.EDI, 0x8)
MemoryStream memoryStream = new MemoryStream ();
Assembly asm = new Assembly ();
asm.SHLD (new DWordMemory (null, null, null, 0, 0x12345678), R32.EDI, 0x8);
asm.Encode (memoryStream);
byte [] target = new byte [] { 0xf, 0xa4, 0x3d, 0x78, 0x56, 0x34, 0x12, 0x8 };
Assert.IsTrue (CompareData (memoryStream, target), "'SHLD [0x12345678], EDI, 0x8' failed.");
}
示例3: SHLD_rmreg16_reg16_imm8
public void SHLD_rmreg16_reg16_imm8 ()
{
// SHLD BX, BP, 0xa
// SHLD (R16.BX, R16.BP, 0xa)
MemoryStream memoryStream = new MemoryStream ();
Assembly asm = new Assembly ();
asm.SHLD (R16.BX, R16.BP, 0xa);
asm.Encode (memoryStream);
byte [] target = new byte [] { 0x66, 0xf, 0xa4, 0xeb, 0xa };
Assert.IsTrue (CompareData (memoryStream, target), "'SHLD BX, BP, 0xa' failed.");
}
示例4: SHLD_mem16_reg16_imm8
public void SHLD_mem16_reg16_imm8 ()
{
// SHLD [ECX + EDI*4 + 0x12345678], DX, 0x4
// SHLD (new WordMemory(null, R32.ECX, R32.EDI, 2, 0x12345678), R16.DX, 0x4)
MemoryStream memoryStream = new MemoryStream ();
Assembly asm = new Assembly ();
asm.SHLD (new WordMemory (null, R32.ECX, R32.EDI, 2, 0x12345678), R16.DX, 0x4);
asm.Encode (memoryStream);
byte [] target = new byte [] { 0x66, 0xf, 0xa4, 0x94, 0xb9, 0x78, 0x56, 0x34, 0x12, 0x4 };
Assert.IsTrue (CompareData (memoryStream, target), "'SHLD [ECX + EDI*4 + 0x12345678], DX, 0x4' failed.");
}