From 37af15536ed3c1aa493617b590a71afffe4cf8ef Mon Sep 17 00:00:00 2001 From: ChinYikMing Date: Fri, 5 Apr 2024 13:37:19 +0800 Subject: [PATCH] Fix ELF typo in html and output process completion indicator Close #397 --- assets/html/index.html | 2 +- src/emulate.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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 */ }