SETC() public method

SETC mem8
public SETC ( ByteMemory target ) : void
target ByteMemory
return void
Example #1
0
	public void SETC_rmreg8 ()
	{
		// SETC AH
		// SETC (R8.AH)
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.SETC (R8.AH);
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0xf, 0x92, 0xc4 };
		Assert.IsTrue (CompareData (memoryStream, target), "'SETC AH' failed.");
	}
Example #2
0
	public void SETC_mem8 ()
	{
		// SETC Byte [DS:ESP + 0x12345678]
		// SETC (new ByteMemory(Seg.DS, R32.ESP, null, 0, 0x12345678))
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.SETC (new ByteMemory (Seg.DS, R32.ESP, null, 0, 0x12345678));
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0x3e, 0xf, 0x92, 0x84, 0x24, 0x78, 0x56, 0x34, 0x12 };
		Assert.IsTrue (CompareData (memoryStream, target), "'SETC Byte [DS:ESP + 0x12345678]' failed.");
	}