Skip to content

Latest commit

 

History

History
29 lines (21 loc) · 741 Bytes

dot-code.md

File metadata and controls

29 lines (21 loc) · 741 Bytes
title description ms.date f1_keywords helpviewer_keywords
.CODE
Learn more about: .CODE
12/17/2019
.CODE
.CODE directive

.CODE

Indicates the start of a code segment.

When using 32-bit MASM, this should be used along with .MODEL.

Syntax

.CODEname
segmentItem ⟧...
codesegmentnameId ENDS;;⟧

Parameters

name
Optional parameter that specifies the name of the code segment. The default name is _TEXT for tiny, small, compact, and flat models. The default name is modulename_TEXT for other models.

See also

Directives Reference
.DATA
MASM BNF Grammar