本文整理匯總了C#中SharpOS.AOT.X86.Assembly.MOV方法的典型用法代碼示例。如果您正苦於以下問題:C# Assembly.MOV方法的具體用法?C# Assembly.MOV怎麽用?C# Assembly.MOV使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類SharpOS.AOT.X86.Assembly
的用法示例。
在下文中一共展示了Assembly.MOV方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: MOV_segreg_rmreg16
public void MOV_segreg_rmreg16 ()
{
// MOV DS, DI
// MOV (Seg.DS, R16.DI)
MemoryStream memoryStream = new MemoryStream ();
Assembly asm = new Assembly ();
asm.MOV (Seg.DS, R16.DI);
asm.Encode (memoryStream);
byte [] target = new byte [] { 0x8e, 0xdf };
Assert.IsTrue (CompareData (memoryStream, target), "'MOV DS, DI' failed.");
}
示例2: MOV_mem16_reg16
public void MOV_mem16_reg16 ()
{
// MOV [CS:ESP + EBX*8], AX
// MOV (new WordMemory(Seg.CS, R32.ESP, R32.EBX, 3), R16.AX)
MemoryStream memoryStream = new MemoryStream ();
Assembly asm = new Assembly ();
asm.MOV (new WordMemory (Seg.CS, R32.ESP, R32.EBX, 3), R16.AX);
asm.Encode (memoryStream);
byte [] target = new byte [] { 0x2e, 0x66, 0x89, 0x4, 0xdc };
Assert.IsTrue (CompareData (memoryStream, target), "'MOV [CS:ESP + EBX*8], AX' failed.");
}
示例3: MOV_rmreg16_reg16
public void MOV_rmreg16_reg16 ()
{
// MOV SP, SP
// MOV (R16.SP, R16.SP)
MemoryStream memoryStream = new MemoryStream ();
Assembly asm = new Assembly ();
asm.MOV (R16.SP, R16.SP);
asm.Encode (memoryStream);
byte [] target = new byte [] { 0x66, 0x89, 0xe4 };
Assert.IsTrue (CompareData (memoryStream, target), "'MOV SP, SP' failed.");
}
示例4: MOV_rmreg16_segreg
public void MOV_rmreg16_segreg ()
{
// MOV DX, GS
// MOV (R16.DX, Seg.GS)
MemoryStream memoryStream = new MemoryStream ();
Assembly asm = new Assembly ();
asm.MOV (R16.DX, Seg.GS);
asm.Encode (memoryStream);
byte [] target = new byte [] { 0x66, 0x8c, 0xea };
Assert.IsTrue (CompareData (memoryStream, target), "'MOV DX, GS' failed.");
}
示例5: MOV_CR0234_reg32
public void MOV_CR0234_reg32 ()
{
// MOV CR0, ECX
// MOV (CR.CR0, R32.ECX)
MemoryStream memoryStream = new MemoryStream ();
Assembly asm = new Assembly ();
asm.MOV (CR.CR0, R32.ECX);
asm.Encode (memoryStream);
byte [] target = new byte [] { 0xf, 0x22, 0xc1 };
Assert.IsTrue (CompareData (memoryStream, target), "'MOV CR0, ECX' failed.");
}
示例6: MOV_TR34567_reg32
public void MOV_TR34567_reg32 ()
{
// MOV TR5, EBP
// MOV (TR.TR5, R32.EBP)
MemoryStream memoryStream = new MemoryStream ();
Assembly asm = new Assembly ();
asm.MOV (TR.TR5, R32.EBP);
asm.Encode (memoryStream);
byte [] target = new byte [] { 0xf, 0x26, 0xed };
Assert.IsTrue (CompareData (memoryStream, target), "'MOV TR5, EBP' failed.");
}
示例7: MOV_reg16_imm16
public void MOV_reg16_imm16 ()
{
// MOV BX, 0x35d
// MOV (R16.BX, 0x35d)
MemoryStream memoryStream = new MemoryStream ();
Assembly asm = new Assembly ();
asm.MOV (R16.BX, 0x35d);
asm.Encode (memoryStream);
byte [] target = new byte [] { 0x66, 0xbb, 0x5d, 0x3 };
Assert.IsTrue (CompareData (memoryStream, target), "'MOV BX, 0x35d' failed.");
}
示例8: MOV_reg32_DR012367
public void MOV_reg32_DR012367 ()
{
// MOV ECX, DR4
// MOV (R32.ECX, DR.DR4)
MemoryStream memoryStream = new MemoryStream ();
Assembly asm = new Assembly ();
asm.MOV (R32.ECX, DR.DR4);
asm.Encode (memoryStream);
byte [] target = new byte [] { 0xf, 0x21, 0xe1 };
Assert.IsTrue (CompareData (memoryStream, target), "'MOV ECX, DR4' failed.");
}
示例9: MOV_reg32_mem32
public void MOV_reg32_mem32 ()
{
// MOV ESI, [EBP*2]
// MOV (R32.ESI, new DWordMemory(null, null, R32.EBP, 1))
MemoryStream memoryStream = new MemoryStream ();
Assembly asm = new Assembly ();
asm.MOV (R32.ESI, new DWordMemory (null, null, R32.EBP, 1));
asm.Encode (memoryStream);
byte [] target = new byte [] { 0x8b, 0x74, 0x2d, 0x0 };
Assert.IsTrue (CompareData (memoryStream, target), "'MOV ESI, [EBP*2]' failed.");
}
示例10: MOV_reg8_imm8
public void MOV_reg8_imm8 ()
{
// MOV BL, 0x2
// MOV (R8.BL, 0x2)
MemoryStream memoryStream = new MemoryStream ();
Assembly asm = new Assembly ();
asm.MOV (R8.BL, 0x2);
asm.Encode (memoryStream);
byte [] target = new byte [] { 0xb3, 0x2 };
Assert.IsTrue (CompareData (memoryStream, target), "'MOV BL, 0x2' failed.");
}
示例11: MOV_reg16_mem16
public void MOV_reg16_mem16 ()
{
// MOV CX, [EBP]
// MOV (R16.CX, new WordMemory(null, R32.EBP, null, 0))
MemoryStream memoryStream = new MemoryStream ();
Assembly asm = new Assembly ();
asm.MOV (R16.CX, new WordMemory (null, R32.EBP, null, 0));
asm.Encode (memoryStream);
byte [] target = new byte [] { 0x66, 0x8b, 0x4d, 0x0 };
Assert.IsTrue (CompareData (memoryStream, target), "'MOV CX, [EBP]' failed.");
}
示例12: MOV_reg8_mem8
public void MOV_reg8_mem8 ()
{
// MOV BH, [EDX*8]
// MOV (R8.BH, new ByteMemory(null, null, R32.EDX, 3))
MemoryStream memoryStream = new MemoryStream ();
Assembly asm = new Assembly ();
asm.MOV (R8.BH, new ByteMemory (null, null, R32.EDX, 3));
asm.Encode (memoryStream);
byte [] target = new byte [] { 0x8a, 0x3c, 0xd5, 0x0, 0x0, 0x0, 0x0 };
Assert.IsTrue (CompareData (memoryStream, target), "'MOV BH, [EDX*8]' failed.");
}
示例13: MOV_mem32_reg32
public void MOV_mem32_reg32 ()
{
// MOV [EDI*2], ECX
// MOV (new DWordMemory(null, null, R32.EDI, 1), R32.ECX)
MemoryStream memoryStream = new MemoryStream ();
Assembly asm = new Assembly ();
asm.MOV (new DWordMemory (null, null, R32.EDI, 1), R32.ECX);
asm.Encode (memoryStream);
byte [] target = new byte [] { 0x89, 0xc, 0x3f };
Assert.IsTrue (CompareData (memoryStream, target), "'MOV [EDI*2], ECX' failed.");
}
示例14: MOV_segreg_mem32
public void MOV_segreg_mem32 ()
{
// MOV FS, [SS:EDX + EDI*8 + 0x12345678]
// MOV (Seg.FS, new DWordMemory(Seg.SS, R32.EDX, R32.EDI, 3, 0x12345678))
MemoryStream memoryStream = new MemoryStream ();
Assembly asm = new Assembly ();
asm.MOV (Seg.FS, new DWordMemory (Seg.SS, R32.EDX, R32.EDI, 3, 0x12345678));
asm.Encode (memoryStream);
byte [] target = new byte [] { 0x36, 0x8e, 0xa4, 0xfa, 0x78, 0x56, 0x34, 0x12 };
Assert.IsTrue (CompareData (memoryStream, target), "'MOV FS, [SS:EDX + EDI*8 + 0x12345678]' failed.");
}
示例15: MOV_reg32_imm32
public void MOV_reg32_imm32 ()
{
// MOV EDI, 0x256dd83
// MOV (R32.EDI, 0x256dd83)
MemoryStream memoryStream = new MemoryStream ();
Assembly asm = new Assembly ();
asm.MOV (R32.EDI, 0x256dd83);
asm.Encode (memoryStream);
byte [] target = new byte [] { 0xbf, 0x83, 0xdd, 0x56, 0x2 };
Assert.IsTrue (CompareData (memoryStream, target), "'MOV EDI, 0x256dd83' failed.");
}