Small useless optimization

This commit is contained in:
Franck STAUFFER 2020-08-03 18:22:48 +02:00
parent c7502adaac
commit 912c59580a
Signed by: franck.stauffer
GPG Key ID: AAF5A94045CEC261

View File

@ -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;
}