MultipleInst now know how to handle Prefix

This commit is contained in:
Clement Rouault
2015-09-22 10:24:41 +02:00
parent 32b12daa8f
commit da521908ed
4 changed files with 18 additions and 3 deletions
+8
View File
@@ -117,3 +117,11 @@ TestInstr(Movsd, expected_result='movsd dword ptr es:[edi], dword ptr [esi]')()
TestInstr(Xchg)('EAX', 'ESP')
assert Xchg('EAX', 'ECX').get_code() == Xchg('ECX', 'EAX').get_code()
code = MultipleInstr()
code += Nop()
code += Rep + Nop()
code += Ret()
print(repr(code.get_code()))
assert code.get_code() == "\x90\xf3\x90\xc3"