Hopfengetraenk / Fas-Disasm

Fas-Disassembler/Decompiler for AutoCAD Visual Lisp
37 stars 19 forks source link

TODO: Rename FAS-commands according to Forth-commands #5

Open cw2k opened 4 years ago

cw2k commented 4 years ago

It seem the ACAD-Lisp VM is implemented as some Forth Interpreter. So the plan is the rename label the FAS-Disasm commands ( intermediated code) according to Forth commands.

Example: Rename 0xB Pu_Last to DUP Concerns https://github.com/Hopfengetraenk/Fas-Disasm/blob/c4c0ed65e6b9f230dda9dcd0feeb898d6ef7f64c/src/FasFile.cls#L1159

         Case &HB: 'Stack Duplicate Element
            DisASM_short = "Pu_Last"
            Description = "Push last element again on stack"

Change to

         Case &HB: 'Stack Duplicate last element
            DisASM_short = "DUP"
            Description = "Push last element again on stack"

Well when writing the Disassembler I had no reference on how to name each command so I 'invented/created' these names.

Note it'll just effect the FAS intermediated code aka disassembling. The 2nd level decompiled LISP-code(*.lsp) will not be affected by this.