JNA() public method

JNA imm8
public JNA ( Byte target ) : void
target Byte
return void
Example #1
0
	public void JNA_NEAR_imm ()
	{
		// JNA 0x537e20a
		// JNA (0x537e20a)
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.JNA (0x537e20a);
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0xf, 0x86, 0x4, 0xe2, 0x37, 0x5 };
		Assert.IsTrue (CompareData (memoryStream, target), "'JNA 0x537e20a' failed.");
	}
Example #2
0
	public void JNA_imm8 ()
	{
		// JNA_imm8: JNA SHORT JNA_imm8
		// JNA (0x00)
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.JNA (0x00);
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0x76, 0xfe };
		Assert.IsTrue (CompareData (memoryStream, target), "'JNA_imm8: JNA SHORT JNA_imm8' failed.");
	}