diff --git a/assets/html/index.html b/assets/html/index.html
index 308c3f8e..0bcb8f80 100644
--- a/assets/html/index.html
+++ b/assets/html/index.html
@@ -137,7 +137,7 @@
var elfFiles = [
"doom.elf",
- "smoles.elf",
+ "smolnes.elf",
"quake.elf",
"coremark.elf",
"dhrystone.elf",
diff --git a/src/emulate.c b/src/emulate.c
index 5539aa61..dcf871ee 100644
--- a/src/emulate.c
+++ b/src/emulate.c
@@ -1183,6 +1183,7 @@ void rv_step(void *arg)
#ifdef __EMSCRIPTEN__
if (rv_has_halted(rv)) {
+ printf("inferior exit code %d\n", attr->exit_code);
emscripten_cancel_main_loop();
rv_delete(rv); /* clean up and reuse memory */
}