parmX

parmX <namelist>

The parmX macro defines one or more function parameters. The parameters provide access to the arguments passed to the function and must appear in the same order as the arguments in the function call.

Parameters

X

Specifies the storage size. This parameter can be one of the following types:

Type Description

B Byte (allocated on a word boundary on the stack)
W Word (allocated on a word boundary)
D Doubleword (allocated on a word boundary)
Q Quadruple word (aligned on a word boundary)
T 10-byte word (aligned on a word boundary)
CP Code pointer (one word for small and compact models)
DP Data pointer (one word for small and medium models)

namelist

Specifies the list of the parameter names.

Comments

The parmD macro creates two additional symbols, OFF_name and SEG_name. OFF_name is the offset portion of the parameter and SEG_name is the segment portion.

Only the parameter name is required when referring to the corresponding argument. Write your code in the following manner:

mov     al,var1

It should not be written like this:

mov     al,byte ptr var1[bp]

Examples

The following examples demonstrate the usage of the parmX macro:

parmW var1
parmB <var2,var3,var4>
parmD <var5>