High and Low Operators on External Items

ID Number: Q28625

5.10

MS-DOS

Problem:

The High and Low operators are not working on my external

variables. The following source code demonstrates the problem:

.model small

extrn e:dword

.data

dd 8 dup(low e,high e)

end

Response:

The source code above exhibits the incorrect use of an EXTRN

statement. The EXTRN statement must be either defined within a segment

or referenced using a segment override. In the above example, the

.DATA should be placed before the EXTRN statement in order to

associate the variable "e" with a segment.