JA() public method

JA imm8
public JA ( Byte target ) : void
target Byte
return void
Example #1
0
	public void JA_NEAR_imm ()
	{
		// JA 0xba87a5a
		// JA (0xba87a5a)
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.JA (0xba87a5a);
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0xf, 0x87, 0x54, 0x7a, 0xa8, 0xb };
		Assert.IsTrue (CompareData (memoryStream, target), "'JA 0xba87a5a' failed.");
	}
Example #2
0
	public void JA_imm8 ()
	{
		// JA_imm8: JA SHORT JA_imm8
		// JA (0x00)
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.JA (0x00);
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0x77, 0xfe };
		Assert.IsTrue (CompareData (memoryStream, target), "'JA_imm8: JA SHORT JA_imm8' failed.");
	}