{"id":24,"date":"2005-04-11T12:00:29","date_gmt":"2005-04-11T19:00:29","guid":{"rendered":"http:\/\/tlindner.macmess.org\/?p=24"},"modified":"2005-04-11T12:00:29","modified_gmt":"2005-04-11T19:00:29","slug":"counting-opcodes","status":"publish","type":"post","link":"https:\/\/tlindner.macmess.org\/?p=24","title":{"rendered":"Counting opcodes"},"content":{"rendered":"<p>A friend of mine recently asked me to write a disassembler for the hd6309 microprocessor. Since I had already taken the m6809 disassembler in MAME and reconfigured it into a 6309 disassembler I decided to start with that work.\nIt turned out to be pretty easy to deMAMEify the disassembler. But after I was done, how did I know I didn&#8217;t break it? So I decided to write some test code to disassemble every 6309 opcode, including every variation of 6309 opcode. I use the unix regex library to determine if the disassembly was correct. For every opcode of every addressing mode I write a pattern, and then compare it to the resulting disassemble.\nSo far I have 12 opcodes begin disassembled and this results in 4,011,927 different tests. And I already found numerous bugs from the original work. They&#8217;ll need to be back ported into the hd6309 MAME disassembler.\nNow I am finishing this task just to see how many opcode variations there are!<\/p>","protected":false},"excerpt":{"rendered":"<p>A friend of mine recently asked me to write a disassembler for the hd6309 microprocessor. Since I had already taken the m6809 disassembler in MAME and reconfigured it into a 6309 disassembler I decided to start with that work. It &hellip; <a href=\"https:\/\/tlindner.macmess.org\/?p=24\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-24","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/tlindner.macmess.org\/index.php?rest_route=\/wp\/v2\/posts\/24","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tlindner.macmess.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tlindner.macmess.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tlindner.macmess.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tlindner.macmess.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=24"}],"version-history":[{"count":0,"href":"https:\/\/tlindner.macmess.org\/index.php?rest_route=\/wp\/v2\/posts\/24\/revisions"}],"wp:attachment":[{"href":"https:\/\/tlindner.macmess.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=24"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tlindner.macmess.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=24"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tlindner.macmess.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=24"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}