A1003: CASE or DEFAULT is missing

[ERROR]

Description

In Avocet compatibility mode, after a SWITCH directive, an expression other than a CASE or DEFAULT entry was found.

Note

This message does only occur for assemblers supporting the Avocet compatibility mode.

Example
     xxx:   equ 0

     SWITCH xxx

       ; CASE 1

          DC.B 0

       CASE 2

          DC.W 0

       CASE 4

          DC.L 0

       DEFAULT

          FAIL 1

     ENDSW

  
Tips

Remove the semicolon in the example. Make sure that your assembler does support the Avocet compatibility mode and that this mode is switched on.