<<< The Program Stack | Index | Saving Operands on the Stack >>> |
The stack is assembled as uninitialized segment of a finite size.
For example, the .STACK directive
.STACK 4096
tells the assembler to reserve 4096 bytes of uninitialized storage.
The operating system initializes ESP to the address of the first byte above the 4096 bytes in the stack.
A larger or smaller stack could be allocated, depending on the anticipated usage in the program.
<<< The Program Stack | Index | Saving Operands on the Stack >>> |