SETNBE() public method

SETNBE mem8
public SETNBE ( ByteMemory target ) : void
target ByteMemory
return void
コード例 #1
0
ファイル: X86.cs プロジェクト: sharpos/SharpOS
	public void SETNBE_rmreg8 ()
	{
		// SETNBE AL
		// SETNBE (R8.AL)
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.SETNBE (R8.AL);
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0xf, 0x97, 0xc0 };
		Assert.IsTrue (CompareData (memoryStream, target), "'SETNBE AL' failed.");
	}
コード例 #2
0
ファイル: X86.cs プロジェクト: sharpos/SharpOS
	public void SETNBE_mem8 ()
	{
		// SETNBE Byte [SS:EDI*1 + 0x12345678]
		// SETNBE (new ByteMemory(Seg.SS, null, R32.EDI, 0, 0x12345678))
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.SETNBE (new ByteMemory (Seg.SS, null, R32.EDI, 0, 0x12345678));
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0x36, 0xf, 0x97, 0x87, 0x78, 0x56, 0x34, 0x12 };
		Assert.IsTrue (CompareData (memoryStream, target), "'SETNBE Byte [SS:EDI*1 + 0x12345678]' failed.");
	}