Skip to content

Instantly share code, notes, and snippets.

@fujidig
Created April 18, 2014 08:06
Show Gist options
  • Select an option

  • Save fujidig/11030783 to your computer and use it in GitHub Desktop.

Select an option

Save fujidig/11030783 to your computer and use it in GitHub Desktop.
Shumway AVM2を試す
{
v12 = new Scope($O412, this, false);
v16 = v12.findScopeProperty($O413, 'trace', 0, $O414, true);
v21 = v16.asCallProperty($O413, 'trace', 0, false, [
'Hello World'
]);
return v21;
}
@fujidig
Copy link
Copy Markdown
Author

fujidig commented Apr 18, 2014

/src/avm2/runtime.jsのuseInterpreter = true;をコメントアウトする
/src/avm2/compiler/c4/backend.jsのgenerate()関数内の適当な場所にprint(generateSource(code));を追加

/src/avm2/bin下で
js avm.js -x ../tests/hello-world.abc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment