Hopfengetraenk / Fas-Disasm

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

Set cmd:0x00 to NOP #3

Open congviet opened 5 years ago

congviet commented 5 years ago

I received a message:

image

May be set cmd:0x00 to NOP and don't show message? Thanks

cw2k commented 4 years ago

Well that cmd: 0x00 opcode is not the real problem. I guess there was some error before. Possible the 'brancher' messed up some Goto or jmp value so it pointed to a wrong location in the file, that is inside some command.

Please attach the concerning fas-file for debugging and deeper error analysis.

However the source is yours.

Implementing the change: Go to /SRC/FasFile.cls InterpretStream_rek https://github.com/Hopfengetraenk/Fas-Disasm/blob/c4c0ed65e6b9f230dda9dcd0feeb898d6ef7f64c/src/FasFile.cls#L2752

'nop
         Case &H20, &H62, &H63 ' ',  'b', 'c'
              DisASM = "nop_" & Chr(FasCmdline.Commando)

and change it into Case &H0, &H20, &H62, &H...

However I don't recommend doing this nor I will implement this. I checked the implementation against the AutoCAD Lisp Interpreter. Opcode 0x00 is not defined there.