Skip to content

Commit 3703ae5

Browse files
committed
Fix simulator cycle printing
1 parent 2eec97f commit 3703ae5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

utils/sim/mos-sim.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,12 @@ int8_t read6502(uint16_t address) {
7474

7575
void finish(void) {
7676
if (shouldPrintCycles)
77-
fprintf(stderr, PRIu64 " cycles\n", clockticks6502);
77+
fprintf(stderr, "%" PRIu64 " cycles\n", clockticks6502);
7878

7979
if (shouldProfile)
8080
for (int addr = 0; addr < 65536; ++addr)
8181
if (clockTicksAtAddress[addr])
82-
fprintf(stderr, "%04x " PRIu64 "\n", addr, clockTicksAtAddress[addr]);
82+
fprintf(stderr, "%04x %" PRIu64 "\n", addr, clockTicksAtAddress[addr]);
8383
}
8484

8585
void write6502(uint16_t address, uint8_t value) {

0 commit comments

Comments
 (0)