implemented return instruction; Fixed Bug in Stack.pop()

This commit is contained in:
Darkress
2023-05-31 01:29:26 +02:00
parent 666cc2881b
commit 87bacdb1e6
4 changed files with 23 additions and 11 deletions

View File

@@ -14,9 +14,8 @@ public class Stack
public static int pop()
{
int tmp = stack[stackPointer];
pointPrevious();
return tmp;
return stack[stackPointer];
}
public static int peek()