.extern

Tells the assembler to import the specified labels, that is, find the definitions in another file.

  .extern label [, label]  
Parameter

label

Any valid label.

Remarks

You cannot import equates or local labels.

An alternative syntax for this directive is .extern section:label, as in .extern .sdata:current_line. Some processor architectures require this alternative syntax to distinguish text from data.