0 Members and 2 Guests are viewing this topic.
So all this does is convert an existing prog to its hex? Because i thought decompiling was a bit more
I wrote a 500-bytes equivalent in Axe a while ago that doesn't need any of your restrictions. It's called PROG2HEX, and what it does is simply getting a name from an input and unsquishing it in a program which has the same name starting with theta.
I understand you, but what if for example just runner112 has the decompiler so you can send him the asm programm(cmdv2) and he gives you the decompiled source(for easier rewrite)?
An Axe disassembler is nearly impossible for the following reasons:-You lose the names of Pointers, Labels, and Variables-You lose comments and code formatting-You can't tell if specific data was a string, or number list, or sprite, or picture, etc.-Each new version of axe changes the routines used so the disassembler would have to be rewritten each version-Peephole opts make it even more difficult to disassemble.-Axioms, inline assembly, and other things like that would not translateIt is however, fairly trivial to disassemble it to assembly, and then map native Axe routines and variable locations to the assembly program. But you would definitely not be able to turn it back into Axe language unless you do it by hand or something.
You should try to read through the thread first to see if your question has already been answered. In this case, it has been.