From 912c59580aa4fa607e576b2e58aa878c8501717d Mon Sep 17 00:00:00 2001 From: Franck STAUFFER Date: Mon, 3 Aug 2020 18:22:48 +0200 Subject: [PATCH] Small useless optimization --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }