Assembly Language The Stack


The stack of computers is like a stack of books. PUSH adds one to the top and POP takes the uppermost away. Like in real life the stack cannot be endless, so it has maximum size. The stack can be used for sorting algorithms, to handle a bigger amount of data or to safe values of registers while doing another operation.