SETZ() public method

SETZ mem8
public SETZ ( ByteMemory target ) : void
target ByteMemory
return void
Esempio n. 1
0
	public void SETZ_rmreg8 ()
	{
		// SETZ CH
		// SETZ (R8.CH)
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.SETZ (R8.CH);
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0xf, 0x94, 0xc5 };
		Assert.IsTrue (CompareData (memoryStream, target), "'SETZ CH' failed.");
	}
Esempio n. 2
0
	public void SETZ_mem8 ()
	{
		// SETZ Byte [0x12345678]
		// SETZ (new ByteMemory(null, null, null, 0, 0x12345678))
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.SETZ (new ByteMemory (null, null, null, 0, 0x12345678));
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0xf, 0x94, 0x5, 0x78, 0x56, 0x34, 0x12 };
		Assert.IsTrue (CompareData (memoryStream, target), "'SETZ Byte [0x12345678]' failed.");
	}