FIX Stack & IOPorts

This commit is contained in:
2024-05-02 00:29:33 +02:00
parent 3c406378b2
commit f932a141ce
3 changed files with 13 additions and 15 deletions

View File

@ -17,7 +17,7 @@ public class ProgramStack {
}
public static void push(int value) {
if (returnStack.size() != 8) {
if ((returnStack.size() != 8 ) && (returnStack.size() <= stackIndex)){
returnStack.add(value);
incIndex();
}