2497 Swap instruction handling. WIP

This commit is contained in:
Jindra Petřík
2025-07-31 19:34:24 +02:00
parent 14dc0f9e08
commit b3a693e4e3
55 changed files with 366 additions and 36 deletions

View File

@@ -3369,6 +3369,7 @@ public class Graph {
if (code.size() <= part.start) {
if (!(!ret.isEmpty() && ret.get(ret.size() - 1) instanceof ExitItem)) {
stack.moveToOutput(ret, true);
ret.add(new ScriptEndItem(dialect));
}
return ret;
@@ -3533,6 +3534,7 @@ public class Graph {
} while (exHappened);
if ((part.end >= code.size() - 1) && getNextParts(localData, part).isEmpty()) {
if (!(!output.isEmpty() && output.get(output.size() - 1) instanceof ExitItem)) {
stack.moveToOutput(output, true);
output.add(new ScriptEndItem(dialect));
}
}