Table of Contents

Memory Segment - Stack Segment (SS)

About

The Stack Segment is a segment that holds a stack.

It's a stack implementation of memory locations.

As the stack is a segment, it is a contiguous array of memory locations.

Management

Addressing

When using:

Operations (PUSH|POP)

Items are:

When an item is:

In this manner, the stack:

Size

A stack can be up to 4 GBytes long, the maximum size of a segment.

Pointer

Top

The ESP Stack pointer register points to the top of the stack segment.

Base

The EBP Base Pointer general purpose register points to the base of the stack segment

Documentation / Reference