SETNO() public method

SETNO mem8
public SETNO ( ByteMemory target ) : void
target ByteMemory
return void
Esempio n. 1
0
	public void SETNO_rmreg8 ()
	{
		// SETNO AH
		// SETNO (R8.AH)
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.SETNO (R8.AH);
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0xf, 0x91, 0xc4 };
		Assert.IsTrue (CompareData (memoryStream, target), "'SETNO AH' failed.");
	}
Esempio n. 2
0
	public void SETNO_mem8 ()
	{
		// SETNO Byte [ESI*8 + 0x12345678]
		// SETNO (new ByteMemory(null, null, R32.ESI, 3, 0x12345678))
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.SETNO (new ByteMemory (null, null, R32.ESI, 3, 0x12345678));
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0xf, 0x91, 0x4, 0xf5, 0x78, 0x56, 0x34, 0x12 };
		Assert.IsTrue (CompareData (memoryStream, target), "'SETNO Byte [ESI*8 + 0x12345678]' failed.");
	}