From 313627a7864d67e29a3655dd4a6077ac0481f3c1 Mon Sep 17 00:00:00 2001 From: spv420 Date: Sun, 24 Apr 2022 13:08:55 -0400 Subject: ohai nonfunctional wip kexp --- src/js/primitives/mem.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/js/primitives/mem.js') 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 */ -- cgit v1.2.3