本文整理匯總了C#中SharpOS.AOT.X86.Assembly.MOVZX方法的典型用法代碼示例。如果您正苦於以下問題:C# Assembly.MOVZX方法的具體用法?C# Assembly.MOVZX怎麽用?C# Assembly.MOVZX使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類SharpOS.AOT.X86.Assembly
的用法示例。
在下文中一共展示了Assembly.MOVZX方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: MOVZX_reg32_rmreg16
public void MOVZX_reg32_rmreg16 ()
{
// MOVZX EDI, SI
// MOVZX (R32.EDI, R16.SI)
MemoryStream memoryStream = new MemoryStream ();
Assembly asm = new Assembly ();
asm.MOVZX (R32.EDI, R16.SI);
asm.Encode (memoryStream);
byte [] target = new byte [] { 0xf, 0xb7, 0xfe };
Assert.IsTrue (CompareData (memoryStream, target), "'MOVZX EDI, SI' failed.");
}
示例2: MOVZX_reg32_rmreg8
public void MOVZX_reg32_rmreg8 ()
{
// MOVZX EAX, CH
// MOVZX (R32.EAX, R8.CH)
MemoryStream memoryStream = new MemoryStream ();
Assembly asm = new Assembly ();
asm.MOVZX (R32.EAX, R8.CH);
asm.Encode (memoryStream);
byte [] target = new byte [] { 0xf, 0xb6, 0xc5 };
Assert.IsTrue (CompareData (memoryStream, target), "'MOVZX EAX, CH' failed.");
}
示例3: MOVZX_reg32_mem8
public void MOVZX_reg32_mem8 ()
{
// MOVZX ECX, Byte [ES:EDI + EAX*8]
// MOVZX (R32.ECX, new ByteMemory(Seg.ES, R32.EDI, R32.EAX, 3))
MemoryStream memoryStream = new MemoryStream ();
Assembly asm = new Assembly ();
asm.MOVZX (R32.ECX, new ByteMemory (Seg.ES, R32.EDI, R32.EAX, 3));
asm.Encode (memoryStream);
byte [] target = new byte [] { 0x26, 0xf, 0xb6, 0xc, 0xc7 };
Assert.IsTrue (CompareData (memoryStream, target), "'MOVZX ECX, Byte [ES:EDI + EAX*8]' failed.");
}
示例4: MOVZX_reg32_mem16
public void MOVZX_reg32_mem16 ()
{
// MOVZX ECX, Word [EAX + EDX*8]
// MOVZX (R32.ECX, new WordMemory(null, R32.EAX, R32.EDX, 3))
MemoryStream memoryStream = new MemoryStream ();
Assembly asm = new Assembly ();
asm.MOVZX (R32.ECX, new WordMemory (null, R32.EAX, R32.EDX, 3));
asm.Encode (memoryStream);
byte [] target = new byte [] { 0xf, 0xb7, 0xc, 0xd0 };
Assert.IsTrue (CompareData (memoryStream, target), "'MOVZX ECX, Word [EAX + EDX*8]' failed.");
}
示例5: MOVZX_reg16_mem8
public void MOVZX_reg16_mem8 ()
{
// MOVZX CX, Byte [ECX*1]
// MOVZX (R16.CX, new ByteMemory(null, null, R32.ECX, 0))
MemoryStream memoryStream = new MemoryStream ();
Assembly asm = new Assembly ();
asm.MOVZX (R16.CX, new ByteMemory (null, null, R32.ECX, 0));
asm.Encode (memoryStream);
byte [] target = new byte [] { 0x66, 0xf, 0xb6, 0x9 };
Assert.IsTrue (CompareData (memoryStream, target), "'MOVZX CX, Byte [ECX*1]' failed.");
}