SETB() public method

SETB mem8
public SETB ( ByteMemory target ) : void
target ByteMemory
return void
Esempio n. 1
0
	public void SETB_rmreg8 ()
	{
		// SETB DL
		// SETB (R8.DL)
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.SETB (R8.DL);
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0xf, 0x92, 0xc2 };
		Assert.IsTrue (CompareData (memoryStream, target), "'SETB DL' failed.");
	}
Esempio n. 2
0
	public void SETB_mem8 ()
	{
		// SETB Byte [EBX + 0x12345678]
		// SETB (new ByteMemory(null, R32.EBX, null, 0, 0x12345678))
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.SETB (new ByteMemory (null, R32.EBX, null, 0, 0x12345678));
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0xf, 0x92, 0x83, 0x78, 0x56, 0x34, 0x12 };
		Assert.IsTrue (CompareData (memoryStream, target), "'SETB Byte [EBX + 0x12345678]' failed.");
	}