SETNG() public method

SETNG mem8
public SETNG ( ByteMemory target ) : void
target ByteMemory
return void
Example #1
0
	public void SETNG_rmreg8 ()
	{
		// SETNG CH
		// SETNG (R8.CH)
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.SETNG (R8.CH);
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0xf, 0x9e, 0xc5 };
		Assert.IsTrue (CompareData (memoryStream, target), "'SETNG CH' failed.");
	}
Example #2
0
	public void SETNG_mem8 ()
	{
		// SETNG Byte [FS:ESI]
		// SETNG (new ByteMemory(Seg.FS, R32.ESI, null, 0))
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.SETNG (new ByteMemory (Seg.FS, R32.ESI, null, 0));
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0x64, 0xf, 0x9e, 0x6 };
		Assert.IsTrue (CompareData (memoryStream, target), "'SETNG Byte [FS:ESI]' failed.");
	}