[HN Gopher] PyDisAss: A 6502 Disassembler in Python
       ___________________________________________________________________
        
       PyDisAss: A 6502 Disassembler in Python
        
       Author : fcambus
       Score  : 16 points
       Date   : 2021-03-21 21:06 UTC (1 hours ago)
        
 (HTM) web link (www.awsm.de)
 (TXT) w3m dump (www.awsm.de)
        
       | spicybright wrote:
       | That's... not a great name lol
        
         | ironmagma wrote:
         | It's not great, it's amazing.
        
       | naebother wrote:
       | Nice.
        
       | argvargc wrote:
       | A better title might be: "How to write a 6502 disassembler in
       | Python"
       | 
       | In that light, it's a great, at times hilarious, article. (For
       | example, the bit about self-modifying code is most elucidating.)
        
       | tom_ wrote:
       | I claim it's best to give up on the idea of being clever, and
       | just go straight for being interactive. Particularly true for
       | 6502; there's nothing remotely approaching an ABI, and, in
       | general, anything goes. You'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.
       | 
       | But that's fine! That'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.
       | 
       | See IDA Pro (https://www.hex-rays.com/products/ida/), Dis6502
       | (https://www.atarimax.com/dis6502/), Ghidra (https://ghidra-
       | sre.org/ - actually, terrible for 6502 last I checked, but it
       | _is_ interactive), Hopper (https://www.hopperapp.com/), and
       | probably more.
        
       ___________________________________________________________________
       (page generated 2021-03-21 23:00 UTC)