Fixed delocal_p, inclocal_p.

This commit is contained in:
Jindra Petřík
2024-08-10 22:35:08 +02:00
parent 56ec49865c
commit a2e6b2e0b1
2 changed files with 2 additions and 2 deletions

View File

@@ -71,7 +71,7 @@ public class DecLocalPIns extends InstructionDefinition {
//same for declocal and declocalp (decimal)
@Override
public void translate(AVM2LocalData localData, TranslateStack stack, AVM2Instruction ins, List<GraphTargetItem> output, String path) {
int regId = ins.operands[0];
int regId = ins.operands[1];
boolean isPostDec = false;
if (!stack.isEmpty()) {
GraphTargetItem stackTop = stack.peek();

View File

@@ -71,7 +71,7 @@ public class IncLocalPIns extends InstructionDefinition {
//same for inclocal and inclocalp (decimal)
@Override
public void translate(AVM2LocalData localData, TranslateStack stack, AVM2Instruction ins, List<GraphTargetItem> output, String path) {
int regId = ins.operands[0];
int regId = ins.operands[1];
boolean isPostInc = false;
if (!stack.isEmpty()) {
GraphTargetItem stackTop = stack.peek();