當前位置: 首頁>>代碼示例>>C#>>正文


C# Assembly.JMP方法代碼示例

本文整理匯總了C#中SharpOS.AOT.X86.Assembly.JMP方法的典型用法代碼示例。如果您正苦於以下問題:C# Assembly.JMP方法的具體用法?C# Assembly.JMP怎麽用?C# Assembly.JMP使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在SharpOS.AOT.X86.Assembly的用法示例。


在下文中一共展示了Assembly.JMP方法的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: JMP_rmreg32

	public void JMP_rmreg32 ()
	{
		// JMP ESP
		// JMP (R32.ESP)
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.JMP (R32.ESP);
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0xff, 0xe4 };
		Assert.IsTrue (CompareData (memoryStream, target), "'JMP ESP' failed.");
	}
開發者ID:sharpos,項目名稱:SharpOS,代碼行數:11,代碼來源:X86.cs

示例2: JMP_mem32

	public void JMP_mem32 ()
	{
		// JMP DWord [FS:ECX*2]
		// JMP (new DWordMemory(Seg.FS, null, R32.ECX, 1))
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.JMP (new DWordMemory (Seg.FS, null, R32.ECX, 1));
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0x64, 0xff, 0x24, 0x9 };
		Assert.IsTrue (CompareData (memoryStream, target), "'JMP DWord [FS:ECX*2]' failed.");
	}
開發者ID:sharpos,項目名稱:SharpOS,代碼行數:11,代碼來源:X86.cs

示例3: JMP_rmreg16

	public void JMP_rmreg16 ()
	{
		// JMP SI
		// JMP (R16.SI)
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.JMP (R16.SI);
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0x66, 0xff, 0xe6 };
		Assert.IsTrue (CompareData (memoryStream, target), "'JMP SI' failed.");
	}
開發者ID:sharpos,項目名稱:SharpOS,代碼行數:11,代碼來源:X86.cs

示例4: JMP_mem16

	public void JMP_mem16 ()
	{
		// JMP Word [EAX + EDX*1]
		// JMP (new WordMemory(null, R32.EAX, R32.EDX, 0))
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.JMP (new WordMemory (null, R32.EAX, R32.EDX, 0));
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0x66, 0xff, 0x24, 0x10 };
		Assert.IsTrue (CompareData (memoryStream, target), "'JMP Word [EAX + EDX*1]' failed.");
	}
開發者ID:sharpos,項目名稱:SharpOS,代碼行數:11,代碼來源:X86.cs

示例5: JMP_imm16_imm32

	public void JMP_imm16_imm32 ()
	{
		// JMP 0xaed: 0xb2bdff6
		// JMP (0xaed, 0xb2bdff6)
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.JMP (0xaed, 0xb2bdff6);
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0xea, 0xf6, 0xdf, 0x2b, 0xb, 0xed, 0xa };
		Assert.IsTrue (CompareData (memoryStream, target), "'JMP 0xaed: 0xb2bdff6' failed.");
	}
開發者ID:sharpos,項目名稱:SharpOS,代碼行數:11,代碼來源:X86.cs

示例6: JMP_imm16_imm16

	public void JMP_imm16_imm16 ()
	{
		// JMP WORD 0x319: 0xceb
		// JMP (0x319, 0xceb)
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.JMP (0x319, 0xceb);
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0x66, 0xea, 0xeb, 0xc, 0x19, 0x3 };
		Assert.IsTrue (CompareData (memoryStream, target), "'JMP WORD 0x319: 0xceb' failed.");
	}
開發者ID:sharpos,項目名稱:SharpOS,代碼行數:11,代碼來源:X86.cs

示例7: JMP_imm8

	public void JMP_imm8 ()
	{
		// JMP_imm8: JMP SHORT JMP_imm8
		// JMP (0x00)
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.JMP (0x00);
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0xeb, 0xfe };
		Assert.IsTrue (CompareData (memoryStream, target), "'JMP_imm8: JMP SHORT JMP_imm8' failed.");
	}
開發者ID:sharpos,項目名稱:SharpOS,代碼行數:11,代碼來源:X86.cs

示例8: JMP_imm

	public void JMP_imm ()
	{
		// JMP 0x50b4d29
		// JMP (0x50b4d29)
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.JMP (0x50b4d29);
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0xe9, 0x24, 0x4d, 0xb, 0x5 };
		Assert.IsTrue (CompareData (memoryStream, target), "'JMP 0x50b4d29' failed.");
	}
開發者ID:sharpos,項目名稱:SharpOS,代碼行數:11,代碼來源:X86.cs


注:本文中的SharpOS.AOT.X86.Assembly.JMP方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。