SETP() 공개 메소드

SETP mem8
public SETP ( ByteMemory target ) : void
target ByteMemory
리턴 void
예제 #1
0
파일: X86.cs 프로젝트: sharpos/SharpOS
	public void SETP_rmreg8 ()
	{
		// SETP CH
		// SETP (R8.CH)
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.SETP (R8.CH);
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0xf, 0x9a, 0xc5 };
		Assert.IsTrue (CompareData (memoryStream, target), "'SETP CH' failed.");
	}
예제 #2
0
파일: X86.cs 프로젝트: sharpos/SharpOS
	public void SETP_mem8 ()
	{
		// SETP Byte [CS:ESI*8]
		// SETP (new ByteMemory(Seg.CS, null, R32.ESI, 3))
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.SETP (new ByteMemory (Seg.CS, null, R32.ESI, 3));
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0x2e, 0xf, 0x9a, 0x4, 0xf5, 0x0, 0x0, 0x0, 0x0 };
		Assert.IsTrue (CompareData (memoryStream, target), "'SETP Byte [CS:ESI*8]' failed.");
	}