add debug output

This commit is contained in:
Dominic Radermacher 2022-04-05 20:25:54 +02:00
parent e968176637
commit 674e0da5fb
1 changed files with 3 additions and 0 deletions

View File

@ -527,6 +527,9 @@ int main(int argc, char *argv[])
printf("tape color = %02x\n", ptdev->status->tape_color);
printf("text color = %02x\n", ptdev->status->text_color);
printf("error = %04x\n", ptdev->status->error);
if (debug) {
ptouch_rawstatus(ptdev->status);
}
exit(0);
} else if (strcmp(&argv[i][1], "-image") == 0) {
if ((im=image_load(argv[++i])) == NULL) {