Hopfengetraenk/Fas-Disasm

cmd: 0.00 & invalid image

Opened this issue · 1 comments

cw2k commented

Thanks for the feed back
Well code is alpha state.
Well a very cheap workaround here can be to stuck on the n-key.
To quickly close each message box with 'no'.
... or press Yes and uncomment the message box in the source code.

Well I remember that when I stopped working on that project that there were serve problems with the 'brancher'. I was doing some 'optimization' for nicer Lisp code that messed up the hole thing. (+Sorry I was not realing using github so you may go back to a somehow working version.)
In some situations it will mess the Interpretation pointer making it pointing in the middle of some command, result is that it interpret a parameter as a command. That will messing up interpretation for one or commands. (Until Interpretation flow slips back into normal flow.)

So you may disable the brancher and scarify the decompiling of If and cond repeat ... in favor for completing the decompile on asm level.
So Plan A: in the Form 'frm_main' make 'Disable Brancher' visible and enable it.
In case that has no effect.(I guess I didn't implementierend disabling the brancher).
You'll need to disable it in the sources:
Cut off the function 'Decompile' in Fas_Brancher.cls

Public Sub Decompile(Last_FasCmdline As FasCommando, FasCmdline As FasCommando, Branch_Firstpart)

by just putting an End Sub just after its beginning.
If there are still problems in finishing the disassembly Open "src/FasFile.cls" and search for "brancher." - watch the code around carefully and then uncomment it.

Plan B is of course fixing the problem.
In case you try have a look at
https://github.com/Hopfengetraenk/Fas-Disasm/blob/master/Branching%20If%20Cond%20And%20while%20repeat.txt
that shows the specs of and the 'pattern' to recognize branches and loops.