Assembly Language Help (alang.hlp) (
Table of Contents;
Topic list)
Create Communal Variables
◄Up► ◄Contents► ◄Index► ◄Back►
────────────────────────────────────────────────────────────────────────────
Syntax: COMM [langtype] [NEAR│FAR] label:type[:count]
[,[langtype] [[NEAR│FAR] label:type[:count]]...
See also: COMM diagram, EXTERNDEF, PUBLIC, .MODEL,
Table of Memory Models, /C<x> Command-Line Option,
MASM 5.1 Compatibility
Description:
Creates one or more communal variables. Communal variables are
uninitialized, public, and allocated by the linker. The assembler
has no control over the order, position, or initial value of
communal variables. Communal variables are usually declared in
include files. Use EXTERNDEF to include data variables from other
languages.
Parameter Description
NEAR│FAR Communal variable distance. PROC is interpreted
as NEAR or FAR depending on the memory model
chosen.
langtype Any language type. Determines how the linker
outputs variable names.
See: ◄language type►
label Name of the variable.
type Type specifier (BYTE, WORD, etc.), constant, or
structure name.
count Specifies the number of data objects in an array
(1 is the default).
-♦-