SETNA() public method

SETNA mem8
public SETNA ( ByteMemory target ) : void
target ByteMemory
return void
Esempio n. 1
0
	public void SETNA_rmreg8 ()
	{
		// SETNA BL
		// SETNA (R8.BL)
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.SETNA (R8.BL);
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0xf, 0x96, 0xc3 };
		Assert.IsTrue (CompareData (memoryStream, target), "'SETNA BL' failed.");
	}
Esempio n. 2
0
	public void SETNA_mem8 ()
	{
		// SETNA Byte [FS:ESP + ECX*1 + 0x12345678]
		// SETNA (new ByteMemory(Seg.FS, R32.ESP, R32.ECX, 0, 0x12345678))
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.SETNA (new ByteMemory (Seg.FS, R32.ESP, R32.ECX, 0, 0x12345678));
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0x64, 0xf, 0x96, 0x84, 0xc, 0x78, 0x56, 0x34, 0x12 };
		Assert.IsTrue (CompareData (memoryStream, target), "'SETNA Byte [FS:ESP + ECX*1 + 0x12345678]' failed.");
	}