ImHex - absolutely wonderful disassembler and data analyser for m68k
Moderators: simonsunnyboy, Mug UK, Zorro 2, Moderator Team
-
- Hardware Guru
- Posts: 2997
- Joined: Sat Sep 10, 2005 11:11 am
- Location: Kosice, Slovakia
- Contact:
ImHex - absolutely wonderful disassembler and data analyser for m68k
I wish this was my thing to announce. :-) There are people in favour of Ghidra or IDA Pro but every time I wanted to try any of those, I felt really uncomfortable, can't even say why exactly - they are powerful tools, no doubt. And then I found ImHex: https://imhex.werwolv.net
With just two clicks I was able to get this: Wonderful, wonderful disassembler and hex editor, everything works with mouse selection, realtime offsets and conversions to all possible formats.
hexedit, Ghidra, Okteta, m68k-atari-mint-objdump ... bye-bye, never going to see you ever again. ;)
With just two clicks I was able to get this: Wonderful, wonderful disassembler and hex editor, everything works with mouse selection, realtime offsets and conversions to all possible formats.
hexedit, Ghidra, Okteta, m68k-atari-mint-objdump ... bye-bye, never going to see you ever again. ;)
You do not have the required permissions to view the files attached to this post.
-
- Fuji Shaped Bastard
- Posts: 2367
- Joined: Sun Aug 03, 2014 5:54 pm
Re: ImHex - absolutely wonderful disassembler and data analyser for m68k
Quite nice GUI, but i usually prefer to convert whole files to assembler source, then work on the text files.
Ghidra is nice when working on foreign programs. Although it has some quirks, its ability to convert the assembler code back to C is invaluable to get a quick understanding what the code does.
Ghidra is nice when working on foreign programs. Although it has some quirks, its ability to convert the assembler code back to C is invaluable to get a quick understanding what the code does.
Re: ImHex - absolutely wonderful disassembler and data analyser for m68k
Nice. Interesting tool for sure as it shows entropy graphs as well. Thanks.
- tOri
- Obsessive compulsive Atari behavior
- Posts: 109
- Joined: Thu Jun 18, 2020 4:30 pm
- Location: Poland
- Contact:
Re: ImHex - absolutely wonderful disassembler and data analyser for m68k

Thank you mikro for info!
Regards
tOri
http://atari.myftp.org ATARI - Power without price and necessary elements
various varieties for Atari and not only - useful or not, but it's worth a look ...
various varieties for Atari and not only - useful or not, but it's worth a look ...
- TheNameOfTheGame
- Fuji Shaped Bastard
- Posts: 2203
- Joined: Mon Jul 23, 2012 8:57 pm
- Location: Almost Heaven, West Virginia
Re: ImHex - absolutely wonderful disassembler and data analyser for m68k
Nice, downloaded!
I was just reading about advances in OpenAI the other day and thought what if it can learn Atari programming? It could probably fix a lot of bugs, maybe every bug in every Atari program if it learned.
I was just reading about advances in OpenAI the other day and thought what if it can learn Atari programming? It could probably fix a lot of bugs, maybe every bug in every Atari program if it learned.

Re: ImHex - absolutely wonderful disassembler and data analyser for m68k
Oh, great discovery! Played around with it for a few minutes and it's a keeper for sure! Thanks!
Daniel, New Beat - http://newbeat.atari.org.
Like demos? Have a look at our new Falcon030 demo It's that time of the year again, or click here to feel the JOY.
Like demos? Have a look at our new Falcon030 demo It's that time of the year again, or click here to feel the JOY.
- lp
- Fuji Shaped Bastard
- Posts: 2674
- Joined: Wed Nov 12, 2003 11:09 pm
- Location: GFA Headquarters
- Contact:
Re: ImHex - absolutely wonderful disassembler and data analyser for m68k
Got all excited to try it and then my old mac refused to start it. lol
URL noted, will give it a go in the near future after my machine is replaced.
URL noted, will give it a go in the near future after my machine is replaced.

Re: ImHex - absolutely wonderful disassembler and data analyser for m68k
I've got no problems running the tool on my MBP (late 2013 model, Monterey). IDK if it counts as an old Mac, though.

