$ (Last Referenced Segment)

The $ command displays or assigns a value to the last referenced segment number. The $ symbol can be used in place of a segment number where a segment number is expected within an input command string. In addition, the segment number value associated with the $ symbol is updated every time a segment number is specified within an input command string.

Syntax

── $ ─┬──────────────────┬─────────────────────────────────────────────┤
      ├─────┬─┬─<number>─┤
      └─ = ─┘ ├─ @ ──────┤
              └─ $ ──────┘

Explanation

The following text describes the meaning of each construct:

$ = <number>

If <number> is within the appropriate range of segment numbers, then the last referenced segment is changed to <number>.

$ = $

The last referenced segment is set to itself.

$ = @

The last referenced segment is set to the last referenced stack.

ASDNUMBER $ EXPAND

The expanded ASD information is displayed for the last referenced segment.