Fixed issue with debug port
This commit is contained in:
parent
c3c140b5e9
commit
e7c25fad05
|
@ -36,7 +36,7 @@ static void
|
||||||
system_print(Stack *s)
|
system_print(Stack *s)
|
||||||
{
|
{
|
||||||
Uint8 i;
|
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, "%02x%c", s->dat[i], i == 0 ? '|' : ' ');
|
||||||
fprintf(stderr, "< \n");
|
fprintf(stderr, "< \n");
|
||||||
}
|
}
|
||||||
|
|
|
@ -51,7 +51,7 @@ main(int argc, char **argv)
|
||||||
if(i == argc)
|
if(i == argc)
|
||||||
return system_error("usage:", "uxncli [-v] file.rom [args..]");
|
return system_error("usage:", "uxncli [-v] file.rom [args..]");
|
||||||
if(argv[i][0] == '-' && argv[i][1] == 'v')
|
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++]))
|
if(!system_init(&u, (Uint8 *)calloc(0x10000 * RAM_PAGES, sizeof(Uint8)), argv[i++]))
|
||||||
return system_error("Init", "Failed to initialize uxn.");
|
return system_error("Init", "Failed to initialize uxn.");
|
||||||
/* eval */
|
/* eval */
|
||||||
|
|
|
@ -501,7 +501,7 @@ main(int argc, char **argv)
|
||||||
/* flags */
|
/* flags */
|
||||||
if(argc > 1 && argv[i][0] == '-') {
|
if(argc > 1 && argv[i][0] == '-') {
|
||||||
if(!strcmp(argv[i], "-v"))
|
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"))
|
else if(!strcmp(argv[i], "-2x"))
|
||||||
set_zoom(2, 0);
|
set_zoom(2, 0);
|
||||||
else if(!strcmp(argv[i], "-3x"))
|
else if(!strcmp(argv[i], "-3x"))
|
||||||
|
|
Loading…
Reference in New Issue