debug instruction has u8 register index, but other instuctions (setlocal, getlocal, ...) has u30

This commit is contained in:
honfika@gmail.com
2015-11-24 21:39:18 +01:00
parent ac224ac9cf
commit 7eb2713bd6
2 changed files with 4 additions and 3 deletions

View File

@@ -349,10 +349,11 @@ public class AVM2Code implements Cloneable {
public static final int DAT_DEBUG_TYPE = OPT_U8 + 0x05;
//public static final int DAT_REGISTER_INDEX = OPT_U8 + 0x06;
public static final int DAT_REGISTER_INDEX = OPT_U8 + 0x06;
public static final int DAT_LINENUM = OPT_U30 + 0x07;
public static final int DAT_LOCAL_REG_INDEX = OPT_U8 + 0x08;
public static final int DAT_LOCAL_REG_INDEX = OPT_U30 + 0x08;
public static final int DAT_SLOT_INDEX = OPT_U30 + 0x09;

View File

@@ -25,7 +25,7 @@ import com.jpexs.decompiler.flash.abc.avm2.instructions.InstructionDefinition;
public class DebugIns extends InstructionDefinition {
public DebugIns() {
super(0xef, "debug", new int[]{AVM2Code.DAT_DEBUG_TYPE, AVM2Code.DAT_STRING_INDEX, AVM2Code.DAT_LOCAL_REG_INDEX, AVM2Code.OPT_U30}, false);
super(0xef, "debug", new int[]{AVM2Code.DAT_DEBUG_TYPE, AVM2Code.DAT_STRING_INDEX, AVM2Code.DAT_REGISTER_INDEX, AVM2Code.OPT_U30}, false);
}
@Override