commit 491ad7f5ea782f032514aa0216b9c7ffc2d1a15d
parent 41eaf6d45720f9e48642cbe6e148519e6398f364
Author: Brian Swetland <swetland@frotz.net>
Date: Sun, 8 Mar 2020 21:11:36 -0700
risc5 emu: simpilfy output, make quieter
Diffstat:
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/r5e.c b/src/r5e.c
@@ -51,7 +51,7 @@ int main(int argc, char** argv) {
risc_store_word(r, n, w);
n += 4;
}
- fprintf(stderr,"r5e: loaded %u bytes from '%s'\n", n, fn);
+ //fprintf(stderr,"r5e: loaded %u bytes from '%s'\n", n, fn);
}
risc_run(r, 100000);
diff --git a/src/risc5emu.c b/src/risc5emu.c
@@ -339,11 +339,11 @@ static void risc_store_io(struct RISC *risc, uint32_t address, uint32_t value) {
if (risc->TRACE) printf(" io@ 0x%08x = 0x%08x\n", address, value);
switch (address - IOStart) {
case 0x100: {
- printf("%08x\nEXIT\n", value);
+ printf("X %08x\n", value);
exit(0);
break;
case 0x104:
- printf("%08x\n", value);
+ printf("D %08x\n", value);
break;
}
}