{"action":"created","issue":{"url":"https://api.github.com/repos/yegord/snowman/issues/14","labels_url":"https://api.github.com/repos/yegord/snowman/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/yegord/snowman/issues/14/comments","events_url":"https://api.github.com/repos/yegord/snowman/issues/14/events","html_url":"https://github.com/yegord/snowman/issues/14","id":88442798,"number":14,"title":"Possible Add Mips architecture.","user":{"login":"techbliss","id":3592375,"avatar_url":"https://avatars.githubusercontent.com/u/3592375?v=3","gravatar_id":"","url":"https://api.github.com/users/techbliss","html_url":"https://github.com/techbliss","followers_url":"https://api.github.com/users/techbliss/followers","following_url":"https://api.github.com/users/techbliss/following{/other_user}","gists_url":"https://api.github.com/users/techbliss/gists{/gist_id}","starred_url":"https://api.github.com/users/techbliss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/techbliss/subscriptions","organizations_url":"https://api.github.com/users/techbliss/orgs","repos_url":"https://api.github.com/users/techbliss/repos","events_url":"https://api.github.com/users/techbliss/events{/privacy}","received_events_url":"https://api.github.com/users/techbliss/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":213,"created_at":"2015-06-15T14:26:07Z","updated_at":"2015-07-26T10:42:21Z","closed_at":null,"body":"Hey Yegord.\r\n\r\nI see you switched to Capstone engine.\r\nSo Question is.\r\nYou think it would be possible to add MIPS architecture also to the decompiler,\r\nsince Capstone already have the architecture included in the capstone engine.\r\n\r\nhttps://github.com/aquynh/capstone/tree/master/arch/Mips\r\nOr would it be much work to add MIPS support.\r\nRegards"},"comment":{"url":"https://api.github.com/repos/yegord/snowman/issues/comments/124968702","html_url":"https://github.com/yegord/snowman/issues/14#issuecomment-124968702","issue_url":"https://api.github.com/repos/yegord/snowman/issues/14","id":124968702,"user":{"login":"yegord","id":1595829,"avatar_url":"https://avatars.githubusercontent.com/u/1595829?v=3","gravatar_id":"","url":"https://api.github.com/users/yegord","html_url":"https://github.com/yegord","followers_url":"https://api.github.com/users/yegord/followers","following_url":"https://api.github.com/users/yegord/following{/other_user}","gists_url":"https://api.github.com/users/yegord/gists{/gist_id}","starred_url":"https://api.github.com/users/yegord/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yegord/subscriptions","organizations_url":"https://api.github.com/users/yegord/orgs","repos_url":"https://api.github.com/users/yegord/repos","events_url":"https://api.github.com/users/yegord/events{/privacy}","received_events_url":"https://api.github.com/users/yegord/received_events","type":"User","site_admin":false},"created_at":"2015-07-26T10:42:21Z","updated_at":"2015-07-26T10:42:21Z","body":"Ah, yes. Snowman is right here.\r\n\r\n`regizter(MipsRegisters::hilo()) ^= zero_extend((std::move(operand0) * std::move(operand1)), 64)` does 32-bit multiplication, gets 32-bit result, extends it to 64 bits, to, the upper 32 bits stored in hi are zero. This is why `t2 = 0` is generated. I pointed out already that you have multiplication defined incorrectly.\r\n\r\nAssignments to zero register are generated probably because you disabled dead store elimination by patching DefinitionGenerator."}}