Find All References and Code Folding

If reporting a bug with the Zeus IDE please post the details here. Please do not post questions here.
Post Reply
Matt
Posts: 1
Joined: Tue Dec 03, 2013 4:15 pm

Find All References and Code Folding

Post by Matt »

Hi Jussi,

The feature to "Find All References" and "Code Folding"can't correctly work in x86 .asm files.

1)Find All References
Even a label(or symbol) exists and is called many times, but Zeus displays a message: The "xxx" tag was not found. "Go to Definition" exists the same problem.
e.g.,

Code: Select all

        var1  dw 0
        ....         
        jb      loop$z             
        add     var1, eax     
        adc     var1, 0
        sub     var2, eax
When trying to find all references for "var1", I always get the tip: The "var1" tag was not found.


2)Code Folding
Zeus can't correctly recognize code-folding for the x86 .asm files,
e.g.,

Code: Select all

 BEGIN:proc
        END:endp 
       
        BEGIN:macro  
        END:endm

        BEGIN:segment
        END:ends
  
        BEGIN:struct
        END:ends
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Post by jussij »

Hi Matt,

Thanks for taking the time to send in your bug report.
1)Find All References
Even a label(or symbol) exists and is called many times, but Zeus displays a message:...
The meta data for this feature is generated by the ctags utility so I suspect the ctags is not generating any data for that symbol :?

If you e-mail me a sample of a complete asm files containing the types of things you'd expect to be able to navigate to (i.e. macros, functions, labels, variables etc) I'd be happy to try and get the ctags to recognise these items.

There is an e-mail button below.
2)Code Folding
Zeus can't correctly recognize code-folding for the x86 .asm files
To fix this open the xFolder.ini which, depending on the version of Windows you're running is found here:

Code: Select all

C:\Program Files\Zeus\xFolder.ini
or here:

Code: Select all

C:\Users\CurrentUser\AppData\Roaming\Xidicone\Zeus\xFolder.ini
NOTE: The CurrentUser represents the user ID of the current user.

In that file add the asm file extension to the following line:

Code: Select all

Pascal=p;pas;asm
If you find other folding issues or have suggestions on how to improve the folding for asm please refer to this link: http://www.zeusedit.com/zforum/viewforum.php?f=8

Cheers Jussi
Post Reply