SETS() public method

SETS mem8
public SETS ( ByteMemory target ) : void
target ByteMemory
return void
Esempio n. 1
0
	public void SETS_rmreg8 ()
	{
		// SETS BH
		// SETS (R8.BH)
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.SETS (R8.BH);
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0xf, 0x98, 0xc7 };
		Assert.IsTrue (CompareData (memoryStream, target), "'SETS BH' failed.");
	}
Esempio n. 2
0
	public void SETS_mem8 ()
	{
		// SETS Byte [EBP*8]
		// SETS (new ByteMemory(null, null, R32.EBP, 3))
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.SETS (new ByteMemory (null, null, R32.EBP, 3));
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0xf, 0x98, 0x4, 0xed, 0x0, 0x0, 0x0, 0x0 };
		Assert.IsTrue (CompareData (memoryStream, target), "'SETS Byte [EBP*8]' failed.");
	}