bitdefender / bddisasm

bddisasm is a fast, lightweight, x86/x64 instruction decoder. The project also features a fast, basic, x86/x64 instruction emulator, designed specifically to detect shellcode-like behavior.
Apache License 2.0
888 stars 115 forks source link

ROL rcx, 0x10,My cpu is amd, real cpu and unicorn can get 99, bddisasm get 98, but you give OF undefined conclusion #64

Closed icyfox168168 closed 2 years ago

vlutas commented 2 years ago

The OF is undefined on AMD as well for rotate/shift with count greater than one. It doesn't matter what results you get, those results may very well be different on other CPUs. An undefined flag cannot be set to any specific value.

In the future, please reopen the original issue if you have further comments. Don't create a new one for each question you have, as it makes issue tracking difficult.