I finally have some actual output working. It’s only a proof of concept right now, but it’s a nice start.
Here is the output the decompiler generates for one of the short Sam & Max scripts – one of the scripts I used for the code flow testing (link points to the graph for that script):
C:\scummvm\gsoc2010-decompiler>decompile -escummv6 script-33.dmp VAR_GAME_LOADED = 0; var173 = var177; var177 = 874; Unknown opcode 6B99 at address 00000018 Unknown opcode 66 at address 0000001A
It only does these simple assignments for now – everything else is left unknown – but like I said, it’s a start.
The opcodes it complains about are cursorCmd_Image and stopObjectCodeB, since I don’t handle those yet.