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.
End Segment and Structure Blocks
 ◄Example►                                   ◄Up► ◄Contents► ◄Index► ◄Back►
────────────────────────────────────────────────────────────────────────────
 
  Syntax:   name ENDS
 
  See also: SEGMENT, STRUCT, UNION, .DATA, .DATA?, @CurSeg, .STACK
 
  Description:
 
     Marks the end of a segment or a structure definition previously
     started with SEGMENT, STRUCT, or UNION. To end a simplified segment
     (such as one started with .DATA), use the line
 
          @CurSeg   ENDS          ;End current segment
 
     A single .STACK statement opens and closes the stack segment,
     so you should not include an additional ENDS statement.
                                    -♦-