When we pop off the top object , we are taking it off the stack . If we want to add another card to the top of the stack , we push . If a pop operation on the stack causes the stack pointer to move past the origin of the stack , a stack underflow occurs .