Microsoft KB Archive/25261

From BetaArchive Wiki
< Microsoft KB Archive
Revision as of 19:19, 12 August 2020 by X010 (talk | contribs) (X010 moved page Microsoft KB Archive/Q25261 to Microsoft KB Archive/25261 without leaving a redirect: Text replacement - "Microsoft KB Archive/Q" to "Microsoft 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