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.
Current Segment Name Macro
 Example                                   Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
  Syntax:   @CurSeg
 
  See also: ENDS, MACRO, .DATA, .CODE
 
  Description:
 
     Text macro returning the name of the current segment. Useful for
     ASSUME statements and segment overrides (especially inside
     macros), as well as for ending the current segment when mixing
     simplified and full segments. @CurSeg allows you to terminate
     segments started in include files so that the segment will close
     before the next include. Returns <> (blank) when not in a segment.
                                    -♦-