|
6 | 6 | /* By: ciglesia <ciglesia@student.42.fr> +#+ +:+ +#+ */
|
7 | 7 | /* +#+#+#+#+#+ +#+ */
|
8 | 8 | /* Created: 2020/08/29 20:41:28 by ciglesia #+# #+# */
|
9 |
| -/* Updated: 2020/10/01 20:04:25 by ciglesia ### ########.fr */ |
| 9 | +/* Updated: 2020/10/02 17:05:19 by ciglesia ### ########.fr */ |
10 | 10 | /* */
|
11 | 11 | /* ************************************************************************** */
|
12 | 12 |
|
@@ -77,15 +77,15 @@ _______", vm->process_alive, vm->nprocess);
|
77 | 77 | while (process)
|
78 | 78 | {
|
79 | 79 | wattron(window, COLOR_PAIR(((TP*)P->obj)->owner + 1));
|
80 |
| - mvwprintw(window, i + 1, 1, "Process %02d PC:", n--); |
| 80 | + mvwprintw(window, i + 1, 1, "Process %04d PC:", n--); |
81 | 81 | wattroff(window, COLOR_PAIR(((TP*)P->obj)->owner + 1));
|
82 |
| - mvwprintw(window, i + 1, 17, "%d", ((TP*)P->obj)->pc); |
| 82 | + mvwprintw(window, i + 1, 19, "%04d", ((TP*)P->obj)->pc); |
83 | 83 | wattron(window, COLOR_PAIR(((TP*)P->obj)->owner + 1));
|
84 |
| - mvwprintw(window, i + 1, 23, "OP: "); |
| 84 | + mvwprintw(window, i + 1, 24, "OP: "); |
85 | 85 | wattron(window, COLOR_PAIR(5) | A_BOLD);
|
86 |
| - mvwprintw(window, i + 1, 27, "%s", |
| 86 | + mvwprintw(window, i + 1, 28, "%s", |
87 | 87 | (0 < ((TP*)P->obj)->last_ir && ((TP*)P->obj)->last_ir <= 15) ?
|
88 |
| - g_op_tab[((TP*)P->obj)->last_ir - 1].name : "(null)"); |
| 88 | + g_op_tab[((TP*)P->obj)->last_ir - 1].name : "____"); |
89 | 89 | wattroff(window, COLOR_PAIR(5) | A_BOLD);
|
90 | 90 | print_registers(window, i, ((TP*)P->obj)->reg);
|
91 | 91 | i++;
|
|
0 commit comments