Print 8 items on the stack

This commit is contained in:
Devine Lu Linvega 2024-08-11 13:29:06 -07:00
parent a405e1c106
commit 90a5dad6bb
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

@ -267,7 +267,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, "Uxn11 - Varvara Emulator, 5 Aug 2024.\n"); fprintf(stdout, "Uxn11 - Varvara Emulator, 11 Aug 2024.\n");
i++; i++;
} }
rom = i == argc ? "boot.rom" : argv[i++]; rom = i == argc ? "boot.rom" : argv[i++];

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++];