From 41a1e7292997c84643202f3d27a4daa4b02197e4 Mon Sep 17 00:00:00 2001 From: spv Date: Wed, 27 Apr 2022 12:00:16 -0400 Subject: add hopefully functional port spray and broken release_port_ptrs that hangs after 1 run --- src/js/primitives/mem.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/js/primitives') diff --git a/src/js/primitives/mem.js b/src/js/primitives/mem.js index ff12fdd..f6c4fe7 100644 --- a/src/js/primitives/mem.js +++ b/src/js/primitives/mem.js @@ -92,7 +92,7 @@ function write_u32_buf(addy, buf, len) { } function fast_write_buf(addy, buf) { - var upper_i = Math.floor(buf.length / 0x100); + var upper_i = Math.ceil(buf.length / 0x100); for (var i = 0; i < upper_i; i++) { u8x4 = u32_to_u8x4(addy + (i * 0x100)); -- cgit v1.2.3