C hack emulator complied to WASM

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

C hack emulator complied to WASM

darkshadow
I've been incrementally creating increasingly fast emulators for hack.

Started with python which was painfully slow
then python with C bindings

I've now complied the C to WASM and found the HTML5 canvas much much faster:

https://github.com/alexdawn/nand-2-tetris/tree/main/project/web-emulator

Only works with .hack files at the moment. My very weak notebook is able to emulate hack at 20MHz