buffer[absTopOfStack(stackNum)] = value;
}
static int pop(int stackNum) throws Exception {
if (isEmpty(stackNum)) {
throw new EmptyStackException();
}
int value = buffer[absTopOfStack(stackNum)]; // Get top
buffer[absTopOfStack(stackNum)] = 0; // Clear index
stackPointer[stackNum]--; // Decrement pointer
return value;