Skip to content

Commit d978821

Browse files
committed
gif
1 parent 7e72f98 commit d978821

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

docs/corewar.gif

22.7 MB
Loading

tmp/cool

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
./corewar -n machine.cor skynet.cor misaka.cor car.cor
22
../corewar -n ../tmp/car.cor ../tmp/a.cor ../tmp/car.cor ../tmp/jumper.cor
3+
./corewar -n tmp/misaka.cor tmp/car.cor tmp/machine.cor tmp/skynet.cor

vm/src/interface/arena.c

+6-6
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
/* By: ciglesia <ciglesia@student.42.fr> +#+ +:+ +#+ */
77
/* +#+#+#+#+#+ +#+ */
88
/* 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 */
1010
/* */
1111
/* ************************************************************************** */
1212

@@ -77,15 +77,15 @@ _______", vm->process_alive, vm->nprocess);
7777
while (process)
7878
{
7979
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--);
8181
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);
8383
wattron(window, COLOR_PAIR(((TP*)P->obj)->owner + 1));
84-
mvwprintw(window, i + 1, 23, "OP: ");
84+
mvwprintw(window, i + 1, 24, "OP: ");
8585
wattron(window, COLOR_PAIR(5) | A_BOLD);
86-
mvwprintw(window, i + 1, 27, "%s",
86+
mvwprintw(window, i + 1, 28, "%s",
8787
(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 : "____");
8989
wattroff(window, COLOR_PAIR(5) | A_BOLD);
9090
print_registers(window, i, ((TP*)P->obj)->reg);
9191
i++;

0 commit comments

Comments
 (0)