Hacker News new | past | comments | ask | show | jobs | submit login
Implementing a New CPU Architecture for Ghidra [slides] (docs.google.com)
75 points by guedou on May 30, 2019 | hide | past | favorite | 10 comments



This builds upon your previous https://news.ycombinator.com/item?id=17725189 ?

I tried to read more about MeP architecture but there is very little "conventional" info about it

- GCC 3.4 port abandoned http://people.redhat.com/dj/mep/ , what compiler is commonly used?

- Wikipedia page https://en.wikipedia.org/wiki/Media-embedded_processor , well, compare it to RISC-V that contains assembly and microarchitecture details


Yes,the idea is to use the Ghidra decompiler to ease reversing new parts of the FlashAir firmware.

The MeP-c4 datasheet is available at https://www.datasheetarchive.com/pdf/download.php?id=6693e80...

I had success compiling GCC with MeP support using git and the commit before the removal. Yet, I believe that FlashAir are not compiled with gcc.


As far as I'm aware, there's really no way to add support to IDA Pro's decompiler for custom architectures, so I'm really glad that Ghidra has the tools to do this!


That is false. I wrote an IDA plugin to support the VMU CPU. It is actually quite well documented in the IDA SDK. http://dmitry.gr/?r=05.Projects&proj=25.%20VMU%20Hacking


I don't see any evidence there that you got the decompiler working, which would be quite a feat. The disassembler, and even graph view, is part of the IDA SDK as you mentioned.


Impressive work! How hard was porting over Flappy Bird over to the VMU? Did you just hand-design the graphics?


I wrote it in c. Source is on the site :)


Unfortunately I can't run it locally. Do you have an alternative version for local dev? Ideally for macOS? I'd love to play around with it!


compile the source for SDL?

or, i also published a VMU emulator (in source) which will build on macos. you can run the cortex-m23 emulator i wrote in it, and then the game in that


Awesome I'll give that a shot




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: