summaryrefslogtreecommitdiff
path: root/src/js/primitives/mem.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/js/primitives/mem.js')
-rw-r--r--src/js/primitives/mem.js8
1 files changed, 8 insertions, 0 deletions
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
*/