From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "enum" |
|---|
| subject | "Format:ABC" |
|---|
| claim | "AVM2 opcodes are single bytes; ruffle's OpCode enum lists 167 of them (this fact holds 100, so it is a selection), among them 0x02 nop, 0x03 throw, 0x10 jump, 0x11 iftrue, 0x12 iffalse, 0x1B lookupswitch, 0x20 pushnull, 0x24 pushbyte, 0x25 pushshort, 0x2C pushstring, 0x2D pushint, 0x2F pushdouble, 0x30 pushscope, 0x40 newfunction, 0x41 call, 0x42 construct, 0x46 callproperty, 0x47 returnvoid, 0x48 returnvalue, 0x4F callpropvoid, 0x5D findpropstrict, 0x60 getlex, 0x61 setproperty, 0x62 getlocal, 0x63 setlocal, 0x66 getproperty, 0x80 coerce, 0xA0 add, 0xD0-0xD3 getlocal_0..3, 0xD4-0xD7 setlocal_0..3, 0xEF debug, 0xF0 debugline, 0xF1 debugfile. Not in the values, for example: 0x15-0x1A further conditional jumps (iflt 0x15, ifle 0x16 ... ifstrictne 0x1A), Alchemy memory ops 0x35-0x3E (li8 ... sf64), sxi1 0x50, applytype 0x53, getglobalslot 0x6E, convert_u 0x74, checkfilter 0x78, coerce variants 0x81-0x89, bitnot 0x97, bitand/bitor/bitxor 0xA8-0xAA, and the integer arithmetic 0xC0-0xC7 (increment_i ... multiply_i)." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:ABC" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "AvmOpcode" |
|---|
| underlying_type | "uint8_t" |
|---|
| complete | false |
|---|
| values | | 0x01 | "bkpt" |
|---|
| 0x02 | "nop" |
|---|
| 0x03 | "throw" |
|---|
| 0x04 | "getsuper" |
|---|
| 0x05 | "setsuper" |
|---|
| 0x06 | "dxns" |
|---|
| 0x07 | "dxnslate" |
|---|
| 0x08 | "kill" |
|---|
| 0x09 | "label" |
|---|
| 0x10 | "jump" |
|---|
| 0x11 | "iftrue" |
|---|
| 0x12 | "iffalse" |
|---|
| 0x13 | "ifeq" |
|---|
| 0x14 | "ifne" |
|---|
| 0x1B | "lookupswitch" |
|---|
| 0x1C | "pushwith" |
|---|
| 0x1D | "popscope" |
|---|
| 0x1E | "nextname" |
|---|
| 0x1F | "hasnext" |
|---|
| 0x20 | "pushnull" |
|---|
| 0x21 | "pushundefined" |
|---|
| 0x23 | "nextvalue" |
|---|
| 0x24 | "pushbyte" |
|---|
| 0x25 | "pushshort" |
|---|
| 0x26 | "pushtrue" |
|---|
| 0x27 | "pushfalse" |
|---|
| 0x28 | "pushnan" |
|---|
| 0x29 | "pop" |
|---|
| 0x2A | "dup" |
|---|
| 0x2B | "swap" |
|---|
| 0x2C | "pushstring" |
|---|
| 0x2D | "pushint" |
|---|
| 0x2E | "pushuint" |
|---|
| 0x2F | "pushdouble" |
|---|
| 0x30 | "pushscope" |
|---|
| 0x31 | "pushnamespace" |
|---|
| 0x32 | "hasnext2" |
|---|
| 0x40 | "newfunction" |
|---|
| 0x41 | "call" |
|---|
| 0x42 | "construct" |
|---|
| 0x43 | "callmethod" |
|---|
| 0x44 | "callstatic" |
|---|
| 0x45 | "callsuper" |
|---|
| 0x46 | "callproperty" |
|---|
| 0x47 | "returnvoid" |
|---|
| 0x48 | "returnvalue" |
|---|
| 0x49 | "constructsuper" |
|---|
| 0x4A | "constructprop" |
|---|
| 0x4C | "callproplex" |
|---|
| 0x4E | "callsupervoid" |
|---|
| 0x4F | "callpropvoid" |
|---|
| 0x55 | "newobject" |
|---|
| 0x56 | "newarray" |
|---|
| 0x57 | "newactivation" |
|---|
| 0x58 | "newclass" |
|---|
| 0x5A | "newcatch" |
|---|
| 0x5D | "findpropstrict" |
|---|
| 0x5E | "findproperty" |
|---|
| 0x60 | "getlex" |
|---|
| 0x61 | "setproperty" |
|---|
| 0x62 | "getlocal" |
|---|
| 0x63 | "setlocal" |
|---|
| 0x64 | "getglobalscope" |
|---|
| 0x65 | "getscopeobject" |
|---|
| 0x66 | "getproperty" |
|---|
| 0x68 | "initproperty" |
|---|
| 0x6A | "deleteproperty" |
|---|
| 0x6C | "getslot" |
|---|
| 0x6D | "setslot" |
|---|
| 0x73 | "convert_i" |
|---|
| 0x80 | "coerce" |
|---|
| 0x85 | "coerce_s" |
|---|
| 0x90 | "negate" |
|---|
| 0x91 | "increment" |
|---|
| 0x93 | "decrement" |
|---|
| 0x95 | "typeof" |
|---|
| 0x96 | "not" |
|---|
| 0xA0 | "add" |
|---|
| 0xA1 | "subtract" |
|---|
| 0xA2 | "multiply" |
|---|
| 0xA3 | "divide" |
|---|
| 0xA4 | "modulo" |
|---|
| 0xAB | "equals" |
|---|
| 0xAC | "strictequals" |
|---|
| 0xAD | "lessthan" |
|---|
| 0xB2 | "istype" |
|---|
| 0xB3 | "istypelate" |
|---|
| 0xD0 | "getlocal_0" |
|---|
| 0xD1 | "getlocal_1" |
|---|
| 0xD2 | "getlocal_2" |
|---|
| 0xD3 | "getlocal_3" |
|---|
| 0xD4 | "setlocal_0" |
|---|
| 0xD5 | "setlocal_1" |
|---|
| 0xD6 | "setlocal_2" |
|---|
| 0xD7 | "setlocal_3" |
|---|
| 0xEF | "debug" |
|---|
| 0xF0 | "debugline" |
|---|
| 0xF1 | "debugfile" |
|---|
| 0xF2 | "bkptline" |
|---|
| 0xF3 | "timestamp" |
|---|
|
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "OpCode enum with explicit byte values (names there are Rust CamelCase; the lowercase names here are the AVM2 specification mnemonics). Operand encodings are in read.rs read_op (starts line 424)." |
|---|
| repo | "https://github.com/ruffle-rs/ruffle" |
|---|
| commit | "ea24ef78aa6c898e8170c1a603a496dd1131bd6c" |
|---|
| path | "swf/src/avm2/opcode.rs" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "AVM2 opcode numbers" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-19T08:46:51.513Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T12:16:08.807Z" |
|---|
| result | "confirmed" |
|---|
| method | "Downloaded ruffle swf/src/avm2/opcode.rs at ea24ef7 and compared all 100 listed (value, name) pairs with a script against the enum (names compared case-insensitively without underscores): zero mismatches; the enum has 167 entries, so complete:false is right (claim count corrected in this session)." |
|---|
|
|
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-19T12:16:08.658Z" |
|---|
| summary | "Claim said ruffle's OpCode enum lists about 200 opcodes; the enum at ea24ef7 has 167 entries (counted with a script). Also checked all 100 listed values/names against it: no mismatch." |
|---|
| changed | |
|---|
|
|
|---|