diff --git a/web/web.template.js b/web/web.template.js index da6530f..c58b7c2 100644 --- a/web/web.template.js +++ b/web/web.template.js @@ -454,7 +454,8 @@ function Init() { i32[g_sys_stack_cells>>2] = STACK_CELLS; // Start heap after G_SYS area. - i32[g_sys_heap>>2] = i32[g_sys_heap_start>>2] + 256; + // Leave 256 byte gap + another 256 for G_SYS + i32[g_sys_heap>>2] = i32[g_sys_heap_start>>2] + 512; i32[g_sys_heap>>2] += 4; // Allocate stacks.