| |
Grue
Registered: Dec 2001 Posts: 162 |
Ghidra with illegal opcodes
Recently, Kakka / Extend added 6510 illegal opcode decoding support for the Ghira fork, which I have been using on my C64 game mods.
Note that you must choose the 6510 variant of MOS6502 to use it as a CPU for your binary.
https://github.com/grue74/ghidra-c64helpers
And binaries for Linux and Windows here also, the c64 byte viewer as a plugin can be found:
https://voidhole.com/~grue/ghidra/
I don't know how to use the debugger with ghidra, so I don't know if those illegals work ok, but at least they seem to work ok on the code lister.
Ghidra is a pretty good replacement for the IDA Pro; at least, you cannot beat the price.
I update those builds semi-randomly with the latest updates from the official ghidra tree. |
|
| |
Colt45RPM
Registered: Feb 2019 Posts: 47 |
Awesome! Thanks so much. I have been wishing for something like this. :) |
| |
Frantic
Registered: Mar 2003 Posts: 1648 |
Cool! |
| |
chatGPZ
Registered: Dec 2001 Posts: 11390 |
Really need to look at Ghidra some day... So hard to drop IDA once you learned it :) |
| |
Grue
Registered: Dec 2001 Posts: 162 |
This fork of ghidra mainly distributes my hacks on the byte viewer plugin, which introduces several different mappings to character encodings.
For the best results, use the c64 pro mono font.
An example of the byte viewer plugin options can be seen here:
https://voidhole.com/~grue/ghidra_example.png
I made the mappings using the new retro computing standards for UTF-8, but the C64 Pro Mono font has not been updated yet to conform to that, so some of the characters cannot be shown.
A font called Unscii should handle those, but I personally don't like how it looks.
ps. I mapped screencode chars to petscii maps when there was no sensible mapping available. |
| |
chatGPZ
Registered: Dec 2001 Posts: 11390 |
the "Pet Me" font should support that official mapping |
| |
Grue
Registered: Dec 2001 Posts: 162 |
Quote: the "Pet Me" font should support that official mapping
Thanks for the tip. The ghidra builds have now been updated to follow Pet Me font mappings.
Characters 0-127 conform to UTF8 standards, and 128-255 don't, as there don't seem to be inverted characters on Unicode mappings. |
| |
Fungus
Registered: Sep 2002 Posts: 691 |
I need to check this out too, I miss using IDA, but no idea how to use it with C64 stuff. |
| |
chatGPZ
Registered: Dec 2001 Posts: 11390 |
You need IDA Pro, that has the 6502 module (with illegals even).
I wouldn't use IDA for C64 things if i didn't already know it quite good - all the x86-isms can be confusing and annoying :)
Now if someone would convince Ilfak to update Hexrays for 6502 - that would be a different story :D |
| |
Fungus
Registered: Sep 2002 Posts: 691 |
Hexrays for 6502 would be awesome, just a pipedream though. |
| |
tlr
Registered: Sep 2003 Posts: 1791 |
I've also thought about using ghidra a while ago, installed it and didn't really get acquainted to it. Maybe I should give it another go. |
... 11 posts hidden. Click here to view all posts.... |
Previous - 1 | 2 | 3 - Next |