-
- Fuji Shaped Bastard
- Posts: 2367
- Joined: Sun Aug 03, 2014 5:54 pm
Re: ImHex - absolutely wonderful disassembler and data analyser for m68k
Had some problems too running it on linux. The executables require glibc 2.34, but i have only 2.33 installed. Recompiling from source doesn't work either, because that requires gcc 12. I find it a bit strange that compiling from source requires a gcc version which has only been released a few weeks ago.
Re: ImHex - absolutely wonderful disassembler and data analyser for m68k
The big advantage of Ida Pro (may be Ghidra as well, not used it too much), is that it can automatically detect the compiler, and then identify and label library calls by their original name, and even decompile. Can ImHex do something like that? Of course, that works only for programs that used a well known compiler version, not for ST programs.mikro wrote: ↑Wed Aug 03, 2022 6:37 am I wish this was my thing to announce.There are people in favour of Ghidra or IDA Pro but every time I wanted to try any of those, I felt really uncomfortable, can't even say why exactly - they are powerful tools, no doubt. And then I found ImHex: https://imhex.werwolv.net
Fx Cast: Atari St cycle accurate fpga core
Re: ImHex - absolutely wonderful disassembler and data analyser for m68k
The feature "graphical node-based data processor to pre-process values before they're displayed" looks like the IDO PRO Control Flow Graph. Maybe this was a bit misleading!?ijor wrote: ↑Wed Aug 03, 2022 2:42 pm The big advantage of Ida Pro (may be Ghidra as well, not used it too much), is that it can automatically detect the compiler, and then identify and label library calls by their original name, and even decompile. Can ImHex do something like that? Of course, that works only for programs that used a well known compiler version, not for ST programs.
-
- Fuji Shaped Bastard
- Posts: 2367
- Joined: Sun Aug 03, 2014 5:54 pm
Re: ImHex - absolutely wonderful disassembler and data analyser for m68k
You can use that feature also for ST programs compiled by gcc. For programs compiled by Pure-C it is more work, because of the register calling convention. I've already created once a function-id database that can identify most of the standard-library, and with a script you can then modify those library calls to use the expected registers. For functions used by the program, you have to do that manually however. But it's possible.
Re: ImHex - absolutely wonderful disassembler and data analyser for m68k
Interesting. But honestly, how many times you would this feature? I would expect most ST programs compiled with gcc to be open sourceThorstenOtto wrote: ↑Wed Aug 03, 2022 3:26 pm You can use that feature also for ST programs compiled by gcc. For programs compiled by Pure-C it is more work, because of the register calling convention.

Fx Cast: Atari St cycle accurate fpga core
-
- Fuji Shaped Bastard
- Posts: 2367
- Joined: Sun Aug 03, 2014 5:54 pm
Re: ImHex - absolutely wonderful disassembler and data analyser for m68k
Sometimes the source code is lost
And i sometimes use it to check the code gcc actually produces. In more complex routines, its useful to have a rough outline of the C-code, so you will see where you are when click in the dissassembly.
But all i wanted to say is that this is a feature of Ghidra that generally works for any code, no matter which compiler produced it.

But all i wanted to say is that this is a feature of Ghidra that generally works for any code, no matter which compiler produced it.
Re: ImHex - absolutely wonderful disassembler and data analyser for m68k
Right, but you need the specific compiler library database. And not just for the compiler "brand", but for the specific version. These come builtin for the PC, of course. May be nowadays also for Mac and some ARM platforms?ThorstenOtto wrote: ↑Wed Aug 03, 2022 6:16 pm But all i wanted to say is that this is a feature of Ghidra that generally works for any code, no matter which compiler produced it.
Fx Cast: Atari St cycle accurate fpga core
- TheNameOfTheGame
- Fuji Shaped Bastard
- Posts: 2203
- Joined: Mon Jul 23, 2012 8:57 pm
- Location: Almost Heaven, West Virginia
Re: ImHex - absolutely wonderful disassembler and data analyser for m68k
Hmm, found a neat article on the web where just this sort of thing is being done, wow.TheNameOfTheGame wrote: ↑Wed Aug 03, 2022 10:57 am Nice, downloaded!
I was just reading about advances in OpenAI the other day and thought what if it can learn Atari programming? It could probably fix a lot of bugs, maybe every bug in every Atari program if it learned.![]()
https://www.economist.com/science-and-t ... r-programs
From the article:
Code: Select all
Bugs and the system
Nor are those who write code the only beneficiaries. Developers spend nearly as much time searching
for bugs in what they have written as they do writing it in the first place. A machine-learning model
being built by Brendan Dolan-Gavitt of New York University may speed up the debugging process.
Code: Select all
Machines, it turns out, are now able to write even longish sequences of functioning code.
As John Carmack, a noted American computer engineer, has tweeted, pondering this development
“does generate a slight shiver”. Unsurprisingly, a number of firms see an opportunity.
It is an interesting possibility. Maybe we will finally get some of those games that were never released on Atari

Re: ImHex - absolutely wonderful disassembler and data analyser for m68k
Have not tried this one, looks interesting.
And visually it looks like it is using ImGui? I guess that's where the 'Im' prefix comes in
And visually it looks like it is using ImGui? I guess that's where the 'Im' prefix comes in

d:m:l
Home: http://www.leonik.net/dml/sec_atari.py
AGT project https://bitbucket.org/d_m_l/agtools
BadMooD: https://bitbucket.org/d_m_l/badmood
Quake II p/l: http://www.youtube.com/playlist?list=PL ... 5nMm10m0UM
Home: http://www.leonik.net/dml/sec_atari.py
AGT project https://bitbucket.org/d_m_l/agtools
BadMooD: https://bitbucket.org/d_m_l/badmood
Quake II p/l: http://www.youtube.com/playlist?list=PL ... 5nMm10m0UM