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