diff --git a/build.xml b/build.xml
index 980d8111e..a64ca7b52 100644
--- a/build.xml
+++ b/build.xml
@@ -40,6 +40,7 @@
+
diff --git a/libsrc/ffdec_lib/build.xml b/libsrc/ffdec_lib/build.xml
index 60f95532b..2fc944a80 100644
--- a/libsrc/ffdec_lib/build.xml
+++ b/libsrc/ffdec_lib/build.xml
@@ -34,6 +34,7 @@
+
diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other2/AddDIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other2/AddDIns.java
index b9c0945df..3f736a992 100644
--- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other2/AddDIns.java
+++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other2/AddDIns.java
@@ -32,7 +32,7 @@ import com.jpexs.decompiler.flash.abc.avm2.instructions.InstructionDefinition;
public class AddDIns extends InstructionDefinition {
public AddDIns() {
- super(0x9B, "add_d", new int[]{}, true /*?*/, AVM2InstructionFlag.NO_FLASH_PLAYER, AVM2InstructionFlag.UNKNOWN_OPERANDS, AVM2InstructionFlag.UNKNOWN_STACK);
+ super(0x9B, "add_d", new int[]{}, true /*?*/, AVM2InstructionFlag.NO_FLASH_PLAYER, AVM2InstructionFlag.UNKNOWN_OPERANDS, AVM2InstructionFlag.UNKNOWN_STACK, AVM2InstructionFlag.UNDOCUMENTED);
}
@Override
diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/docs/As3PCodeDocs.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/docs/As3PCodeDocs.java
index 1ca24126b..6fee4e1bc 100644
--- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/docs/As3PCodeDocs.java
+++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/docs/As3PCodeDocs.java
@@ -1,19 +1,29 @@
package com.jpexs.decompiler.flash.docs;
+import com.jpexs.decompiler.flash.ApplicationInfo;
import com.jpexs.decompiler.flash.abc.avm2.AVM2Code;
import com.jpexs.decompiler.flash.abc.avm2.instructions.AVM2InstructionFlag;
import com.jpexs.decompiler.flash.abc.avm2.instructions.InstructionDefinition;
import com.jpexs.helpers.Cache;
import com.jpexs.helpers.Helper;
+import com.jpexs.helpers.utf8.Utf8Helper;
import java.io.IOException;
+import java.io.InputStream;
import java.io.UnsupportedEncodingException;
+import java.text.DateFormat;
+import java.text.SimpleDateFormat;
import java.util.Arrays;
+import java.util.Date;
import java.util.HashMap;
+import java.util.Locale;
import java.util.Map;
import java.util.Properties;
import java.util.ResourceBundle;
import java.util.Set;
+import java.util.TimeZone;
import java.util.TreeSet;
+import java.util.logging.Level;
+import java.util.logging.Logger;
/**
* Generator for AVM2 instruction set documentation.
@@ -65,28 +75,74 @@ public class As3PCodeDocs {
return identName.toString();
}
- public static String getDocsForIns(String insName, boolean showDataSize, boolean ui) {
+ public static String getDocsForIns(String insName, boolean showDataSize, boolean ui, boolean withStyle) {
if (!nameToDef.containsKey(insName)) {
return null;
}
- return getDocsForIns(nameToDef.get(insName), showDataSize, ui);
+ return getDocsForIns(nameToDef.get(insName), showDataSize, ui, withStyle);
}
private static String getProperty(String name) {
if (prop.containsKey(name)) {
- return prop.getString(name);
+ return Helper.escapeHTML(prop.getString(name));
}
return null;
}
- public static String getDocsForIns(InstructionDefinition def, boolean showDataSize, boolean ui) {
- final String cacheKey = def.instructionName + "|" + (showDataSize ? 1 : 0) + "|" + (ui ? 1 : 0);
+ private static String htmlFooter() {
+ StringBuilder sb = new StringBuilder();
+
+ sb.append("