diff options
| author | spv <aquaticvegetable@gmail.com> | 2022-04-27 12:00:16 -0400 |
|---|---|---|
| committer | spv <aquaticvegetable@gmail.com> | 2022-04-27 12:00:16 -0400 |
| commit | 41a1e7292997c84643202f3d27a4daa4b02197e4 (patch) | |
| tree | 4d2828935d4b5e9100903a698ea6136d1b277649 /src/js/primitives/mem.js | |
| parent | 33be9e9d0a5ee0abd0837b74cca15474b81c4f57 (diff) | |
add hopefully functional port spray and broken release_port_ptrs that hangs after 1 run
Diffstat (limited to 'src/js/primitives/mem.js')
| -rw-r--r-- | src/js/primitives/mem.js | 2 |
1 files changed, 1 insertions, 1 deletions
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)); |
