Print 8 items on the stack

This commit is contained in:
Devine Lu Linvega 2024-08-11 13:30:23 -07:00
parent a9d7ff23a5
commit 7d077eb2c6
3 changed files with 3 additions and 3 deletions

View File

@ -45,7 +45,7 @@ static void
system_print(Stack *s) system_print(Stack *s)
{ {
Uint8 i; Uint8 i;
for(i = s->ptr - 7; i != (Uint8)(s->ptr); i++) for(i = s->ptr - 8; i != (Uint8)(s->ptr); i++)
fprintf(stderr, "%02x%c", s->dat[i], i == 0xff ? '|' : ' '); fprintf(stderr, "%02x%c", s->dat[i], i == 0xff ? '|' : ' ');
fprintf(stderr, "< \n"); fprintf(stderr, "< \n");
} }

View File

@ -68,7 +68,7 @@ main(int argc, char **argv)
int i = 1; int i = 1;
char *rom; char *rom;
if(i != argc && argv[i][0] == '-' && argv[i][1] == 'v') { if(i != argc && argv[i][0] == '-' && argv[i][1] == 'v') {
fprintf(stdout, "Uxncli - Console Varvara Emulator, 5 Aug 2024.\n"); fprintf(stdout, "Uxncli - Console Varvara Emulator, 11 Aug 2024.\n");
i++; i++;
} }
rom = i == argc ? "boot.rom" : argv[i++]; rom = i == argc ? "boot.rom" : argv[i++];

View File

@ -466,7 +466,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)", "5 Aug 2024."); return system_error("Uxnemu - Varvara Emulator(GUI)", "11 Aug 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"))