align hexa output

This commit is contained in:
2024-12-13 16:04:29 +01:00
parent ade88faa0b
commit 9f1d80cd9e

View File

@@ -100,7 +100,7 @@ void OutputFileLogisim(BinaryData& a_Data, const std::string& fileName, const st
if (cursor % 8 == 0) {
file << std::setfill('0') << std::setw(4) << std::hex << cursor << std::dec << ": ";
}
file << std::hex << number << std::dec << (((cursor + 1) % 8 == 0) ? "\n" : " ");
file << std::setfill('0') << std::setw(8) << std::hex << number << std::dec << (((cursor + 1) % 8 == 0) ? "\n" : " ");
cursor++;
}
}