The present invention is generally directed to method and apparatus for
emulating a portion of a stack. Certain embodiments of the invention
manage a plurality of processor registers to store the top portion of the
stack. Data is managed in these registers by managing a pointer that
points to a current top-of-stack register. As data is pushed or popped
from the stack, the top-of-stack point is incremented or decremented
accordingly.