News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

PROCMAP A new toy for masm32

Started by hutch--, June 16, 2008, 02:53:04 AM

Previous topic - Next topic

hutch--

I have meant to write a tool like this for a long time as it saves a lot of time looking for procedures in different files. This is an under 1 hour basic scruffy that appears to work OK.

It gets a list of all asm files in a directory then scans each file for procedures which it the lists in its output file.

You get an output that is typically like the following.



; source file = filedlgs.asm
        ; Procedure name = GetFileName
        ; Procedure name = SaveFileName

; source file = fileio.asm
        ; Procedure name = ofCallBack
        ; Procedure name = sfCallBack
        ; Procedure name = StreamFileIn
        ; Procedure name = StreamFileOut
        ; Procedure name = MergeFile

; source file = misc.asm
        ; Procedure name = Select_All
        ; Procedure name = Confirmation

; source file = richedit.asm
        ; Procedure name = WinMain
        ; Procedure name = WndProc
        ; Procedure name = TopXY
        ; Procedure name = EditControl
        ; Procedure name = hEditProc

; source file = search.asm
        ; Procedure name = CallSearchDlg
        ; Procedure name = SearchProc
        ; Procedure name = TextFind

; source file = statusbr.asm
        ; Procedure name = Do_Status

; source file = tbmacros.asm

; source file = toolbar.asm
        ; Procedure name = Do_ToolBar
        ; Procedure name = SetBmpColor



It is designed to work in the directory it is called from and it does not recurse to lower directories. If your application has nested directories as is often the case with larger projects, you would need to run it in each nesed directory to find the procedures in asm files in each.

It is desined to be put in the MASM32 directory and then set up on the Tools menu with a heading like "Map procedures". It then can be used from any directory that the editor is currently in. When run it dispays the results in a new instance of QE, if you use other editors or an IDE, you can run it by iself and open procmap.txt.

The basic source code is provided and if you own either of the two PowerBASIC compilers, it builds in both.

[attachment deleted by admin]
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php