Using SHORT sections

Symbols that are defined in a section defined with the SHORT qualifier are always accessed using the direct addressing mode, as listed in the following listing:

Listing: Using SHORT sections

...
shortSec: SECTION SHORT

DirLabel: DS.B  3

dataSec:  SECTION

ExtLabel: DS.B  5

...

codeSec:  SECTION

...

          LDA   DirLabel ; Direct addressing mode is used.

...

          LDA   ExtLabel ; Extended addressing mode is used.