TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

PyDisAss: A 6502 Disassembler in Python

29 pointsby fcambusabout 4 years ago

6 comments

tom_about 4 years ago
I claim it&#x27;s best to give up on the idea of being clever, and just go straight for being interactive. Particularly true for 6502; there&#x27;s nothing remotely approaching an ABI, and, in general, anything goes. You&#x27;ll never be able to automate everything. Simplest to give up before you start, and just settle for recursively discovering code from a specified starting point by following obvious branches and jumps.<p>But that&#x27;s fine! That&#x27;s all you need to do. The interactivity solves the rest, and the user can specify code vs data and so on themselves as they work through the code.<p>See IDA Pro (<a href="https:&#x2F;&#x2F;www.hex-rays.com&#x2F;products&#x2F;ida&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.hex-rays.com&#x2F;products&#x2F;ida&#x2F;</a>), Dis6502 (<a href="https:&#x2F;&#x2F;www.atarimax.com&#x2F;dis6502&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.atarimax.com&#x2F;dis6502&#x2F;</a>), Ghidra (<a href="https:&#x2F;&#x2F;ghidra-sre.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;ghidra-sre.org&#x2F;</a> - actually, terrible for 6502 last I checked, but it <i>is</i> interactive), Hopper (<a href="https:&#x2F;&#x2F;www.hopperapp.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.hopperapp.com&#x2F;</a>), and probably more.
rectangabout 4 years ago
PyDisAss? A booty meme pic to finish out the article? Great example of why women don&#x27;t feel welcome in tech and why there are so few women on HN.<p>Totally unnecessary spoilage of a laboriously crafted project and article.
评论 #26535294 未加载
评论 #26535730 未加载
评论 #26537636 未加载
评论 #26535265 未加载
spicybrightabout 4 years ago
That&#x27;s... not a great name lol
评论 #26534657 未加载
argvargcabout 4 years ago
A better title might be: &quot;How to write a 6502 disassembler in Python&quot;<p>In that light, it&#x27;s a great, at times hilarious, article. (For example, the bit about self-modifying code is most elucidating.)
simonblackabout 4 years ago
&lt;grin&gt;<p>That&#x27;s a bit like my 8080 disassembler in COBOL, back in the 80s.
naebotherabout 4 years ago
Nice.