SETNE() public method

SETNE mem8
public SETNE ( ByteMemory target ) : void
target ByteMemory
return void
Esempio n. 1
0
	public void SETNE_rmreg8 ()
	{
		// SETNE DH
		// SETNE (R8.DH)
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.SETNE (R8.DH);
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0xf, 0x95, 0xc6 };
		Assert.IsTrue (CompareData (memoryStream, target), "'SETNE DH' failed.");
	}
Esempio n. 2
0
	public void SETNE_mem8 ()
	{
		// SETNE Byte [DS:0x12345678]
		// SETNE (new ByteMemory(Seg.DS, null, null, 0, 0x12345678))
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.SETNE (new ByteMemory (Seg.DS, null, null, 0, 0x12345678));
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0x3e, 0xf, 0x95, 0x5, 0x78, 0x56, 0x34, 0x12 };
		Assert.IsTrue (CompareData (memoryStream, target), "'SETNE Byte [DS:0x12345678]' failed.");
	}