Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > C64 Coding > Ghidra with illegal opcodes
2024-05-13 18:39
Grue

Registered: Dec 2001
Posts: 154
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.
 
... 14 posts hidden. Click here to view all posts....
 
2024-05-19 16:57
chatGPZ

Registered: Dec 2001
Posts: 11154
Mmmh you cant produce an asm file right from ghidra? That always was a key feature in IDA for me
2024-05-19 17:32
Grue

Registered: Dec 2001
Posts: 154
Quote: Mmmh you cant produce an asm file right from ghidra? That always was a key feature in IDA for me

You can export something which is not very useful for the assemblers.

Of course, it's open source, so...
2024-05-19 17:58
Grue

Registered: Dec 2001
Posts: 154
A quick video about how to get started. Sorry about messy results, I wasn't preparing beforehand, just started to record and it shows..

https://youtu.be/xNFswb9CVkg
2024-05-20 11:10
oziphantom

Registered: Oct 2014
Posts: 480
this is more SNES and 65816 based, but I have a pile of fancy scripts here https://github.com/oziphantom/SNES_DOCS/tree/main/scripts maybe it has been fixed now but the 6502 plugin got somethings wrong, the 65816 gets everything backwards. So I have some clean up scripts. I also have some add hi/lo tables, add references, instance N structs kind of scripts. For Harvest moon I have example "How to look at and display sprites" that could be cribbed to make a C64 sprite viewer or block map viewer etc

If you go up a couple of levels I have the start of a walk through on how to start on a SNES project, but doing a C64 would be almost the same steps just with a different memory map and less initial state steps.

For getting a 64Tass listing out of it, I was going to make a script that pulled the data from Ghidra and spat out the code files.
2024-06-11 11:31
Grue

Registered: Dec 2001
Posts: 154
I checked against the official Ghidra repo and built new binaries at the usual place.
Previous - 1 | 2 | 3 - Next
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
tonysavon
Da Snake
Airwolf/F4CG
LuXuS
megasoftargentina
Techno
fandenvoldsk
Mason/Unicess
ptoing
Avalanche/Atlantis
Guests online: 83
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.7)
5 Edge of Disgrace  (9.7)
6 Uncensored  (9.6)
7 Comaland 100%  (9.6)
8 No Bounds  (9.6)
9 Wonderland XIV  (9.6)
10 Aliens in Wonderland  (9.6)
Top onefile Demos
1 Layers  (9.6)
2 Cubic Dream  (9.6)
3 Party Elk 2  (9.6)
4 Copper Booze  (9.6)
5 Rainbow Connection  (9.5)
6 It's More Fun to Com..  (9.5)
7 Dawnfall V1.1  (9.5)
8 Daah, Those Acid Pil..  (9.5)
9 Birth of a Flower  (9.5)
10 Quadrants  (9.5)
Top Groups
1 Nostalgia  (9.4)
2 Oxyron  (9.3)
3 Booze Design  (9.3)
4 Censor Design  (9.3)
5 Offence  (9.3)
Top Musicians
1 Rob Hubbard  (9.7)
2 Stinsen  (9.7)
3 Jeroen Tel  (9.6)
4 Linus  (9.6)
5 psych858o  (9.6)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.065 sec.