AS2 disassembler fixed (jump to the middle of the instuction)

This commit is contained in:
Honfika
2013-09-03 00:35:24 +02:00
parent e087342e72
commit 8f4fbb6679
26 changed files with 1254 additions and 766 deletions
@@ -50,8 +50,8 @@ public class ActionWith extends Action implements GraphSourceItemContainer {
return false;
}
public ActionWith(SWFInputStream sis, ReReadableInputStream rri, int version) throws IOException {
super(0x94, 2);
public ActionWith(int actionLength, SWFInputStream sis, ReReadableInputStream rri, int version) throws IOException {
super(0x94, actionLength);
codeSize = sis.readUI16();
this.version = version;
}
@@ -107,6 +107,16 @@ public class ActionWith extends Action implements GraphSourceItemContainer {
return ret;
}
@Override
public void setContainerSize(int index, long size) {
if (index == 0) {
codeSize = (int) size;
}
else {
throw new IllegalArgumentException("Index must be 0.");
}
}
@Override
public String getASMSourceBetween(int pos) {
return "";