3.8 The stack Segment and the push and pop Instructions
This chapter mentions that all variables you declare in the var
section wind up in the stack
memory segment. However, var
objects are not the only things in the stack
memory section; your programs manipulate data in the stack
segment in many different ways. This section describes the stack and introduces the push
and pop
instructions that manipulate data in the stack
section.
The stack
segment in memory is where the 80x86 maintains the stack. The stack is a dynamic data structure that grows and shrinks according to certain needs of the program. The stack also stores important information about the program including local variables, subroutine information, and temporary data.
The 80x86 controls ...
Get The Art of Assembly Language, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.