|
|
04028b29d3
|
Used __builtin_wasm_memory_size(0) instead of having the Javascript code call init_mem with the initial page count. Added a simple <div> below the canvas that can hold any number of labels that can be filled/updated through jsSetLabel which lives in a new file misc_functions.js.
|
2025-09-02 16:05:53 -07:00 |
|
|
|
3aee6123c6
|
Removed unneeded semicolons in macros for memset, memcpy, and memmove in std/string.h
|
2025-09-02 12:00:25 -07:00 |
|
|
|
cca61ea163
|
Added cwasm_arena.c and cwasm_debug.c. Arena API hasn't been tested well yet. There's also something wrong with our DebugOutputLineBuffer usage for splitting lines to multiple Javascript output calls. Also added an int level to jsStdPrint and a bunch of macros to cwasm.h
|
2025-08-31 17:33:48 -07:00 |
|
Taylor Robbins (Piggybank Studios)
|
d0aa7a1d0e
|
Added math.h, stdlib.h, float.h, and stbool.h to std folder (and all their implementations). Opted to NOT implement malloc/free/etc. in favor of having our own functions init_mem, grow_mem, and get_mem.
|
2025-08-28 13:20:08 -07:00 |
|
Taylor Robbins (Piggybank Studios)
|
deae3ccd12
|
Got a basic WebAssembly module compiling with support for calling jsStdPrint through printf implementation (provided by stb_sprintf.h). We have a single function "HelloFromWasm" exported for testing purposes. Pulled in a bunch of standard library headers from PigCore's wasm layer.
|
2025-08-28 09:44:32 -07:00 |
|