1 diff '--color=auto' -ruN a/src/cdb.c b/src/cdb.c
2 --- a/src/cdb.c 1970-01-01 01:00:01.000000000 +0100
3 +++ b/src/cdb.c 2024-10-08 11:28:57.892951658 +0200
5 (warriorsLeft ? warriorsLeft : 1));
6 substitute(buf[bi1], "CYCLE", outs, buf[bi2]);
8 - sprintf(outs, "%d", round);
9 + sprintf(outs, "%d", roundCounter);
10 substitute(buf[bi1], "ROUND", outs, buf[bi2]);
15 int nFuture, nPast, count, taskHalf = (coreSize <= 10000 ? 7 : 5);
17 - sprintf(outs, roundOfCycle, round, rounds,
18 + sprintf(outs, roundOfCycle, roundCounter, rounds,
19 (cycle + (warriorsLeft ? warriorsLeft : 1) - 1) /
20 (warriorsLeft ? warriorsLeft : 1));
21 cdb_fputs(outs, COND);
22 diff '--color=auto' -ruN a/src/curdisp.c b/src/curdisp.c
23 --- a/src/curdisp.c 1970-01-01 01:00:01.000000000 +0100
24 +++ b/src/curdisp.c 2024-10-08 11:29:52.129955266 +0200
27 if (!--refreshCounter) {
28 refreshCounter = refreshInterval;
29 - update_statusline(round);
30 + update_statusline(roundCounter);
38 - update_statusline(round - 1);
39 + update_statusline(roundCounter - 1);
41 mvwaddstr(corewin, 0, 0, pressAnyKey);
43 diff '--color=auto' -ruN a/src/sim.c b/src/sim.c
44 --- a/src/sim.c 1970-01-01 01:00:01.000000000 +0100
45 +++ b/src/sim.c 2024-10-08 11:28:21.848284678 +0200
47 mem_struct FAR *memory;
53 char alloc_p = 0; /* indicate whether memory has been allocated */
54 int warriorsLeft; /* number of warriors still left in core */
62 #if defined(DOS16) && !defined(SERVER) && !defined(DOSTXTGRAPHX) && !defined(DOSGRXGRAPHX) && !defined(DJGPP)
63 fputc('\r', stdout); /* enable interruption by Ctrl-C */
64 @@ -1421,13 +1421,13 @@
66 if (debugState == BREAK) {
67 if (warriorsLeft == 1 && warriors != 1)
68 - sprintf(outs, warriorTerminatedEndOfRound, W - warrior, W->name, round);
69 + sprintf(outs, warriorTerminatedEndOfRound, W - warrior, W->name, roundCounter);
71 - sprintf(outs, endOfRound, round);
72 + sprintf(outs, endOfRound, roundCounter);
73 debugState = cdb(outs);
76 - } while (++round <= rounds);
77 + } while (++roundCounter <= rounds);
81 diff '--color=auto' -ruN a/src/sim.h b/src/sim.h
82 --- a/src/sim.h 1970-01-01 01:00:01.000000000 +0100
83 +++ b/src/sim.h 2024-10-08 11:27:46.730634854 +0200
89 +extern int roundCounter;
91 extern ADDR_T progCnt; /* program counter */
92 extern warrior_struct *W; /* indicate which warrior is running */