4 ms·
I use it in a web worker to compile, assemble, and link C programs into 8-bit ROMs: https://8bitworkshop.com/ https://8bitworkshop.com/ I was using asm.js in t
by sehugg 7y ago
I use it in a web worker to compile, assemble, and link C programs into 8-bit ROMs: https://8bitworkshop.com/ https://8bitworkshop.com/
I was using asm.js in the past, but WASM gives a noticeable and necessary performance boost.
- joeraut 7y agoThis looks awesome, great project! Which specific CPUs or applications that you emulate really take advantage of the performance boost that WASM provides?
- sehugg 7y agoThanks -- we use Emscripten/WASM mainly for running command-line compilers/assemblers (like cc65 and SDCC). Right now the emulators are all in JavaScript (except for MAME) which makes integrating with the IDE's debugging tools a little easier. It's performant enough for now, since we only have 8-bit platforms at low clock speeds. Integrating a C emulation library like https://github.com/floooh/chips https://github.com/floooh/chips should be doable, since it doesn't have any dependencies.
- chrismaltby 7y agoThat looks awesome! I noticed that you don't have Game Boy on there, not sure if it's useful to you but I started to make a WebAssembly port of GBDK: https://github.com/chrismaltby/gbdk-emscripten https://github.com/chrismaltby/gbdk-emscripten which I was planning to use in my Game Boy game maker eventually https://www.gbstudio.dev/ https://www.gbstudio.dev/