git.asbjorn.biz
/
swftools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
81ae19a
)
removed duplicate opcodes
author
kramm
<kramm>
Sun, 6 Apr 2008 20:31:51 +0000
(20:31 +0000)
committer
kramm
<kramm>
Sun, 6 Apr 2008 20:31:51 +0000
(20:31 +0000)
lib/modules/swfabc.c
patch
|
blob
|
history
lib/modules/swfabc_ops.c
patch
|
blob
|
history
diff --git
a/lib/modules/swfabc.c
b/lib/modules/swfabc.c
index
c2d566f
..
d945bb3
100644
(file)
--- a/
lib/modules/swfabc.c
+++ b/
lib/modules/swfabc.c
@@
-650,7
+650,6
@@
opcode_t opcodes[]={
{0x0d, "ifnle", "j"},
{0x0c, "ifnlt", "j"},
{0x14, "ifne", "j"},
{0x0d, "ifnle", "j"},
{0x0c, "ifnlt", "j"},
{0x14, "ifne", "j"},
-{0x14, "ifne", "j"},
{0x19, "ifstricteq", "j"},
{0x1a, "ifstrictne", "j"},
{0x11, "iftrue", "j"},
{0x19, "ifstricteq", "j"},
{0x1a, "ifstrictne", "j"},
{0x11, "iftrue", "j"},
@@
-689,7
+688,7
@@
opcode_t opcodes[]={
{0x1d, "popscope", ""},
{0x24, "pushbyte", "b"},
{0x2f, "pushdouble", "u"}, //index into floats
{0x1d, "popscope", ""},
{0x24, "pushbyte", "b"},
{0x2f, "pushdouble", "u"}, //index into floats
-{0x27, "pushtrue", ""},
+{0x27, "pushfalse", ""},
{0x2d, "pushint", "u"}, //index into ints
{0x31, "pushnamespace", "u"}, //index into namespace
{0x28, "pushnan", ""},
{0x2d, "pushint", "u"}, //index into ints
{0x31, "pushnamespace", "u"}, //index into namespace
{0x28, "pushnan", ""},
diff --git
a/lib/modules/swfabc_ops.c
b/lib/modules/swfabc_ops.c
index
a8290e1
..
3f908c4
100644
(file)
--- a/
lib/modules/swfabc_ops.c
+++ b/
lib/modules/swfabc_ops.c
@@
-135,13
+135,13
@@
void abc_convert_s(abc_code_t*c)
{
swf_SetU8(c->tag, 0x70);
}
{
swf_SetU8(c->tag, 0x70);
}
-void abc_debug(abc_code_t*c, int v, char*s, int v, int v)
+void abc_debug(abc_code_t*c, int v, char*s, int v3, int v2)
{
swf_SetU8(c->tag, 0xef);
swf_SetU8(c->tag, v);
swf_SetU30(c->tag, dict_update(c->abc->strings, s, 0));
{
swf_SetU8(c->tag, 0xef);
swf_SetU8(c->tag, v);
swf_SetU30(c->tag, dict_update(c->abc->strings, s, 0));
- swf_SetU8(c->tag, v);
- swf_SetU30(c->tag, v);
+ swf_SetU8(c->tag, v3);
+ swf_SetU30(c->tag, v2);
}
void abc_debugfile(abc_code_t*c, char*s)
{
}
void abc_debugfile(abc_code_t*c, char*s)
{
@@
-283,69
+283,65
@@
void abc_hasnext(abc_code_t*c)
{
swf_SetU8(c->tag, 0x1f);
}
{
swf_SetU8(c->tag, 0x1f);
}
-void abc_hasnext2(abc_code_t*c, int v, int v)
+void abc_hasnext2(abc_code_t*c, int v, int v2)
{
swf_SetU8(c->tag, 0x32);
swf_SetU30(c->tag, v);
{
swf_SetU8(c->tag, 0x32);
swf_SetU30(c->tag, v);
- swf_SetU30(c->tag, v);
+ swf_SetU30(c->tag, v2);
}
}
-void abc_ifeq(abc_code_t*c, )
+void abc_ifeq(abc_code_t*c, int target)
{
swf_SetU8(c->tag, 0x13);
}
{
swf_SetU8(c->tag, 0x13);
}
-void abc_iffalse(abc_code_t*c, )
+void abc_iffalse(abc_code_t*c, int target)
{
swf_SetU8(c->tag, 0x12);
}
{
swf_SetU8(c->tag, 0x12);
}
-void abc_ifge(abc_code_t*c, )
+void abc_ifge(abc_code_t*c, int target)
{
swf_SetU8(c->tag, 0x18);
}
{
swf_SetU8(c->tag, 0x18);
}
-void abc_ifgt(abc_code_t*c, )
+void abc_ifgt(abc_code_t*c, int target)
{
swf_SetU8(c->tag, 0x17);
}
{
swf_SetU8(c->tag, 0x17);
}
-void abc_ifle(abc_code_t*c, )
+void abc_ifle(abc_code_t*c, int target)
{
swf_SetU8(c->tag, 0x16);
}
{
swf_SetU8(c->tag, 0x16);
}
-void abc_iflt(abc_code_t*c, )
+void abc_iflt(abc_code_t*c, int target)
{
swf_SetU8(c->tag, 0x15);
}
{
swf_SetU8(c->tag, 0x15);
}
-void abc_ifnge(abc_code_t*c, )
+void abc_ifnge(abc_code_t*c, int target)
{
swf_SetU8(c->tag, 0x0f);
}
{
swf_SetU8(c->tag, 0x0f);
}
-void abc_ifngt(abc_code_t*c, )
+void abc_ifngt(abc_code_t*c, int target)
{
swf_SetU8(c->tag, 0x0e);
}
{
swf_SetU8(c->tag, 0x0e);
}
-void abc_ifnle(abc_code_t*c, )
+void abc_ifnle(abc_code_t*c, int target)
{
swf_SetU8(c->tag, 0x0d);
}
{
swf_SetU8(c->tag, 0x0d);
}
-void abc_ifnlt(abc_code_t*c, )
+void abc_ifnlt(abc_code_t*c, int target)
{
swf_SetU8(c->tag, 0x0c);
}
{
swf_SetU8(c->tag, 0x0c);
}
-void abc_ifne(abc_code_t*c, )
+void abc_ifne(abc_code_t*c, int target)
{
swf_SetU8(c->tag, 0x14);
}
{
swf_SetU8(c->tag, 0x14);
}
-void abc_ifne(abc_code_t*c, )
-{
- swf_SetU8(c->tag, 0x14);
-}
-void abc_ifstricteq(abc_code_t*c, )
+void abc_ifstricteq(abc_code_t*c, int target)
{
swf_SetU8(c->tag, 0x19);
}
{
swf_SetU8(c->tag, 0x19);
}
-void abc_ifstrictne(abc_code_t*c, )
+void abc_ifstrictne(abc_code_t*c, int target)
{
swf_SetU8(c->tag, 0x1a);
}
{
swf_SetU8(c->tag, 0x1a);
}
-void abc_iftrue(abc_code_t*c, )
+void abc_iftrue(abc_code_t*c, int target)
{
swf_SetU8(c->tag, 0x11);
}
{
swf_SetU8(c->tag, 0x11);
}
@@
-389,7
+385,7
@@
void abc_istypelate(abc_code_t*c)
{
swf_SetU8(c->tag, 0xb3);
}
{
swf_SetU8(c->tag, 0xb3);
}
-void abc_jump(abc_code_t*c, )
+void abc_jump(abc_code_t*c, int target)
{
swf_SetU8(c->tag, 0x10);
}
{
swf_SetU8(c->tag, 0x10);
}
@@
-410,10
+406,6
@@
void abc_lessthan(abc_code_t*c)
{
swf_SetU8(c->tag, 0xad);
}
{
swf_SetU8(c->tag, 0xad);
}
-void abc_lookupswitch(abc_code_t*c, )
-{
- swf_SetU8(c->tag, 0x1b);
-}
void abc_lshift(abc_code_t*c)
{
swf_SetU8(c->tag, 0xa5);
void abc_lshift(abc_code_t*c)
{
swf_SetU8(c->tag, 0xa5);
@@
-501,7
+493,7
@@
void abc_pushdouble(abc_code_t*c, int v)
swf_SetU8(c->tag, 0x2f);
swf_SetU30(c->tag, v);
}
swf_SetU8(c->tag, 0x2f);
swf_SetU30(c->tag, v);
}
-void abc_pushtrue(abc_code_t*c)
+void abc_pushfalse(abc_code_t*c)
{
swf_SetU8(c->tag, 0x27);
}
{
swf_SetU8(c->tag, 0x27);
}