Closed srounet closed 3 years ago
Hi, Thank you for the issue and the analysis. I agree with you, this encoding of Test was clearly not tested as adding some related test-case directly failed. I corrected the encoding in both bitness and added some Test to tests/test_simple_x86.py & tests/test_simple_x64.py in commit 542eb33.
I am closing the issue, do not hesitate to reopen it if you feel it has not been correctly fixed. Feel free to open other issues if you find some other encoding error.
Thank you !
Hi, I'm not an expert but I think the definition of Test Instruction does not match the x86 documentation. https://en.wikipedia.org/wiki/X86_instruction_listings#Original_8086/8088_instructions
I think it should be (notice Slash(0))
Snippet:
x86.Test("EBX", 0x01) should produce: f7c3 0100 0000
Again as I said I'm not an expert, but if I'm right it should be fixed for x64 too i guess.