Quote Originally Posted by 2kaud View Post
Code:
value = stk[stk_ptr];
stk_ptr--;
becomes:

Code:
value = stk[stk_ptr--];
Thanks updated now