diff options
Diffstat (limited to 'src/js/primitives')
| -rw-r--r-- | src/js/primitives/call.js | 2 | ||||
| -rw-r--r-- | src/js/primitives/mem.js | 8 |
2 files changed, 10 insertions, 0 deletions
diff --git a/src/js/primitives/call.js b/src/js/primitives/call.js index af9ede0..9bb43c1 100644 --- a/src/js/primitives/call.js +++ b/src/js/primitives/call.js @@ -260,5 +260,7 @@ function scall() { } } +// printf("%s\n", args_to_pass.toString()); + return callnarg.apply(this, args_to_pass); }
\ No newline at end of file diff --git a/src/js/primitives/mem.js b/src/js/primitives/mem.js index 551b59f..85cd132 100644 --- a/src/js/primitives/mem.js +++ b/src/js/primitives/mem.js @@ -83,6 +83,14 @@ function write_buf(addy, buf, len) { return buf; } +function write_u32_buf(addy, buf, len) { + for (cur_addy = addy; cur_addy < (addy + len); cur_addy += 4) { + write_u32(cur_addy, buf[(cur_addy - addy) / 4]); + } + + return buf; +} + /* * write uint8_t */ |
