A2316: Section name required

[ERROR]

Description

A SWITCH directive is not followed by a symbol name. Absolute expressions or string are not allowed in a SWITCH directive. The symbol specified in a SWITCH directive must refer to a previously defined section.

Example
  dataSec: SECTION

  label1: DS.B 1

  codeSec: SECTION

           SWITCH $A344
  
Tips

Specify the name of a previously define section in the SWITCH instruction.

Example
  dataSec: SECTION

  label1: DS.B 1

  codeSec: SECTION

           SWITCH dataSec