{"action":"created","issue":{"url":"https://api.github.com/repos/aquynh/capstone/issues/585","repository_url":"https://api.github.com/repos/aquynh/capstone","labels_url":"https://api.github.com/repos/aquynh/capstone/issues/585/labels{/name}","comments_url":"https://api.github.com/repos/aquynh/capstone/issues/585/comments","events_url":"https://api.github.com/repos/aquynh/capstone/issues/585/events","html_url":"https://github.com/aquynh/capstone/issues/585","id":130622475,"number":585,"title":"Negative hex values. Is there a fix?","user":{"login":"farmdve","id":7746376,"avatar_url":"https://avatars.githubusercontent.com/u/7746376?v=3","gravatar_id":"","url":"https://api.github.com/users/farmdve","html_url":"https://github.com/farmdve","followers_url":"https://api.github.com/users/farmdve/followers","following_url":"https://api.github.com/users/farmdve/following{/other_user}","gists_url":"https://api.github.com/users/farmdve/gists{/gist_id}","starred_url":"https://api.github.com/users/farmdve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/farmdve/subscriptions","organizations_url":"https://api.github.com/users/farmdve/orgs","repos_url":"https://api.github.com/users/farmdve/repos","events_url":"https://api.github.com/users/farmdve/events{/privacy}","received_events_url":"https://api.github.com/users/farmdve/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2016-02-02T09:15:45Z","updated_at":"2016-02-26T13:12:08Z","closed_at":null,"body":"So I am using Capstone to disassemble an instruction, but instead I get the following disassembly\r\n\r\n`shrd edx, ecx, -0x5e` for opcodes `0FACCA A2` which is actually `shrd edx,ecx,0A2` as disassembled in Ollydbg 2.01.\r\n\r\nAny fix for this? There are no explicit negative hex values in computing afaik. You have a sign bit which is bit 31, if you interpret a number as a signed decimal, but in hex the value is always 0-FFFFFFFF. I am not even sure how -0x5e is to be interpreted. \r\n\r\nOllydbg 2.01 also has a similar bug with negative hex, but it doesnt happen as often."},"comment":{"url":"https://api.github.com/repos/aquynh/capstone/issues/comments/189267335","html_url":"https://github.com/aquynh/capstone/issues/585#issuecomment-189267335","issue_url":"https://api.github.com/repos/aquynh/capstone/issues/585","id":189267335,"user":{"login":"radare","id":917142,"avatar_url":"https://avatars.githubusercontent.com/u/917142?v=3","gravatar_id":"","url":"https://api.github.com/users/radare","html_url":"https://github.com/radare","followers_url":"https://api.github.com/users/radare/followers","following_url":"https://api.github.com/users/radare/following{/other_user}","gists_url":"https://api.github.com/users/radare/gists{/gist_id}","starred_url":"https://api.github.com/users/radare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/radare/subscriptions","organizations_url":"https://api.github.com/users/radare/orgs","repos_url":"https://api.github.com/users/radare/repos","events_url":"https://api.github.com/users/radare/events{/privacy}","received_events_url":"https://api.github.com/users/radare/received_events","type":"User","site_admin":false},"created_at":"2016-02-26T13:12:08Z","updated_at":"2016-02-26T13:12:08Z","body":"CS_OPT_UNSIGNED\n\n> On 26 Feb 2016, at 14:09, Nguyen Anh Quynh <notifications@github.com> wrote:\n> \n> ok i will add a new option for this. let me know if you find a better option name than CS_OPT_POSITIVE.\n> \n> —\n> Reply to this email directly or view it on GitHub.\n> \n"}}