JNZ() public method

JNZ imm8
public JNZ ( Byte target ) : void
target Byte
return void
Esempio n. 1
0
	public void JNZ_NEAR_imm ()
	{
		// JNZ 0x8217208
		// JNZ (0x8217208)
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.JNZ (0x8217208);
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0xf, 0x85, 0x2, 0x72, 0x21, 0x8 };
		Assert.IsTrue (CompareData (memoryStream, target), "'JNZ 0x8217208' failed.");
	}
Esempio n. 2
0
	public void JNZ_imm8 ()
	{
		// JNZ_imm8: JNZ SHORT JNZ_imm8
		// JNZ (0x00)
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.JNZ (0x00);
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0x75, 0xfe };
		Assert.IsTrue (CompareData (memoryStream, target), "'JNZ_imm8: JNZ SHORT JNZ_imm8' failed.");
	}