0
0
Fork 0
mirror of https://git.sr.ht/~rabbits/uxn synced 2024-11-22 22:05:11 +00:00

Fixed issue with debug port

This commit is contained in:
Devine Lu Linvega 2024-03-04 09:19:08 -08:00
parent c3c140b5e9
commit e7c25fad05
3 changed files with 3 additions and 3 deletions

View file

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

View file

@ -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 */

View file

@ -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"))