implemented return instruction; Fixed Bug in Stack.pop() (#4)
Co-authored-by: Darkress <30271678+DarkressX@users.noreply.github.com> Reviewed-on: darkress/pic16f84-sim#4
This commit was merged in pull request #4.
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user