A1002: CASE, DEFAULT or ENDSW detected outside from a SWITCH block

[ERROR]

Description

In Avocet compatibility mode, a CASE, DEFAULT or ENDSW directive was found without a previous SWITCH directive.

Note

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

Example
     xxx:   equ 0

     ;SWITCH xxx

       CASE 1

          DC.B 100

       CASE 2

          DC.B 200

       CASE 4

          DC.B 400

       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.