diff --git a/src/main.c b/src/main.c index bf1a560..5a605af 100644 --- a/src/main.c +++ b/src/main.c @@ -201,7 +201,7 @@ load_rom(const char* path) for (long t = 0; t < s; t += 2) { fprintf( stderr, "%04X ", (memory[t + 0x200] << 8) + memory[t + 0x200 + 1]); - if (c++ == 7) { + if (++c == 8) { putchar('\n'); c = 0; }