{"action":"created","issue":{"url":"https://api.github.com/repos/marhel/r68k/issues/77","repository_url":"https://api.github.com/repos/marhel/r68k","labels_url":"https://api.github.com/repos/marhel/r68k/issues/77/labels{/name}","comments_url":"https://api.github.com/repos/marhel/r68k/issues/77/comments","events_url":"https://api.github.com/repos/marhel/r68k/issues/77/events","html_url":"https://github.com/marhel/r68k/issues/77","id":140402707,"number":77,"title":"Disassembler","user":{"login":"emoon","id":350822,"avatar_url":"https://avatars.githubusercontent.com/u/350822?v=3","gravatar_id":"","url":"https://api.github.com/users/emoon","html_url":"https://github.com/emoon","followers_url":"https://api.github.com/users/emoon/followers","following_url":"https://api.github.com/users/emoon/following{/other_user}","gists_url":"https://api.github.com/users/emoon/gists{/gist_id}","starred_url":"https://api.github.com/users/emoon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emoon/subscriptions","organizations_url":"https://api.github.com/users/emoon/orgs","repos_url":"https://api.github.com/users/emoon/repos","events_url":"https://api.github.com/users/emoon/events{/privacy}","received_events_url":"https://api.github.com/users/emoon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":23,"created_at":"2016-03-12T17:46:10Z","updated_at":"2016-05-03T16:44:31Z","closed_at":null,"body":"Something that is very useful to have in an emulator core is the ability disassemble instructions for various reasons.\r\n\r\nCurrently r68k doesn't have one. I have implemented one (in C here) https://github.com/aquynh/capstone/blob/next/arch/M68K/M68KDisassembler.c\r\n\r\nThis was also based on Musashi but with a fair amount of bugs fixed. Also this version doesn't just do instruction printing but allow you to see which registers, addressing mode, etc is being used for an instruction.\r\n\r\nRewriting this code in Rust is possible for sure but a bunch of work. An alternative would be to rewrite this C code a bit and have a Rust wrapper around it so the user of r68k would only 'see' the Rust part.\r\n\r\nJust wanted to hear your thoughts about it."},"comment":{"url":"https://api.github.com/repos/marhel/r68k/issues/comments/216590857","html_url":"https://github.com/marhel/r68k/issues/77#issuecomment-216590857","issue_url":"https://api.github.com/repos/marhel/r68k/issues/77","id":216590857,"user":{"login":"emoon","id":350822,"avatar_url":"https://avatars.githubusercontent.com/u/350822?v=3","gravatar_id":"","url":"https://api.github.com/users/emoon","html_url":"https://github.com/emoon","followers_url":"https://api.github.com/users/emoon/followers","following_url":"https://api.github.com/users/emoon/following{/other_user}","gists_url":"https://api.github.com/users/emoon/gists{/gist_id}","starred_url":"https://api.github.com/users/emoon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emoon/subscriptions","organizations_url":"https://api.github.com/users/emoon/orgs","repos_url":"https://api.github.com/users/emoon/repos","events_url":"https://api.github.com/users/emoon/events{/privacy}","received_events_url":"https://api.github.com/users/emoon/received_events","type":"User","site_admin":false},"created_at":"2016-05-03T16:44:31Z","updated_at":"2016-05-03T16:44:31Z","body":"👍 "}}