summaryrefslogtreecommitdiff
path: root/src/js/primitives/mem.js
diff options
context:
space:
mode:
authorspv420 <unomilliono@gmail.com>2022-04-24 13:08:55 -0400
committerspv420 <unomilliono@gmail.com>2022-04-24 13:08:55 -0400
commit313627a7864d67e29a3655dd4a6077ac0481f3c1 (patch)
tree714f13d602ebab9579f5a897ee5ca363e0cfbbef /src/js/primitives/mem.js
parent7696be307f95423066348555f04546782e08ff22 (diff)
ohai nonfunctional wip kexp
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
*/