S3: Provide readable 7 segment error code display

As discussed in #1052
This commit is contained in:
David Wijnants 2021-07-21 14:03:35 -07:00 committed by Mark Pizzolato
parent 243951a791
commit eb753fc82f

View file

@ -609,12 +609,12 @@ if (opaddr == 0xf0) { /* Is it command format?
if (qbyte & 0x01) display[2][3] = '|' ; if (qbyte & 0x01) display[2][3] = '|' ;
if (rbyte & 0x01) display[2][7] = '|' ; if (rbyte & 0x01) display[2][7] = '|' ;
/* Print display segment array */ /* Print display segment array */
sim_printf("\n"); sim_printf("\r\n");
for (i = 0; i < 3; i++) { for (i = 0; i < 3; i++) {
for (j = 0; j < 9; j++) { for (j = 0; j < 9; j++) {
sim_printf ("%c", display[i][j]); sim_printf ("%c", display[i][j]);
} }
sim_printf ("\n"); sim_printf ("\r\n");
} }
reason = STOP_HALT; reason = STOP_HALT;
break; break;