SETNB() public method

SETNB mem8
public SETNB ( ByteMemory target ) : void
target ByteMemory
return void
Beispiel #1
0
	public void SETNB_rmreg8 ()
	{
		// SETNB DH
		// SETNB (R8.DH)
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.SETNB (R8.DH);
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0xf, 0x93, 0xc6 };
		Assert.IsTrue (CompareData (memoryStream, target), "'SETNB DH' failed.");
	}
Beispiel #2
0
	public void SETNB_mem8 ()
	{
		// SETNB Byte [0x12345678]
		// SETNB (new ByteMemory(null, null, null, 0, 0x12345678))
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.SETNB (new ByteMemory (null, null, null, 0, 0x12345678));
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0xf, 0x93, 0x5, 0x78, 0x56, 0x34, 0x12 };
		Assert.IsTrue (CompareData (memoryStream, target), "'SETNB Byte [0x12345678]' failed.");
	}