Microsoft KB Archive/25261

From BetaArchive Wiki
< Microsoft KB Archive
Revision as of 18:53, 18 July 2020 by 3155ffGd (talk | contribs) (importing KB archive)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Using the Combine Type AT to Load Data at a Specific Address ID Number: Q25261

1.25 1.27 3.01 5.00 MS-DOS

Question:

Can I specify a physical load address for a data segment using AT?

Response:

No. The AT combine type can only be used to make templates. Data initialized within a segment using AT will not be put into memory. In fact, the segment will not be assigned any memory. AT can only be used to set up a template so that variables can be made to have specific addresses in memory.

The following example shows how to use AT to set a FAR label to a specific address:

ASEG SEGMENT BYTE AT 0000H

            ORG  100H

TEMPLATE_LABEL: LABEL FAR ASEG ENDS