public void SETNP_rmreg8 () { // SETNP BH // SETNP (R8.BH) MemoryStream memoryStream = new MemoryStream (); Assembly asm = new Assembly (); asm.SETNP (R8.BH); asm.Encode (memoryStream); byte [] target = new byte [] { 0xf, 0x9b, 0xc7 }; Assert.IsTrue (CompareData (memoryStream, target), "'SETNP BH' failed."); }
public void SETNP_mem8 () { // SETNP Byte [ES:EBP*1 + 0x12345678] // SETNP (new ByteMemory(Seg.ES, null, R32.EBP, 0, 0x12345678)) MemoryStream memoryStream = new MemoryStream (); Assembly asm = new Assembly (); asm.SETNP (new ByteMemory (Seg.ES, null, R32.EBP, 0, 0x12345678)); asm.Encode (memoryStream); byte [] target = new byte [] { 0x26, 0xf, 0x9b, 0x85, 0x78, 0x56, 0x34, 0x12 }; Assert.IsTrue (CompareData (memoryStream, target), "'SETNP Byte [ES:EBP*1 + 0x12345678]' failed."); }