| cfg | ||
| js | ||
| src | ||
| web | ||
| .gitignore | ||
| CHANGELOG.md | ||
| flake.lock | ||
| flake.nix | ||
| LICENSE.md | ||
| Makefile | ||
| Makefile.c | ||
| Makefile.js | ||
| netinit.sh | ||
| README.jslinux.md | ||
| README.md | ||
| README.tinyemu.md | ||
| VERSION | ||
TinyEMU System Emulator
This repo is a fork of Fabrice Bellard's TinyEMU project[v2019-12-21],
a lightweight RISC-V and x86 emulator. Specifically migrating the project to
the latest stable release of enscriptem. I provide a flake.nix dev shell too (cause I'm super nice).
This repo will mostly be a guide for embedding TinyEMU into your website (cause that's what I'm doing).
PS: there is no guide for Windows because I'm allergic and it scares me.
For WAYYYY more information I've provided Bellard's original tinyemu/readme.txt & jslinux/readme.txt files
Compiling
Nix
nix develop
makejs # alias for `make -f Makefile.js`
make
Note
emscriptenexpects an FHS so I've instead implemented a shell hook tostealcopy${pkgs.emscripten}/share/emscripten/cacheprior tomakejs. Refer to https://github.com/NixOS/nixpkgs/issues/139943
Other Unix Systems
make -f Makefile.js
make
Tip
The following dependencies are required for compilation, the version numbers are what I compiled against but are not strict.
make[v4.4.1] (akagnumake)emscripten[v4.0.8]SDL[v1.2.68] (akalibsdl/SDL-devel)curl[v8.14.1] (akalibcurl-devel)openssl[v3.4.1] (akaopenssl-devel)
Todo
- Expose the CONFIG_FS_NET + CONFIG_SDL Makefile variables