Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 923 Bytes

local-masm.md

File metadata and controls

26 lines (19 loc) · 923 Bytes
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: LOCAL
LOCAL (MASM)
12/16/2019
Local
LOCAL directive
76147e2d-23ca-4f1e-8817-81428becd113

LOCAL

In the first directive, within a macro, LOCAL defines labels that are unique to each instance of the macro.

Syntax

LOCAL localId ⟦, localId ...⟧

LOCAL labelId[count] ⟧ ⟦:qualifiedType⟧ ⟦, labelId[count] ⟧ ⟦qualifiedType⟧ ...⟧

Remarks

In the second directive, within a procedure definition (PROC), LOCAL creates stack-based variables that exist for the duration of the procedure. The labelId may be a simple variable or an array containing count elements, where count is a constant expression.

See also

Directives reference
MASM BNF Grammar