Using Zeus with Z80

Find Tips and tricks on how to better use the Zeus IDE. Feel free to post your own tips but please do not post bug reports, feature requests or questions here.
Post Reply
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Using Zeus with Z80

Post by jussij »

IMPORTANT: Make sure you are using the latest version of Zeus which can be downloaded from here: https://www.zeusedit.com/download.html

1. Setup Keywords
Create a new document type as described here: viewtopic.php?f=5&t=176

Download the keywords.zip attachment and create a new document type using details:

General Panel:

Code: Select all

    Extension: asm
Document Type: Z80 Document Type
Keyword Panel:

Code: Select all

       Insensitive: Turn on the 'Keywords are case insensitve' option.
      Line Comment: ;
           Literal: \
        Delimiters: #~!@$%^&*()[]{}<>=+/?|;:-,.'
           Numbers: ([a-fA-F0-9]+[Hh]*)|(0[xX]+[0-9A-Fa-f]+[Hh]+)|([0-9]+[.eEi+\-0-9L]*)  
          Reserved: Use the 'Import' button to import directives.txt file.
   1: User Defined: Use the 'Import' button to import instructions.txt file.
   2: User Defined: Use the 'Import' button to import registers.txt file.
   3: User Defined: Use the 'Import' button to import flags.txt file.
           Pattern: In the 'Keywords' group select the '5: User Defined' option and use this value in the 'Pattern' field.
                       ![\w]+\:
2. Setting Up Colors
Change to the Color panel and set the colors for the 'Reserved', '1: User Defined', '2: User Defined' and '3: User Defined' categories.

3. Setting Up CTags
Setup the ctags using the details found here: viewtopic.php?f=5&t=3367

In this case the following ctags details were used:

Code: Select all

--langdef=z80
--langmap=z80:.asm
--languages=-Asm
--regex-z80=/^([a-zA-Z]+[a-zA-Z0-9_]*):/\1/f,function/
--regex-z80=/^macro[ ]+([a-zA-Z]+[a-zA-Z0-9_]*)/\1/m,macro/
--regex-z80=/^([a-zA-Z]+[a-zA-Z0-9_]*)[ ]+equ[ ]+/\1/v,variable/
4. Creating a Workspace
You test these changes you need to create a works space containing Z80 files.

If these configuration changes are correct:

a. The Class panel should show the tags for the all the files in the workspace.
b. The Tags navigation and search feature should work

More details on creating a workspace can be found here: viewtopic.php?f=5&t=33
Attachments
keywords.zip
(956 Bytes) Downloaded 478 times
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Re: Using Zeus with Z80

Post by jussij »

Other Z80 References
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Re: Using Zeus with Z80

Post by jussij »

Assembly Language Tutorials
Post Reply