: WARNING - support of the decompiler is now VERY LIMITED. There are no active developers. This means waiting times in the issue tracker are very long and mostly depend on community. Sorry for the inconvenience.
State: closed new: Initial state. As long as issue is in this state, the work on the issue has not yet begun. opened: Opened state means developer started working on the issue. Feature/Fix will probably be in the next release. postponed: This means developer is not working on it now, for some reason it cannot be implemented now. Issue may be opened again in the future. upgraded: Issue is in upgraded state when developer made changes to the program and new version was released. closed: This means the user is satisfied with issue results and no more changes are needed. invalid: These issues cannot be solved. ignored: Developer decided to take no action on this issue. returned: Program changes were made but user is not satisfied and returned the issue.
I'm wondering how p-code ofs"XXXX" is generated.
Because I'm making a tool that generate code for a flash program.
So I know how I should convert xxxx to.
Right now do I only generate numbers. But I have seen letters too. And I wonder how it's
Example P-code generated from my tool:
P-code example from the swf:
It is just a label. You can put "dog" in it, any valid AS identifier, it will compile
this will compile in FFDec correctly.
Label names are not stored in the SWF file so they are lost. During decompilation we
assign then unique identifiers based on offset in the method - ofs028f is "ofs" and 028f
which is address of the instruction in hexadecimal. The label does not matter, it just
need to be unique in the P-code so we give them addressbased name.