tunozemichanの日記 / tunozemichan's diary

SORD社のコンピューターM68やM68MXの解析についての備忘録です。This blog is a memorandum about the analysis of SORD's computers M68 and M68MX.

Disassemble the ROM of SORD M68MX (m68k binary).

I dumped the ROM image of the SORD M68MX, which was split into EVEN and ODD, and merged using WinHex. There is no good tool for disassembling the m68k ROM image. Strangely, there is no good disassembler for such a major, albeit old, MPU. Everything I can find on the Internet becomes unanalyzable halfway through.


I looked into this and that, but it didn't work, and when I tweeted my complaints on Twitter, one of my followers told me that there were GNU binutils. I happily downloaded the latest version and tried to compile it with target=m68k, but it said it was not supported. In despair, I wandered around the net and found out that ubuntu has binutils for m68k in its repositories! I installed it immediately.

 

sudo apt install binutils-m68k-linux-gnu

 

I got the binary tool very easily. Let's try entering the file we want to disassemble.

 

m68k-linux-gnu-objdump -D -b binary -m m68k BIOS.BIN

 

It was perfect. It was beautifully disassembled. Everyone uses GNU's tools, so there was no need to create a new one. Now I will analyze it slowly.

 

(Addendum)

If you use objcopy, you can also convert to S-record.

 

m68k-linux-gnu-objcopy -I binary -O binary -B m68k BIOS.BIN bios.srec

 

(The following is an aside.)

When I was looking for something, I thought I could use the emulator mame, so I tried it.

The debug mode of mame is great, but of course, it can't read ROMs of unsupported machines. However, I thought it was extremely useful for examining the startup behavior of various CPUs.