I'm sure this has been done before, but I wanted to share it anyway.
This a simple little project I've been working on that will eventually allow for any 4 kilobyte file to be interpreted as raw 6502 assembly code and disassembled accordingly.
However, all it can do right now is disassemble 28 bytes (Enough for a whole screen of implied instructions), so it isn't too useful yet. I want to add scrolling so that the entire 4Kb can be read. I'll also try to make the ROM size smaller, as it's gigantic right now. This may even allow for the disassembly of 8 Kb.
There are some limitations. It has no way of knowing what's code and what's data. The best thing I can think to do right now is, whenever it comes across something that isn't an opcode, it'll just display its byte. Of course this still has the potential for nonsense code to be displayed, but it's better than nothing.
To have something be disassembled, open it up in a hex editor, copy the bytes you want to be disassembled, and paste them at location $0010 (PRG location $8000) in the program's ROM file. (Be sure not to have it inserted, but rather be pasted over.) I'll make a program that'll do this automatically soon. Whatever is at $8000 should get disassembled on your TV or computer screen.
NES Disassembler-0.png [ 2.4 KiB | Viewed 2376 times ]
NES Disassembler-1.png [ 2.41 KiB | Viewed 2376 times ]
Maybe this can be used for something
This a simple little project I've been working on that will eventually allow for any 4 kilobyte file to be interpreted as raw 6502 assembly code and disassembled accordingly.
However, all it can do right now is disassemble 28 bytes (Enough for a whole screen of implied instructions), so it isn't too useful yet. I want to add scrolling so that the entire 4Kb can be read. I'll also try to make the ROM size smaller, as it's gigantic right now. This may even allow for the disassembly of 8 Kb.
There are some limitations. It has no way of knowing what's code and what's data. The best thing I can think to do right now is, whenever it comes across something that isn't an opcode, it'll just display its byte. Of course this still has the potential for nonsense code to be displayed, but it's better than nothing.
To have something be disassembled, open it up in a hex editor, copy the bytes you want to be disassembled, and paste them at location $0010 (PRG location $8000) in the program's ROM file. (Be sure not to have it inserted, but rather be pasted over.) I'll make a program that'll do this automatically soon. Whatever is at $8000 should get disassembled on your TV or computer screen.
Attachment:
NES Disassembler-0.png [ 2.4 KiB | Viewed 2376 times ]
Attachment:
NES Disassembler-1.png [ 2.41 KiB | Viewed 2376 times ]
Attachment:
Maybe this can be used for something