From e7c25fad05850f0e577fc83a140405ca6ccd93c2 Mon Sep 17 00:00:00 2001 From: Devine Lu Linvega Date: Mon, 4 Mar 2024 09:19:08 -0800 Subject: [PATCH] Fixed issue with debug port --- src/devices/system.c | 2 +- src/uxncli.c | 2 +- src/uxnemu.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/devices/system.c b/src/devices/system.c index 0e5e89d..1941afe 100644 --- a/src/devices/system.c +++ b/src/devices/system.c @@ -36,7 +36,7 @@ static void system_print(Stack *s) { Uint8 i; - for(i = s->ptr - 7; i != s->ptr + 1; i++) + for(i = s->ptr - 7; i != (Uint8)(s->ptr + 1); i++) fprintf(stderr, "%02x%c", s->dat[i], i == 0 ? '|' : ' '); fprintf(stderr, "< \n"); } diff --git a/src/uxncli.c b/src/uxncli.c index c9173c9..f55e23d 100755 --- a/src/uxncli.c +++ b/src/uxncli.c @@ -51,7 +51,7 @@ main(int argc, char **argv) if(i == argc) return system_error("usage:", "uxncli [-v] file.rom [args..]"); if(argv[i][0] == '-' && argv[i][1] == 'v') - return system_error("Uxncli - Varvara Emulator(CLI)", "19 Feb 2024."); + return system_error("Uxncli - Varvara Emulator(CLI)", "4 Mar 2024."); if(!system_init(&u, (Uint8 *)calloc(0x10000 * RAM_PAGES, sizeof(Uint8)), argv[i++])) return system_error("Init", "Failed to initialize uxn."); /* eval */ diff --git a/src/uxnemu.c b/src/uxnemu.c index d550768..c5233f8 100644 --- a/src/uxnemu.c +++ b/src/uxnemu.c @@ -501,7 +501,7 @@ main(int argc, char **argv) /* flags */ if(argc > 1 && argv[i][0] == '-') { if(!strcmp(argv[i], "-v")) - return system_error("Uxnemu - Varvara Emulator(GUI)", "22 Feb 2024."); + return system_error("Uxnemu - Varvara Emulator(GUI)", "4 Mar 2024."); else if(!strcmp(argv[i], "-2x")) set_zoom(2, 0); else if(!strcmp(argv[i], "-3x"))