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

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

No files matched your search

@@ -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()