#Decomplie
3 messages in this thread
Is there any program/library I can use to decompile code into Pascal?
Simon,
The best you can do is a structured disassembly of procedures
into assembly with my product, MacNosy.
Note that the output of MacNosy can be fed into the MPW
assembler.
Steve
Here is an example of what it can do,
the program is divided up into procedures, and within
a procedure labels are assigned, etc:
vak_1 VEQU -80
param4 VEQU 8
param3 VEQU 12
param2 VEQU 16
param1 VEQU 18
funRslt VEQU 22
;-refs – copyROM128
306: 4E56 FFB0 'NV..' Create LINK A6,#-$50
30A: 41EE FFB0 200FFB0 LEA vak_1(A6),A0
30E: 216E 0012 0012 2000012 MOVE.L param1(A6),ioNamePtr(A0)
314: 316E 0010 0016 2000010 MOVE param2(A6),ioVRefNum(A0)
31A: 4228 001A 'B(..' CLR.B ioFVersNum(A0)
31E: A008 '..' _Create ; (A0|IOPB:ParamBlockRec):D0\OSErr
320: 4A40 'J@' TST D0
322: 6616 100033A BNE.S lak_1
324: 4268 001C 'Bh..' CLR ioFDirIndex(A0)
328: A00C '..' _GetFileInfo ;
(A0|IOPB:ParamBlockRec):D0\OSErr
32A: 2008 ' .' MOVE.L A0,D0
32C: 43E8 0020 'C.. ' LEA ioFlFndrInfo(A0),A1
330: 22EE 0008 2000008 MOVE.L param4(A6),(A1)+
334: 22AE 000C 200000C MOVE.L param3(A6),(A1)
338: A00D '..' _SetFileInfo
33A: 3D40 0016 2000016 lak_1 MOVE D0,funRslt(A6)
33E: 4E5E 'N^' UNLK A6
340: 225F '"_' POP.L A1
342: DFFC 0000 000E '……' ADDA.L #14,A7
348: 4ED1 'N.' JMP (A1)
Steve:
Does theDebugger now support THINK C 6.0 source debugging from the project?
Have you any plans to implement support for THINK's new XSYM external symbol
file format (ie… to allow source debugging of INITs and the like written in
THINK C)?