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


C# Assembly.SBB方法代碼示例

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


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

示例1: SBB_rmreg32_imm32

	public void SBB_rmreg32_imm32 ()
	{
		// SBB EBX, 0xbf38241
		// SBB (R32.EBX, 0xbf38241)
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.SBB (R32.EBX, 0xbf38241);
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0x81, 0xdb, 0x41, 0x82, 0xf3, 0xb };
		Assert.IsTrue (CompareData (memoryStream, target), "'SBB EBX, 0xbf38241' failed.");
	}
開發者ID:sharpos,項目名稱:SharpOS,代碼行數:11,代碼來源:X86.cs

示例2: SBB_rmreg32_reg32

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

示例3: SBB_rmreg8_imm8

	public void SBB_rmreg8_imm8 ()
	{
		// SBB DH, 0x0
		// SBB (R8.DH, 0x0)
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.SBB (R8.DH, 0x0);
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0x80, 0xde, 0x0 };
		Assert.IsTrue (CompareData (memoryStream, target), "'SBB DH, 0x0' failed.");
	}
開發者ID:sharpos,項目名稱:SharpOS,代碼行數:11,代碼來源:X86.cs

示例4: SBB_rmreg8_reg8

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

示例5: SBB_rmreg16_reg16

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

示例6: SBB_mem16_reg16

	public void SBB_mem16_reg16 ()
	{
		// SBB [ESI*1 + 0x12345678], SP
		// SBB (new WordMemory(null, null, R32.ESI, 0, 0x12345678), R16.SP)
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.SBB (new WordMemory (null, null, R32.ESI, 0, 0x12345678), R16.SP);
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0x66, 0x19, 0xa6, 0x78, 0x56, 0x34, 0x12 };
		Assert.IsTrue (CompareData (memoryStream, target), "'SBB [ESI*1 + 0x12345678], SP' failed.");
	}
開發者ID:sharpos,項目名稱:SharpOS,代碼行數:11,代碼來源:X86.cs

示例7: SBB_mem32_imm8

	public void SBB_mem32_imm8 ()
	{
		// SBB DWord [EDX + EAX*4 + 0x12345678], 0xe
		// SBB (new DWordMemory(null, R32.EDX, R32.EAX, 2, 0x12345678), 0xe)
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.SBB (new DWordMemory (null, R32.EDX, R32.EAX, 2, 0x12345678), 0xe);
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0x83, 0x9c, 0x82, 0x78, 0x56, 0x34, 0x12, 0xe };
		Assert.IsTrue (CompareData (memoryStream, target), "'SBB DWord [EDX + EAX*4 + 0x12345678], 0xe' failed.");
	}
開發者ID:sharpos,項目名稱:SharpOS,代碼行數:11,代碼來源:X86.cs

示例8: SBB_mem16_imm16

	public void SBB_mem16_imm16 ()
	{
		// SBB Word [ESP + EBX*2], 0xc71
		// SBB (new WordMemory(null, R32.ESP, R32.EBX, 1), 0xc71)
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.SBB (new WordMemory (null, R32.ESP, R32.EBX, 1), 0xc71);
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0x66, 0x81, 0x1c, 0x5c, 0x71, 0xc };
		Assert.IsTrue (CompareData (memoryStream, target), "'SBB Word [ESP + EBX*2], 0xc71' failed.");
	}
開發者ID:sharpos,項目名稱:SharpOS,代碼行數:11,代碼來源:X86.cs

示例9: SBB_mem32_imm32

	public void SBB_mem32_imm32 ()
	{
		// SBB DWord [0x12345678], 0x7072650
		// SBB (new DWordMemory(null, null, null, 0, 0x12345678), 0x7072650)
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.SBB (new DWordMemory (null, null, null, 0, 0x12345678), 0x7072650);
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0x81, 0x1d, 0x78, 0x56, 0x34, 0x12, 0x50, 0x26, 0x7, 0x7 };
		Assert.IsTrue (CompareData (memoryStream, target), "'SBB DWord [0x12345678], 0x7072650' failed.");
	}
