up, next.

Stack segments

A stack segment contains, not surprisingly, a stack. The ss register will point to the beginning of the stack segment. The sp register will point to the offset within the stack segment of the item at the top of the stack. Any push or pop operation uses the ss and sp registers to determine where to read or write data in the stack. Normally, you have only one stack segment in a given program, although it is possible (though a bit tricky) to have more.

up, next.