Microsoft KB Archive/25261: Difference between revisions

From BetaArchive Wiki
(importing KB archive)
 
m (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/")
 
(No difference)

Latest revision as of 18:19, 12 August 2020

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