開發者ID:sharpos,項目名稱:SharpOS,代碼行數:11,代碼來源:X86.cs

示例10: SBB_reg32_mem32

	public void SBB_reg32_mem32 ()
	{
		// SBB ESP, [DS:0x12345678]
		// SBB (R32.ESP, new DWordMemory(Seg.DS, null, null, 0, 0x12345678))
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.SBB (R32.ESP, new DWordMemory (Seg.DS, null, null, 0, 0x12345678));
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0x3e, 0x1b, 0x25, 0x78, 0x56, 0x34, 0x12 };
		Assert.IsTrue (CompareData (memoryStream, target), "'SBB ESP, [DS:0x12345678]' failed.");
	}
開發者ID:sharpos,項目名稱:SharpOS,代碼行數:11,代碼來源:X86.cs

示例11: SBB_mem8_imm8

	public void SBB_mem8_imm8 ()
	{
		// SBB Byte [0x12345678], 0xb
		// SBB (new ByteMemory(null, null, null, 0, 0x12345678), 0xb)
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.SBB (new ByteMemory (null, null, null, 0, 0x12345678), 0xb);
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0x80, 0x1d, 0x78, 0x56, 0x34, 0x12, 0xb };
		Assert.IsTrue (CompareData (memoryStream, target), "'SBB Byte [0x12345678], 0xb' failed.");
	}
開發者ID:sharpos,項目名稱:SharpOS,代碼行數:11,代碼來源:X86.cs

示例12: SBB_reg16_mem16

	public void SBB_reg16_mem16 ()
	{
		// SBB BX, [ES:0x12345678]
		// SBB (R16.BX, new WordMemory(Seg.ES, null, null, 0, 0x12345678))
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.SBB (R16.BX, new WordMemory (Seg.ES, null, null, 0, 0x12345678));
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0x26, 0x66, 0x1b, 0x1d, 0x78, 0x56, 0x34, 0x12 };
		Assert.IsTrue (CompareData (memoryStream, target), "'SBB BX, [ES:0x12345678]' failed.");
	}
開發者ID:sharpos,項目名稱:SharpOS,代碼行數:11,代碼來源:X86.cs

示例13: SBB_reg8_mem8

	public void SBB_reg8_mem8 ()
	{
		// SBB BH, [EDX + EDI*8 + 0x12345678]
		// SBB (R8.BH, new ByteMemory(null, R32.EDX, R32.EDI, 3, 0x12345678))
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.SBB (R8.BH, new ByteMemory (null, R32.EDX, R32.EDI, 3, 0x12345678));
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0x1a, 0xbc, 0xfa, 0x78, 0x56, 0x34, 0x12 };
		Assert.IsTrue (CompareData (memoryStream, target), "'SBB BH, [EDX + EDI*8 + 0x12345678]' failed.");
	}
開發者ID:sharpos,項目名稱:SharpOS,代碼行數:11,代碼來源:X86.cs

示例14: SBB_mem32_reg32

	public void SBB_mem32_reg32 ()
	{
		// SBB [ESI + EBX*8 + 0x12345678], EBP
		// SBB (new DWordMemory(null, R32.ESI, R32.EBX, 3, 0x12345678), R32.EBP)
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.SBB (new DWordMemory (null, R32.ESI, R32.EBX, 3, 0x12345678), R32.EBP);
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0x19, 0xac, 0xde, 0x78, 0x56, 0x34, 0x12 };
		Assert.IsTrue (CompareData (memoryStream, target), "'SBB [ESI + EBX*8 + 0x12345678], EBP' failed.");
	}
開發者ID:sharpos,項目名稱:SharpOS,代碼行數:11,代碼來源:X86.cs

示例15: SBB_rmreg16_imm8

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


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