JNA() 공개 메소드

JNA imm8
public JNA ( Byte target ) : void
target Byte
리턴 void
예제 #1
0
파일: X86.cs 프로젝트: sharpos/SharpOS
	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.");
	}
예제 #2
0
파일: X86.cs 프로젝트: sharpos/SharpOS
	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.");
	}