A newbie guide to Assembler programing
The Stack

© 1997 by Cruehead / MiB


Ok, what the heck is it?

The stack is simply a place where you can temporarily store data. You store data with the push command, and you access it with the pop command. The stack works like this: last in, first out.


Example:

push ax
push bx
push cx
...
pop cx
pop bx
pop ax

So you simply pop the registers in the reverse order that you pushed them.


The SS register is the stack register and the SP is the stack offset register (have a look at the registers page in order to understand what a register is)


Back to Asm tutorial page!Back to Asm tutorial page...

Copyright © MiB 1998. All rights reversed.

--------------760A40A3CC28647FC94C6E18--