Assembly Language Help (alang.hlp) (
Table of Contents;
Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
Start Code Segment
◄Example► ◄Up► ◄Contents► ◄Index► ◄Back►
────────────────────────────────────────────────────────────────────────────
Syntax: .CODE [name]
See also: @code, .MODEL, .DATA, .STACK, @CodeSize,
Table of Memory Models
Description:
Starts a code segment (with segment name <name>, if given)
and ends the previous segment, if any. Aligns the segment on a
2-byte boundary (.8086, .186, .286) or a 4-byte boundary (.386,
.486). The .MODEL directive must precede this directive.
Segment name <name> is an optional parameter that overrides the
default segment name. If <name> is not specified, the assembler
generates a segment called _TEXT (tiny, small, compact, and flat
models) or <modulename>_TEXT (medium, large, and huge models).
-♦-