JP() public method

JP imm8
public JP ( Byte target ) : void
target Byte
return void
Esempio n. 1
0
	public void JP_NEAR_imm ()
	{
		// JP 0x4cf60f3
		// JP (0x4cf60f3)
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.JP (0x4cf60f3);
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0xf, 0x8a, 0xed, 0x60, 0xcf, 0x4 };
		Assert.IsTrue (CompareData (memoryStream, target), "'JP 0x4cf60f3' failed.");
	}
Esempio n. 2
0
	public void JP_imm8 ()
	{
		// JP_imm8: JP SHORT JP_imm8
		// JP (0x00)
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.JP (0x00);
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0x7a, 0xfe };
		Assert.IsTrue (CompareData (memoryStream, target), "'JP_imm8: JP SHORT JP_imm8' failed.");
	}