Merge pull request #435 from emdel/master

Added assert and set zf to 1
This commit is contained in:
Nguyen Anh Quynh 2016-02-18 22:35:36 +08:00
commit 4ba29a4ed3

View File

@ -159,8 +159,8 @@ class Init(regress.RegressTest):
except UcError as e:
print("ERROR: %s" % e)
# now print out some registers
print(">>> Emulation done. Below is the CPU context")
rdx = mu.reg_read(UC_X86_REG_RDX)
self.assertEqual(rdx, 0xbabe, "RDX contains the wrong value. Eflags modification failed.")
if __name__ == '__main__':