Page 1 of 1

Using Zeus with Z80

Posted: Thu Apr 21, 2022 11:51 pm
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

Re: Using Zeus with Z80

Posted: Wed Apr 27, 2022 5:20 am
by jussij
Other Z80 References

Re: Using Zeus with Z80

Posted: Fri Jul 01, 2022 11:55 am
by jussij
Assembly Language Tutorials