SETNZ() public method

SETNZ mem8
public SETNZ ( ByteMemory target ) : void
target ByteMemory
return void
Esempio n. 1
0
	public void SETNZ_rmreg8 ()
	{
		// SETNZ DH
		// SETNZ (R8.DH)
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.SETNZ (R8.DH);
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0xf, 0x95, 0xc6 };
		Assert.IsTrue (CompareData (memoryStream, target), "'SETNZ DH' failed.");
	}
Esempio n. 2
0
	public void SETNZ_mem8 ()
	{
		// SETNZ Byte [ESI + 0x12345678]
		// SETNZ (new ByteMemory(null, R32.ESI, null, 0, 0x12345678))
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.SETNZ (new ByteMemory (null, R32.ESI, null, 0, 0x12345678));
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0xf, 0x95, 0x86, 0x78, 0x56, 0x34, 0x12 };
		Assert.IsTrue (CompareData (memoryStream, target), "'SETNZ Byte [ESI + 0x12345678]' failed.");
	}