Skip to content

Instantly share code, notes, and snippets.

@aidanhs
Created November 5, 2014 05:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aidanhs/69ad2d7c8959908d64b1 to your computer and use it in GitHub Desktop.
Save aidanhs/69ad2d7c8959908d64b1 to your computer and use it in GitHub Desktop.
Simple em_asm
int main(void) {
int x = EM_ASM_INT({
Module.print('I received: ' + $0);
return $0 + 1;
}, 100)
return x;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment