commit 21ce072e9da65ed0c81bd6e9d45560df467918e2
parent 215dc9db5234cd32bf33babc5edfc3fa8d618024
Author: Devine Lu Linvega <aliceffekt@gmail.com>
Date: Mon, 15 Jul 2024 13:41:02 -0700
Fixed stack debugger
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/devices/system.c b/src/devices/system.c
@@ -45,8 +45,8 @@ static void
system_print(Stack *s)
{
Uint8 i;
- for(i = s->ptr - 7; i != (Uint8)(s->ptr + 1); i++)
- fprintf(stderr, "%02x%c", s->dat[i], i == 0 ? '|' : ' ');
+ for(i = s->ptr - 7; i != (Uint8)(s->ptr); i++)
+ fprintf(stderr, "%02x%c", s->dat[i], i == 0xff ? '|' : ' ');
fprintf(stderr, "< \n");
}