GSoC: Michael Madsen

Game script (bytecode) decompiler

Initial code flow

Finally, I've been able to start work on the code flow graph.

So far, very little is prepared, but I can now make the most basic graph, with each instruction as its own vertex (click for full-size image):
Initial code flow graph for samnmax/script-33.dmp

Additionally, jumps are also handled (click for full-size image):
Initial code flow graph for samnmax/room-17-209.dmp

The next step is to combine some of these instructions into groups of instructions, to reduce the number of vertices in the graph.

Posted in Decompiler, GSoC at 2010-06-13 15:08:33