mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-07-16 15:20:40 +00:00
debug instruction has u8 register index, but other instuctions (setlocal, getlocal, ...) has u30
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user