Fixed issue with debug port

This commit is contained in:
Devine Lu Linvega 2024-03-04 09:17:55 -08:00
parent 6e7360ee71
commit c95c615bbc
3 changed files with 3 additions and 3 deletions

View File

@ -47,7 +47,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");
}

View File

@ -267,7 +267,7 @@ main(int argc, char **argv)
int i = 1;
char *rom;
if(i != argc && argv[i][0] == '-' && argv[i][1] == 'v') {
fprintf(stdout, "Uxn11 - Varvara Emulator, 28 Feb 2023.\n");
fprintf(stdout, "Uxn11 - Varvara Emulator, 4 Mar 2023.\n");
i++;
}
rom = i == argc ? "boot.rom" : argv[i++];

View File

@ -71,7 +71,7 @@ main(int argc, char **argv)
return system_error("usage", "uxncli [-v] file.rom [args..]");
/* Read flags */
if(argv[i][0] == '-' && argv[i][1] == 'v')
return system_version("Uxncli - Console Varvara Emulator", "28 Feb 2024");
return system_version("Uxncli - Console Varvara Emulator", "4 Mar 2024");
if(!system_boot(&u, (Uint8 *)calloc(0x10000 * RAM_PAGES, sizeof(Uint8)), argv[i++]))
return system_error("Init", "Failed to initialize uxn.");
/* Game Loop */